Wrapping Filter of Plugin

(Viktor Leonhardt) #1

Hi,
I wrote a plugin, which delivers a filter in C++. Now I would like to wrap my plugin with python. My file-structure looks like this:

  • CMakeLists.txt
  • Plugin
    • paraview.plugin
    • CMakeLists.txt
    • Filter
      • CMakeLists.txt
      • vtk.module
      • Filter.xml
      • Filter.cxx
      • Filter.h

I tried to wrap my vtk module with python too using the following Plugin/Filter/CMakeLists.txt:

set(classes
  Filter)

vtk_module_add_module(VTK::CustomFilters
  CLASSES ${classes})

paraview_add_server_manager_xmls(
  XMLS  Filter.xml)

vtk_module_wrap_python(
  MODULES VTK::CustomFilters
)

How should I do it correct?