[vtkusers] vtkDAtaset & pipeline architecture

Andy Bauer andy.bauer at kitware.com
Tue Jul 3 13:58:46 EDT 2012


What type of data set do you have? Rob's idea should work for unstructured
grids. For structured grids you may want to try vtkPVTrivialProducer
instead since that has stuff for extents in it though that may still be a
bit wonky, especially with the VOI filters.

Andy

On Tue, Jul 3, 2012 at 1:44 PM, Robert Maynard
<robert.maynard at kitware.com>wrote:

> Have you tried to use vtkTrivialProducer? You should be able to use
> SetOutput(vtkDataSet) to set the output dataset.
>
> On Tue, Jul 3, 2012 at 11:08 AM, Randall Hand <randall.hand at gmail.com>wrote:
>
>> I have several functions in code libraries based on older stuff
>> (primarily custom file format readers) that return vtkDataSet stuff, but
>> I've recently started building code on the new
>> GetOutputPort/SetInputConnection methods.  I had kinda hoped I could use a
>> vtkPassThroughFilter and SetInput(vtkDataSet), GetOutputPort(), but that
>> results in errors.
>>
>> Is there a simple way to make this work? Or am I stuck rebuilding all my
>> file readers?
>> --
>> Randall Hand
>> http://www.vizworld.com
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>
> --
> Robert Maynard
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120703/06a6181d/attachment.htm>


More information about the vtkusers mailing list