VTK
dox
opt
build
vtk6-6.3.0+dfsg2
Wrapping
PythonCore
vtkPythonCommand.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPythonCommand.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
16
#ifndef vtkPythonCommand_h
17
#define vtkPythonCommand_h
18
19
#include "
vtkWrappingPythonCoreModule.h
"
// For export macro
20
#include "vtkPython.h"
21
#include "
vtkCommand.h
"
22
23
// To allow Python to use the vtkCommand features
24
class
VTKWRAPPINGPYTHONCORE_EXPORT
vtkPythonCommand
:
public
vtkCommand
25
{
26
public
:
27
vtkTypeMacro
(
vtkPythonCommand
,
vtkCommand
);
28
29
static
vtkPythonCommand
*
New
() {
return
new
vtkPythonCommand
; };
30
31
void
SetObject
(
PyObject
*o);
32
void
SetThreadState
(PyThreadState *ts);
33
void
Execute
(
vtkObject
*ptr,
unsigned
long
eventtype,
void
*callData);
34
35
PyObject
*
obj
;
36
PyThreadState *
ThreadState
;
37
protected
:
38
vtkPythonCommand
();
39
~vtkPythonCommand
();
40
};
41
42
#endif
43
// VTK-HeaderTest-Exclude: vtkPythonCommand.h
vtkCommand
superclass for callback/observer methods
Definition:
vtkCommand.h:326
vtkPythonCommand::Execute
void Execute(vtkObject *ptr, unsigned long eventtype, void *callData)
VTKWRAPPINGPYTHONCORE_EXPORT
#define VTKWRAPPINGPYTHONCORE_EXPORT
Definition:
vtkWrappingPythonCoreModule.h:15
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkPythonCommand::~vtkPythonCommand
~vtkPythonCommand()
vtkPythonCommand::obj
PyObject * obj
Definition:
vtkPythonCommand.h:35
vtkCommand.h
PyObject
struct _object PyObject
Definition:
vtkMatplotlibMathTextUtilities.h:37
vtkPythonCommand::vtkPythonCommand
vtkPythonCommand()
vtkWrappingPythonCoreModule.h
vtkPythonCommand::ThreadState
PyThreadState * ThreadState
Definition:
vtkPythonCommand.h:36
vtkPythonCommand::SetObject
void SetObject(PyObject *o)
vtkPythonCommand
Definition:
vtkPythonCommand.h:25
vtkPythonCommand::SetThreadState
void SetThreadState(PyThreadState *ts)
vtkPythonCommand::New
static vtkPythonCommand * New()
Definition:
vtkPythonCommand.h:29
Generated by
1.8.20