VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
dox
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
vtkPythonCommand::ThreadState
PyThreadState * ThreadState
Definition:
vtkPythonCommand.h:36
vtkPythonCommand::obj
PyObject * obj
Definition:
vtkPythonCommand.h:35
vtkPythonCommand
Definition:
vtkPythonCommand.h:24
vtkPythonCommand::New
static vtkPythonCommand * New()
Definition:
vtkPythonCommand.h:29
Generated on Sat May 10 2014 05:42:50 for VTK by
1.8.6