Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLLayerDMObjectEventObserverScripted.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Kitware SAS
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 This file was originally developed by Thibault Pelletier, Kitware SAS,
17 and was partially funded by ANR grants ANR-22-CE45-0034 and ANR-18-RHUS-005.
18
19==============================================================================*/
20
21#ifndef __vtkMRMLLayerDMObjectEventObserverScripted_h
22#define __vtkMRMLLayerDMObjectEventObserverScripted_h
23
24// LayerDM includes
26#include "vtkSlicerLayerDMModuleMRMLExport.h"
27
28// VTK includes
29#include <vtkPython.h>
30#include <vtkSmartPyObject.h>
31
32class vtkCallbackCommand;
33
36class VTK_SLICER_LAYERDM_MODULE_MRML_EXPORT vtkMRMLLayerDMObjectEventObserverScripted : public vtkMRMLLayerDMObjectEventObserver
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
55
60 static PyObject* CastCallData(PyObject* object, int vtkType);
61
62protected:
65
66private:
67 PyObject* Object;
68};
69
70#endif
void SetPythonCallback(PyObject *object)
Sets the Python callable object to be invoked on events.
void PrintSelf(ostream &os, vtkIndent indent) override
static vtkMRMLLayerDMObjectEventObserverScripted * New()
static PyObject * CastCallData(PyObject *object, int vtkType)
Cast call data to appropriate Python type based on VTK type.
_object PyObject