[Paraview] Ordered xml inputs?

David Doria daviddoria at gmail.com
Wed Nov 4 10:42:02 EST 2009


On Wed, Nov 4, 2009 at 10:31 AM, Sven Buijssen
<sven.buijssen at tu-dortmund.de> wrote:
> David,
>
> I had a short glance at your code and there are two things I find intriging:
>
> 1) Your XML mixes the port_index="." and helper method approach for property
> SourceDataSet:
>
>      <InputProperty
>         name="SourceDataSet"
>         port_index="2"
>         command="AddSourceConnection"
>         clean_command="RemoveAllSources">
>
> You'll have to change the command to "AddInputConnection", in particular because
> method AddSourceConnection is merely declared in your *.h file, but there is
> nowhere any corresponding code for it. (It's not inherited from class
> vtkPolyDataAlgorithm.)
>
> 2) Same holds for the clean command: RemoveAllSources() is referenced in the
> XML, declared in the header file, but not defined. Whereas RemoveAllInputs() is
> inherited from class vtkAlgorithm.
>
> Sven
>
>

Ah, sorry, you are correct - those were copy/paste errors!

However, now that those things are fixed
(http://www.rpi.edu/~doriad/Paraview_List/LandmarkFilter/LandmarkTransformFilter.xml)
when I apply the filter in Paraview and set the inputs using the Input
Editor, I get a whole bunch of these errors:

vtkCompositeDataPipeline (0xa82e288): Input port 0 of algorithm
vtkLandmarkTransformFilter(0xa82e240) has 0 connections but is not
optional.
vtkCompositeDataPipeline (0xa82e288): Input port 1 of algorithm
vtkLandmarkTransformFilter(0xa82e240) has 2 connections but is not
repeatable.
etc, etc.

Why would this be?

Thanks,

David


More information about the ParaView mailing list