[vtkusers] how to connect a vtkDataSet to the input connection of a vtkAlgorithm?

David Doria daviddoria at gmail.com
Wed Nov 23 08:14:09 EST 2011


2011/11/23 Andreas Buykx <A.Buykx at tnodiana.com>:
> Hi all,
>
>
>
> In my application I build a vtkUnstructuredGrid that I want to feed to
> pipelines using the vtkAlgorithm::SetInputConnection(), instead of having to
> use the vtkAlgorithm::SetInput() of a derived class. Is there a way to
> ‘wrap’ the vtkDataSet/vtkPointSet/vtkUnstructuredGrid in a
> vtkAlgorithmOutput that I can connect to a vtkAlgorithm’s input connection,
> similar to vtkTrivialProducer for vtkDataObject? Unfortunately the output
> port of a vtkTrivialProducer just tells that its output data object is a
> vtkDataObject even if it is in fact a vtkUnstructuredGrid.
>
>
>
> Thanks for your advice,
>
>
>
> Andreas Buykx

I think what you're looking for is just unstructuredGrid->GetOutputPort() ?

David



More information about the vtkusers mailing list