detail.pythonalgorithm Module

paraview.detail.pythonalgorithm.get_plugin_name(module_or_package)[source]

helper function called by vtkPVPythonAlgorithmPlugin to discover ParaView plugin name, if any.

paraview.detail.pythonalgorithm.get_plugin_version(module_or_package)[source]

helper function called by vtkPVPythonAlgorithmPlugin to discover ParaView plugin version, if any.

paraview.detail.pythonalgorithm.get_plugin_xmls(module_or_package)[source]

helper function called by vtkPVPythonAlgorithmPlugin to discover all “proxy” decorated classes in the module or package. We don’t recurse into the package, on simply needs to export all classes that form the ParaView plugin in the __init__.py for the package.

paraview.detail.pythonalgorithm.get_qualified_classname(classobj)[source]
paraview.detail.pythonalgorithm.load_plugin(filepath, default_modulename=None)[source]

helper function called by vtkPVPythonAlgorithmPlugin to load a python file.

paraview.detail.pythonalgorithm.reload_plugin_module(module)[source]

helper function to reload a plugin module previously loaded via load_plugin

class paraview.detail.pythonalgorithm.smdomain[source]

Bases: object

Provides decorators that add domains to properties.

static datatype(dataTypes, **kwargs)[source]
static doublerange(**kwargs)[source]
static filelist(**kwargs)[source]
static intrange(**kwargs)[source]
static xml(xmlstr)[source]
class paraview.detail.pythonalgorithm.smhint[source]

Bases: object

Provides decorators that add hints to proxies and properties.

static filechooser(extensions, file_description)[source]
static xml(xmlstr)[source]
class paraview.detail.pythonalgorithm.smproperty[source]

Bases: object

Provides decorators for class methods that are to be exposed as server-manager properties in ParaView. Only methods that are decorated using one of the available decorators will be exposed be accessible to ParaView UI or client-side Python scripting API.

static dataarrayselection(name=None)[source]
static doublevector(**kwargs)[source]
static idtypevector(**kwargs)[source]
static input(**kwargs)[source]
static intvector(**kwargs)[source]
static proxy(**kwargs)[source]
static stringvector(**kwargs)[source]
static xml(xmlstr)[source]

Decorator that be used to directly add a ServerManager property XML for a method.

class paraview.detail.pythonalgorithm.smproxy[source]

Bases: object

Provides decorators for class objects that should be exposed to ParaView.

static filter(**kwargs)[source]
static reader(file_description, extensions=None, filename_patterns=None, is_directory=False, **kwargs)[source]

Decorates a reader. Either filename_patterns or extensions must be provided.

static source(**kwargs)[source]
static writer(file_description, extensions, **kwargs)[source]

Decorates a writer.