On Wed, Nov 4, 2009 at 10:31 AM, Sven Buijssen
<[email protected]> 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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to