Re: [Paraview] Ordered xml inputs?

2009-11-04 Thread David Doria
On Wed, Nov 4, 2009 at 2:32 PM, Utkarsh Ayachit wrote: > David, > > Looking at the xml, you have added a "clean_command" to all the > properties which is "RemoveAllInputs". CleanCommand is called before a > property is pushed. So before each property value is pushed all other > inputs are removed.

Re: [Paraview] Ordered xml inputs?

2009-11-04 Thread Utkarsh Ayachit
David, Looking at the xml, you have added a "clean_command" to all the properties which is "RemoveAllInputs". CleanCommand is called before a property is pushed. So before each property value is pushed all other inputs are removed. And hence the error. If your filter only takes 1 connection per i

Re: [Paraview] Ordered xml inputs?

2009-11-04 Thread David Doria
On Wed, Nov 4, 2009 at 10:31 AM, Sven Buijssen 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: > >               name="SourceDataSet" >         port_in

Re: [Paraview] Ordered xml inputs?

2009-11-04 Thread Sven Buijssen
. Whereas RemoveAllInputs() is inherited from class vtkAlgorithm. Sven - Original Message - From: David Doria To: ParaView CC: ParaView Sent: 11/04/09 15:48:06 Subject: [Paraview] Ordered xml inputs? > On Tue, Nov 3, 2009 at 11:31 AM, Utkarsh Ayachit > wrote: >>

Re: [Paraview] Ordered xml inputs?

2009-11-04 Thread David Doria
On Tue, Nov 3, 2009 at 11:31 AM, Utkarsh Ayachit wrote: > There are two ways: > > 1> Use attribute "port_index" on the InputProperty to specify which > input port it's going to eg. > > /> > > /> > > 2> Use helper methods defined on the filter eg. >      void AddSource(vtkAlgorithmOutput* input)

Re: [Paraview] Ordered xml inputs?

2009-11-03 Thread Utkarsh Ayachit
There are two ways: 1> Use attribute "port_index" on the InputProperty to specify which input port it's going to eg. 2> Use helper methods defined on the filter eg. void AddSource(vtkAlgorithmOutput* input) { this->AddInputConnection(0, input); } void AddTarget(vtkAlgorithmOutput*

[Paraview] Ordered xml inputs?

2009-11-03 Thread David Doria
Are the InputProperties specified in the XML file ordered? That is, if I do something like this in the VTK filter's RequestData vtkPolyData * Source = static_cast(this->GetExecutive()->GetInputData(0, 0)); vtkPolyData * Target = static_cast(this->GetExecutive()->GetInputData(1, 0)); Then in the