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

Andreas Buykx A.Buykx at tnodiana.com
Wed Nov 23 06:17:01 EST 2011


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
Senior Software Engineer

TNO DIANA BV
Software Developers and Analysis Consultants for Civil and Geotechnical Engineering

Delftechpark 19a, 2628 XJ, Delft, The Netherlands
Tel: +31 88 34262 15 (Direct) │ Tel: +31 88 34262 00 (Switchboard) │ +31 88 34262 99 (Fax)
http://tnodiana.com<http://tnodiana.com/>

...be green keep it on screen

____________________________________________________________
TNO DIANA BV is a limited liability company registered in the trade register of the Chamber of Commerce as TNO DIANA BV with registered number 27252655.
____________________________________________________________
This e-mail and its contents are subject to the DISCLAIMER at http://tnodiana.com/content/Disclaimer
____________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111123/35f76bbe/attachment.htm>


More information about the vtkusers mailing list