VTK/VTK 6 Migration/Removal of GetProducerPort: Difference between revisions

From KitwarePublic
< VTK
Jump to navigationJump to search
(Created page with "= Removal of GetProducerPort() from vtkDataObject = VTK 6 introduces a number of backwards-incompatible changes. The reasons behind these changes are described in more detail [...")
 
(No difference)

Latest revision as of 18:22, 6 April 2012

Removal of GetProducerPort() from vtkDataObject

VTK 6 introduces a number of backwards-incompatible changes. The reasons behind these changes are described in more detail here. One of these changes is the removal of all pipeline related methods from vtkDataObject. One of these methods is GetProducerPort(). This method was commonly used in the following way.

<source lang="cpp"> vtkPolyData* pd = vtkPolyData::New(); someAlgorithm->SetInputConnection(pd->GetProducerPort()); </source>

This can be replaced with:

<source lang="cpp"> vtkPolyData* pd = vtkPolyData::New(); someAlgorithm->SetInputData(pd); </source>