Adding VTK filter

Dear all,

I would appreciate if somebody can clarify if there is a clear procedure how to add a new VTK filter in Paraview GUI for Windows?

I’m using the last release of Paraview v5.8 and I would like to add new VTK filters but I don’t find a clear way of doing it (for instance: https://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/LabelContours#Download_and_Build_LabelContours)

I tried something similar to what is described here (https://kitware.github.io/paraview-docs/latest/cxx/PluginHowto.html) but without success.

Can somebody help?

Kind Regards,

Rui

C++ : Examples/Plugins/ElevationFilter
Python : Examples/Plugins/PythonAlgorithm

Let us know what is working or not working and we will gladly help.

The current Paraview version that I have installed in my laptop was directly installed from the executable. But now I am in doubt if first I need to build the Paraview according this procedure(https://github.com/Kitware/ParaView/blob/master/Documentation/dev/build.md#windows)?

Thank you for your help.

For C++ Filter plugin, yes.
For python only filter plugin no.

" To create a plugin, one must have their own build of ParaView. Binaries downloaded from www.paraview.org do not include necessary header files or import libraries (where applicable) for compiling plugins."

If the VTK class is compiled into the ParaView binary (i.e., if it exists in the modules of VTK that ParaView requires), then you can simply create the XML for the plugin, and load the .xml plugin through the Plugin Manager. See how under the “XML Plugins” heading of https://kitware.github.io/paraview-docs/latest/cxx/PluginHowto.html on how to do this.

If you want to create an entirely new VTK class and expose that in ParaView, then you need to do what @mwestphal says.

1 Like