VTK/VTK 6 Migration/Removal of GetProducerPort
< VTKJump 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.
<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>