[Paraview] PluginFilter based on vtkPolyDataAlgorithm with two different types of input data

Boettcher, Prof. Dr. Peter Boettcher at kleintierklinik.uni-leipzig.de
Thu Mar 29 15:29:59 EDT 2012


I try to implement a vtkPolyDataAlgorithm filter as plugin in PV. The filter has 2 inputs: (1) vtkPolyData and (2) vtkImageData. Within the xml-file the different data types are declared:

 

  <InputProperty

         name="3DModel"

                port_index="0"

         command="SetInputConnection">

        <ProxyGroupDomain name="groups">

          <Group name="sources"/>

          <Group name="filters"/>

        </ProxyGroupDomain>

        <DataTypeDomain name="input_type">

          <DataType value="vtkPolyData"/>

        </DataTypeDomain>

        </InputProperty>

      <InputProperty

         name="3DVolume"

                port_index="1"

         command="SetInputConnection">

        <ProxyGroupDomain name="groups">

          <Group name="sources"/>

          <Group name="filters"/>

        </ProxyGroupDomain>

        <DataTypeDomain name="input_type">

          <DataType value="vtkImageData"/>

        </DataTypeDomain>

     </InputProperty>

 

The code compiles without error and the plugin can be loaded into PV. But when I select the plugin in PV the following error occurs:

 

 

ERROR: In ..\..\..\VTK\Filtering\vtkDemandDrivenPipeline.cxx, line 827

vtkPVCompositeDataPipeline (1FBD9388): Input for connection index 0 on input port index 1 for algorithm vtkCTOAM(1F9E8D80) is of type vtkImageData, but a vtkPolyData is required.

ERROR: In ..\..\..\VTK\Filtering\vtkDemandDrivenPipeline.cxx, line 827

vtkPVCompositeDataPipeline (1FBD9388): Input for connection index 0 on input port index 1 for algorithm vtkCTOAM(1F9E8D80) is of type vtkImageData, but a vtkPolyData is required.

ERROR: In ..\..\..\VTK\Filtering\vtkDemandDrivenPipeline.cxx, line 827

vtkPVCompositeDataPipeline (1FBD9388): Input for connection index 0 on input port index 1 for algorithm vtkCTOAM(1F9E8D80) is of type vtkImageData, but a vtkPolyData is required.

 

Obviously, the plugin does only accept polydata as input, because it is based on a vtkPolyDataAlgorithm filter. Is there a way I could mix both data types as input to a vtkPolyDataAlgorithm?

 

Regards, Peter.

 

---------------------------------------------------------

Prof. Dr. Peter Böttcher, DipECVS

European Veterinary Specialist in Surgery 

Fachtierarzt für Kleintierchirurgie 

Klinik für Kleintiere 

Universität Leipzig 

An den Tierkliniken 23

D-04103 Leipzig (Germany)

Tel: +49-341-9738700

Fax: +49-341-9738799

Email: boettcher at kleintierklinik.uni-leipzig.de <mailto:boettcher at kleintierklinik.uni-leipzig.de> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120329/56cde91a/attachment.htm>


More information about the ParaView mailing list