VTK/VTK 6 Migration/Removal of GetProducerPort

From KitwarePublic
< VTK
Revision as of 13:22, 6 April 2012 by Berk (talk | contribs) (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 [...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.

vtkPolyData* pd = vtkPolyData::New();
someAlgorithm->SetInputConnection(pd->GetProducerPort());

This can be replaced with:

vtkPolyData* pd = vtkPolyData::New();
someAlgorithm->SetInputData(pd);