Similar to vtkCPAdaptorAPI provides the implementation for API exposed to typical adaptor, such as C, Fortran, except that is adds the ability to initialize the coprocessor with Python capabilities. More...
#include <vtkCPPythonAdaptorAPI.h>
Public Types | |
typedef vtkCPAdaptorAPI | Superclass |
![]() | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
![]() | |
vtkCPAdaptorAPI (const vtkCPAdaptorAPI &)=delete | |
void | operator= (const vtkCPAdaptorAPI &)=delete |
![]() | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkCPPythonAdaptorAPI * | SafeDownCast (vtkObject *o) |
static void | CoProcessorInitialize (const char *pythonFileName) |
Call at the start of the simulation. More... | |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkCPAdaptorAPI * | SafeDownCast (vtkObject *o) |
static void | CoProcessorInitialize () |
call at the start of the simulation More... | |
static void | CoProcessorFinalize () |
call at the end of the simulation More... | |
static void | RequestDataDescription (int *timeStep, double *time, int *coprocessThisTimeStep) |
this is the function that determines whether or not there is anything to coprocess this time step More... | |
static void | NeedToCreateGrid (int *needGrid) |
this function sets needgrid to 1 if it does not have a copy of the grid it sets needgrid to 0 if it does have a copy of the grid but does not check if the grid is modified or needs to be updated More... | |
static void | CoProcess () |
do the actual coprocessing. More... | |
static vtkCPDataDescription * | GetCoProcessorData () |
provides access to the vtkCPDataDescription instance. More... | |
static vtkCPProcessor * | GetCoProcessor () |
provides access to the vtkCPProcessor instance. More... | |
![]() | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkCPPythonAdaptorAPI () | |
~vtkCPPythonAdaptorAPI () override | |
![]() | |
vtkCPAdaptorAPI () | |
~vtkCPAdaptorAPI () override | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Additional Inherited Members | |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
![]() | |
static vtkCPDataDescription * | CoProcessorData |
static vtkCPProcessor * | CoProcessor |
static bool | IsTimeDataSet |
Similar to vtkCPAdaptorAPI provides the implementation for API exposed to typical adaptor, such as C, Fortran, except that is adds the ability to initialize the coprocessor with Python capabilities.
Definition at line 12 of file vtkCPPythonAdaptorAPI.h.
Definition at line 15 of file vtkCPPythonAdaptorAPI.h.
|
protected |
|
overrideprotected |
|
virtual |
Reimplemented from vtkCPAdaptorAPI.
Reimplemented from vtkCPAdaptorAPI.
|
static |
|
overridevirtual |
Reimplemented from vtkCPAdaptorAPI.
|
static |
Call at the start of the simulation.
Users can still call CoProcessorInitialize() without arguments, in which case Python interpretor will not be initialized and hence unavailable.