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.<div>
<br></div><div>Jeff<br><br><div class="gmail_quote">On Wed, Nov 17, 2010 at 6:33 PM, Ben Medina <span dir="ltr"><<a href="mailto:ben.medina@gmail.com">ben.medina@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello all,<br>
<br>
I want to create an algorithm that:<br>
- takes as input a single vtkTable<br>
- outputs multiple tables, where each table contains all rows from the<br>
original table that have the same value for a particular column.<br>
<br>
I don't see anything that does exactly this, so I believe I need to<br>
write my own algorithm. I have a couple of questions:<br>
<br>
1) Can an algorithm change its number of output ports during its<br>
lifetime? In my case, the number of output tables depends entirely on<br>
the input table, which is not known at construction and could<br>
potentially change at any time. Perhaps I should be using a repeatable<br>
output port?<br>
<br>
2) If so, is there an example available to show how this is done?<br>
<br>
Thanks,<br>
Ben<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br>
</div>