[vtkusers] source object with multiple outputs

Bill Lorensen wlorens1 at nycap.rr.com
Thu Dec 20 20:16:19 EST 2001


vtkClipPolyData has two outputs.

At 05:11 PM 12/20/01 -0500, Marc Niethammer wrote:
>Hi,
>
>I would like to create a reader class that generates multiple datasets as
>outputs (multiple vtkStructured/Unstructured Grids). Each of these
>datasets should then be assigned to individual mappers, so that each
>dataset is ultimately represented by one actor. 
>
>Is it still possible to assign datasets to the mapper in the following
>way?
>
>Mapper->SetInput(pDatasets->GetOutput());
>
>(where pDatasets is a pointer to the class with the multiple datasets as
>outputs). I.e. could I still retain the pipeline structure and loop over
>the datasets to create these individual mappers? On the other hand the
>number of outputs might not be available at that point (update?).
>
>A sample code for a source object with multiple outputs and how to use it
>would be of great value for me.
>
>Thanks for any help.
>
>-- Marc
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers 





More information about the vtkusers mailing list