[vtkusers] pipelines connections

Jérôme jerome.velut at gmail.com
Sun Dec 6 06:16:43 EST 2009


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.

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?

Jerome

2009/12/6 David Gobbi <david.gobbi at gmail.com>

> On Sat, Dec 5, 2009 at 6:10 PM, David Doria <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>>
> wrote:
> > On Wed, Dec 2, 2009 at 2:48 PM, Lic. José M. Rodriguez Bacallao
> > <jmrbcu at gmail.com> wrote:
> >> and for example, with an vtkImageActor, it only accept vtkImageData
> >> objects as input with the SetInput method, how do I get an
> >> vtkImageData object, for example, from vtkImageReslice with the new
> >> style connections, or do I have to use reslice.GetOutput() old style?
> >
> > That's a good question - I was wondering the same thing today.
>
> The vtkImageActor was probably just overlooked when the new connection
> style was added to VTK.  It definitely should have a
> SetInputConnection() method.  It's an odd class in other ways, too.
> To answer the question, though, you must use the old-style connection
> with it.
>
> There isn't really anything "wrong" with the old-style connections,
> it's just that the new-style connections are preferred.  If you have
> to use an old-style connection, then do so, and don't worry about it
> because you're not doing anything wrong.
>
>    David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091206/5081fca7/attachment.htm>


More information about the vtkusers mailing list