[vtkusers] Creating an algorithm with a variable number of output ports

Ben Medina ben.medina at gmail.com
Thu Nov 18 11:58:07 EST 2010


Thanks for the suggestions, guys. I may not need to integrate this
into the pipeline, since this is all flowing into vtkPlots, which
don't take vtkTableAlgorithmOutput for their input.

On Wed, Nov 17, 2010 at 7:15 PM, Jeff Baumes <jeff.baumes at kitware.com> wrote:
> 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



More information about the vtkusers mailing list