This wiki has been deprecated. You can find updated information from the main VTK website.

VTK/VTK 6 Migration/Removal of GetProducerPort

From KitwarePublic
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();

This can be replaced with:

vtkPolyData* pd = vtkPolyData::New();