[vtkusers] Creating an algorithm with a variable number of output ports
Jeff Baumes
jeff.baumes at kitware.com
Wed Nov 17 22:15:24 EST 2010
On Wed, Nov 17, 2010 at 9:57 PM, David Thompson <dcthomp at sandia.gov> wrote:
> I don't believe you can make output ports repeatable, just input ports.
>> What you may want to look at using a single vtkMultiBlockDataSet as your
>> output type, which is essentially a vector of vtkDataObjects (like
>> vtkTable). That way, all of your outputs can be on one port. If you need to
>> pick off single vtkTables from the output to use downstream, I believe you
>> can use one or more instances of the vtkExtractBlock filter.
>>
>
> Jeff,
>
> The only problem with vtkExtractBlock is that you'll get another multiblock
> dataset out. It may only have one table in it, but I haven't seen a filter
> in VTK that will extract a "leaf" block and return just that dataset as a
> vtkDataObject (so that you might use the output as input to another
> vtkTableAlgorithm). Do you know of one?
>
>
My bad, perhaps there is no filter to do this then.
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101117/07ff7eca/attachment.htm>
More information about the vtkusers
mailing list