[vtkusers] Confusion about GetOutputPort and GetOutput

Berk Geveci berk.geveci at kitware.com
Fri Mar 6 16:26:46 EST 2009


I would use foo->SetInputConnection(bar->GetOutputPort()) to create
the pipeline but using
GetOutput() to get the output data object of a filter is totally fine
(and should not be
discouraged). Can you tell me which page this text is in?

-berk

On Fri, Mar 6, 2009 at 8:45 AM, Eugen Wintersberger
<eugen.wintersberger at jku.at> wrote:
> Hi there
>  its me again. I just had a look in "The Visualization Toolkit ....".
> The book states that the usage of SetInput and GetOutput is highly
> discouraged for VTK versions higher then 5.0. I use VTK 5.0.4 on an
> Ubuntu 8.10 AMD64 installation. If I write my program using SetInput -
> GetOutput I can easily access different attribute data from a dataset by
> passing the index of the attribute data as an argument to the GetOutput
> method of a dataset class. If I use, as recommended the GetOutputPort I
> cannot use the index of attribute data. Can anyone explain me why this
> is in this way or do I make a conceptual mistake?
>
> regards
>   Eugen
> --
> --------------------------------------------
> |                                          |
> | Dipl. Ing. Eugen Wintersberger           |
> | Department of semicondutor physics       |
> | University of Linz                       |
> | Altenbergerstrasse 69                    |
> | A-4040 Linz                              |
> | Austria                                  |
> |                                          |
> | Mobile.: +43 664 3112861                 |
> | Tel.: +43 732 2468 9605                  |
> | E-Mail.: eugen.wintersberger at jku.at      |
> | Skype: eugen20056221                     |
> | ICQ: 214418739, nickname: thot           |
> |                                          |
> --------------------------------------------
>
> _______________________________________________
> 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
>



More information about the vtkusers mailing list