Public Member Functions | Static Public Member Functions | Friends | List of all members
vtkPVPythonAlgorithmPlugin Class Reference

packages a Python module into a ParaView plugin. More...

#include <vtkPVPythonAlgorithmPlugin.h>

Inheritance diagram for vtkPVPythonAlgorithmPlugin:
Inheritance graph
[legend]
Collaboration diagram for vtkPVPythonAlgorithmPlugin:
Collaboration graph
[legend]

Public Member Functions

 ~vtkPVPythonAlgorithmPlugin () override
 
 vtkPVPythonAlgorithmPlugin (const char *filePath)
 Constructors for the object. More...
 
 vtkPVPythonAlgorithmPlugin (const char *moduleName, const char *pythonSourceCode)
 Constructors for the object. More...
 
const char * GetPluginName () override
 
const char * GetPluginVersionString () override
 
bool GetRequiredOnServer () override
 
bool GetRequiredOnClient () override
 
const char * GetRequiredPlugins () override
 
const char * GetDescription () override
 
const char * GetEULA () override
 
void GetXMLs (std::vector< std::string > &xmls) override
 
vtkClientServerInterpreterInitializer::InterpreterInitializationCallback GetInitializeInterpreterCallback () override
 
- Public Member Functions inherited from vtkPVPlugin
 vtkPVPlugin ()
 
virtual ~vtkPVPlugin ()
 
const char * GetFileName ()
 
virtual void GetBinaryResources (std::vector< std::string > &resources)
 Provides access to binary resources compiled into the plugin. More...
 
- Public Member Functions inherited from vtkPVServerManagerPluginInterface
virtual ~vtkPVServerManagerPluginInterface ()
 
virtual void GetXMLs (std::vector< std::string > &vtkNotUsed(xmls))=0
 Obtain the server-manager configuration xmls, if any. More...
 
virtual bool GetEnsurePluginLoaded ()
 Return if the plugin should be ensured when using a proxy provided by the XMLs Useful for delayed load plugin. More...
 

Static Public Member Functions

static bool InitializeFromStringAndGetXMLs (const char *moduleName, const char *pythonSourceCode, std::vector< std::string > &xmls)
 Creates the object from Python source code and gets the servermanager XMLs from all the Python filters included in the 'moduleName'. More...
 
- Static Public Member Functions inherited from vtkPVPlugin
static bool ImportPlugin (vtkPVPlugin *plugin)
 Used when import plugins programmatically. More...
 
static void SetEULAConfirmationCallback (EULAConfirmationCallback callback)
 Get/Set the static callback to call to confirm EULA. More...
 
static EULAConfirmationCallback GetEULAConfirmationCallback ()
 Type for EULAConfirmationCallback. More...
 

Friends

class vtkPVPythonAlgorithmPluginLoaderInitializer
 

Additional Inherited Members

- Public Types inherited from vtkPVPlugin
typedef bool(* EULAConfirmationCallback) (vtkPVPlugin *)
 Type for EULAConfirmationCallback. More...
 
- Protected Member Functions inherited from vtkPVPlugin
void SetFileName (const char *filename)
 Set the filename the plugin is loaded from, if any. More...
 

Detailed Description

packages a Python module into a ParaView plugin.

vtkPVPythonAlgorithmPlugin helps us support loading a Python module as a ParaView plugin. The only supported type of plugin is a server-manager plugin that adds support for algorithm proxies i.e. readers, filters, and writers.

Definition at line 25 of file vtkPVPythonAlgorithmPlugin.h.

Constructor & Destructor Documentation

◆ vtkPVPythonAlgorithmPlugin() [1/2]

vtkPVPythonAlgorithmPlugin::vtkPVPythonAlgorithmPlugin ( const char *  filePath)

Constructors for the object.

The first version reads the python plugin from the .py file at 'filePath'. The second version is used for plugins that include both C++ and Python filters (the Python source code is included in the .so in this case)

◆ vtkPVPythonAlgorithmPlugin() [2/2]

vtkPVPythonAlgorithmPlugin::vtkPVPythonAlgorithmPlugin ( const char *  moduleName,
const char *  pythonSourceCode 
)

Constructors for the object.

The first version reads the python plugin from the .py file at 'filePath'. The second version is used for plugins that include both C++ and Python filters (the Python source code is included in the .so in this case)

◆ ~vtkPVPythonAlgorithmPlugin()

vtkPVPythonAlgorithmPlugin::~vtkPVPythonAlgorithmPlugin ( )
override

Member Function Documentation

◆ GetPluginName()

const char* vtkPVPythonAlgorithmPlugin::GetPluginName ( )
overridevirtual

Implementation of the vtkPVPlugin interface.

Implements vtkPVPlugin.

◆ GetPluginVersionString()

const char* vtkPVPythonAlgorithmPlugin::GetPluginVersionString ( )
overridevirtual

Implementation of the vtkPVPlugin interface.

Implements vtkPVPlugin.

◆ GetRequiredOnServer()

bool vtkPVPythonAlgorithmPlugin::GetRequiredOnServer ( )
inlineoverridevirtual

Implementation of the vtkPVPlugin interface.

Implements vtkPVPlugin.

Definition at line 46 of file vtkPVPythonAlgorithmPlugin.h.

◆ GetRequiredOnClient()

bool vtkPVPythonAlgorithmPlugin::GetRequiredOnClient ( )
inlineoverridevirtual

Implementation of the vtkPVPlugin interface.

Implements vtkPVPlugin.

Definition at line 47 of file vtkPVPythonAlgorithmPlugin.h.

◆ GetRequiredPlugins()

const char* vtkPVPythonAlgorithmPlugin::GetRequiredPlugins ( )
inlineoverridevirtual

Implementation of the vtkPVPlugin interface.

Implements vtkPVPlugin.

Definition at line 48 of file vtkPVPythonAlgorithmPlugin.h.

◆ GetDescription()

const char* vtkPVPythonAlgorithmPlugin::GetDescription ( )
inlineoverridevirtual

Implementation of the vtkPVPlugin interface.

Implements vtkPVPlugin.

Definition at line 49 of file vtkPVPythonAlgorithmPlugin.h.

◆ GetEULA()

const char* vtkPVPythonAlgorithmPlugin::GetEULA ( )
inlineoverridevirtual

Implementation of the vtkPVPlugin interface.

Implements vtkPVPlugin.

Definition at line 50 of file vtkPVPythonAlgorithmPlugin.h.

◆ GetXMLs()

void vtkPVPythonAlgorithmPlugin::GetXMLs ( std::vector< std::string > &  xmls)
override

Implementation of the vtkPVServerManagerPluginInterface.

◆ GetInitializeInterpreterCallback()

vtkClientServerInterpreterInitializer::InterpreterInitializationCallback vtkPVPythonAlgorithmPlugin::GetInitializeInterpreterCallback ( )
inlineoverridevirtual

Implementation of the vtkPVServerManagerPluginInterface.

Implements vtkPVServerManagerPluginInterface.

Definition at line 57 of file vtkPVPythonAlgorithmPlugin.h.

◆ InitializeFromStringAndGetXMLs()

static bool vtkPVPythonAlgorithmPlugin::InitializeFromStringAndGetXMLs ( const char *  moduleName,
const char *  pythonSourceCode,
std::vector< std::string > &  xmls 
)
static

Creates the object from Python source code and gets the servermanager XMLs from all the Python filters included in the 'moduleName'.

Friends And Related Function Documentation

◆ vtkPVPythonAlgorithmPluginLoaderInitializer

Definition at line 76 of file vtkPVPythonAlgorithmPlugin.h.


The documentation for this class was generated from the following file: