Hi,
I am looking at vtkPythonAlgorithm C++ class.
What was the design goal of vtkPythonAlgorithm ? What are the current classes that subclass from it and what are their use cases ?
Kind regards
Hi,
I am looking at vtkPythonAlgorithm C++ class.
What was the design goal of vtkPythonAlgorithm ? What are the current classes that subclass from it and what are their use cases ?
Kind regards
It allows to create algorithms in Python which behave like regular vtk algorithms. vtkPythonAlgorithm
is just the glue between the C++ and Python layer. I don’t think they are subclasses in C++ there are however in Python.
Here are some examples in a test: https://gitlab.kitware.com/vtk/vtk/-/blob/v9.4.0/Filters/Python/Testing/Python/TestPythonAlgorithm.py
Check out also this https://www.kitware.com/vtkpythonalgorithm-is-great/
More examples here https://www.paraview.org/paraview-docs/nightly/python/paraview.util.vtkAlgorithm.html#examples
If you are only interested in VTK and not ParaView you can ignore the decorators in this file.