an internal class encapsulating logic for Catalyst Python scripts. More...
#include <vtkCPPythonScriptV2Helper.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
bool | PrepareFromScript (const std::string &fname) |
Prepares the Python package/module for import. More... | |
const std::string & | GetScriptFileName () const |
Returns the name of the script passed in to PrepareFromScript. More... | |
bool | IsImported () const |
Returns if the package/module has been imported. More... | |
bool | Import (const std::vector< std::string > &args={}) |
Imports the module/package. More... | |
bool | CatalystInitialize () |
Calls catalyst_initialize . More... | |
bool | CatalystFinalize () |
Calls catalyst_finalize . More... | |
bool | CatalystExecute (int timestep, double time, const std::vector< std::string > ¶ms={}) |
Calls catalyst_execute . More... | |
bool | CatalystResults () |
Calls catalyst_results . More... | |
bool | Import (vtkCPDataDescription *desc) |
There are overloads intended for vtkCPPythonScriptV2Pipeline i.e. More... | |
bool | CatalystInitialize (vtkCPDataDescription *desc) |
There are overloads intended for vtkCPPythonScriptV2Pipeline i.e. More... | |
bool | RequestDataDescription (vtkCPDataDescription *desc) |
There are overloads intended for vtkCPPythonScriptV2Pipeline i.e. More... | |
bool | CatalystExecute (vtkCPDataDescription *desc) |
There are overloads intended for vtkCPPythonScriptV2Pipeline i.e. More... | |
Public Member Functions inherited from vtkObject | |
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) |
Public Member Functions inherited from vtkObjectBase | |
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 vtkCPPythonScriptV2Helper * | New () |
static int | IsTypeOf (const char *type) |
static vtkCPPythonScriptV2Helper * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkObject | |
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 Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Additional Inherited Members | |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
an internal class encapsulating logic for Catalyst Python scripts.
This class is an internal helper to share code between vtkInSituPipelinePython
and vtkCPPythonScriptV2Pipeline
.
Definition at line 23 of file vtkCPPythonScriptV2Helper.h.
Definition at line 27 of file vtkCPPythonScriptV2Helper.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented from vtkObjectBase.
|
static |
|
overridevirtual |
Reimplemented from vtkObject.
bool vtkCPPythonScriptV2Helper::PrepareFromScript | ( | const std::string & | fname | ) |
Prepares the Python package/module for import.
This doesn't actually import it yet. Returns false if the prep failed for some reason.
const std::string& vtkCPPythonScriptV2Helper::GetScriptFileName | ( | ) | const |
Returns the name of the script passed in to PrepareFromScript.
bool vtkCPPythonScriptV2Helper::IsImported | ( | ) | const |
Returns if the package/module has been imported.
bool vtkCPPythonScriptV2Helper::Import | ( | const std::vector< std::string > & | args = {} | ) |
Imports the module/package.
This overload is used by vtkInSituPipelinePython
which in turn is used in ParaView-Catalyst, the ParaView-based implementation of the Catalyst In Situ API.
Returns true on success.
bool vtkCPPythonScriptV2Helper::CatalystInitialize | ( | ) |
Calls catalyst_initialize
.
bool vtkCPPythonScriptV2Helper::CatalystFinalize | ( | ) |
Calls catalyst_finalize
.
bool vtkCPPythonScriptV2Helper::CatalystExecute | ( | int | timestep, |
double | time, | ||
const std::vector< std::string > & | params = {} |
||
) |
Calls catalyst_execute
.
bool vtkCPPythonScriptV2Helper::CatalystResults | ( | ) |
Calls catalyst_results
.
bool vtkCPPythonScriptV2Helper::Import | ( | vtkCPDataDescription * | desc | ) |
There are overloads intended for vtkCPPythonScriptV2Pipeline i.e.
legacy Catalyst adaptors that don't use Conduit.
bool vtkCPPythonScriptV2Helper::CatalystInitialize | ( | vtkCPDataDescription * | desc | ) |
There are overloads intended for vtkCPPythonScriptV2Pipeline i.e.
legacy Catalyst adaptors that don't use Conduit.
bool vtkCPPythonScriptV2Helper::RequestDataDescription | ( | vtkCPDataDescription * | desc | ) |
There are overloads intended for vtkCPPythonScriptV2Pipeline i.e.
legacy Catalyst adaptors that don't use Conduit.
bool vtkCPPythonScriptV2Helper::CatalystExecute | ( | vtkCPDataDescription * | desc | ) |
There are overloads intended for vtkCPPythonScriptV2Pipeline i.e.
legacy Catalyst adaptors that don't use Conduit.
|
static |
Internal methods.
These are called by Python modules internal to ParaView and may change without notice. Should not be considered as part of ParaView API.
void vtkCPPythonScriptV2Helper::RegisterExtractor | ( | vtkSMProxy * | extractor | ) |
Internal methods.
These are called by Python modules internal to ParaView and may change without notice. Should not be considered as part of ParaView API.
void vtkCPPythonScriptV2Helper::RegisterView | ( | vtkSMProxy * | view | ) |
Internal methods.
These are called by Python modules internal to ParaView and may change without notice. Should not be considered as part of ParaView API.
void vtkCPPythonScriptV2Helper::SetOptions | ( | vtkSMProxy * | catalystOptions | ) |
Internal methods.
These are called by Python modules internal to ParaView and may change without notice. Should not be considered as part of ParaView API.
|
virtual |
Internal methods.
These are called by Python modules internal to ParaView and may change without notice. Should not be considered as part of ParaView API.
|
inline |
Internal methods.
These are called by Python modules internal to ParaView and may change without notice. Should not be considered as part of ParaView API.
Definition at line 97 of file vtkCPPythonScriptV2Helper.h.
vtkSMProxy* vtkCPPythonScriptV2Helper::GetTrivialProducer | ( | const char * | inputname | ) |
Internal methods.
These are called by Python modules internal to ParaView and may change without notice. Should not be considered as part of ParaView API.
vtkStringList* vtkCPPythonScriptV2Helper::GetArgumentsAsStringList | ( | ) | const |
Internal methods.
These are called by Python modules internal to ParaView and may change without notice. Should not be considered as part of ParaView API.
vtkStringList* vtkCPPythonScriptV2Helper::GetParametersAsStringList | ( | ) | const |
Internal methods.
These are called by Python modules internal to ParaView and may change without notice. Should not be considered as part of ParaView API.
|
protected |