[vtkusers] Interactive changes to visualisation pipeline

John Platt jcplatt at lineone.net
Fri Mar 12 17:42:29 EST 2004


Hi All,

 

I was wondering if anybody can give advice/preferences on making
interactive changes to a pipeline.

 

The particular pipeline structure of interest is shown below where the
source, S, is a vtkDataSet.

                           

            S  >  F1   >    F2 > F3 .           Mapper1

                           >    F4 > F5 .           Mapper2

                           ..

 

F1 is the filter that needs to be switched in or out. It is also special
in that the input and output are of the same type.

Several approaches appear possible.

 

1. Leave F1 in place and configure so that F1->GetOutput() =
S->GetOutput(). This seems wasteful unless a bypass method could be
added which did precisely this.

 

2. Manage the section S > F1 manually. Connect F2 & F4 directly to S and
overwrite S using S->ShallowCopy(F1->GetOutput() ). A safe copy of the
original S is made so that when F1 is not required this is used in the
ShallowCopy().

 

3. Find all the current consumers of S or F1 and reset the inputs to F1
or S.

 

4. Try and architect the system so the entire pipeline can easily be
rebuilt.

 

Perhaps there are other ways? Any comments welcomed.

 

John.

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040312/15f82d82/attachment.htm>


More information about the vtkusers mailing list