The new style connection concerns vtkAlgorithmOutput. In the case of a comprehensive pipeline (Source -> Filters -> Mappers), this is completely transparent, whenever you use old or new style.<br><br>In the special case where no vtk source is used (meaning vtkAlgorithm with no input), but a simple raw DataSet construction, there won't be any "Producer". We cannot use the GetProducerPort( ) for the SetInputConnection( ). If I understand well, using the old SetInput method is still valid?<br>
<br>Jerome<br><br><div class="gmail_quote">2009/12/6 David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sat, Dec 5, 2009 at 6:10 PM, David Doria <<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>> wrote:<br>
> On Wed, Dec 2, 2009 at 2:48 PM, Lic. José M. Rodriguez Bacallao<br>
> <<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>> wrote:<br>
>> and for example, with an vtkImageActor, it only accept vtkImageData<br>
>> objects as input with the SetInput method, how do I get an<br>
>> vtkImageData object, for example, from vtkImageReslice with the new<br>
>> style connections, or do I have to use reslice.GetOutput() old style?<br>
><br>
> That's a good question - I was wondering the same thing today.<br>
<br>
</div>The vtkImageActor was probably just overlooked when the new connection<br>
style was added to VTK. It definitely should have a<br>
SetInputConnection() method. It's an odd class in other ways, too.<br>
To answer the question, though, you must use the old-style connection<br>
with it.<br>
<br>
There isn't really anything "wrong" with the old-style connections,<br>
it's just that the new-style connections are preferred. If you have<br>
to use an old-style connection, then do so, and don't worry about it<br>
because you're not doing anything wrong.<br>
<div><div></div><div class="h5"><br>
David<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>
</div></div></blockquote></div><br>