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

Ben Medina ben.medina at gmail.com
Wed Nov 17 18:33:46 EST 2010


Hello all,

I want to create an algorithm that:
- takes as input a single vtkTable
- outputs multiple tables, where each table contains all rows from the
original table that have the same value for a particular column.

I don't see anything that does exactly this, so I believe I need to
write my own algorithm. I have a couple of questions:

1) Can an algorithm change its number of output ports during its
lifetime? In my case, the number of output tables depends entirely on
the input table, which is not known at construction and could
potentially change at any time. Perhaps I should be using a repeatable
output port?

2) If so, is there an example available to show how this is done?

Thanks,
Ben



More information about the vtkusers mailing list