VTK/VTK 6 Migration/Removal of GetPipelineInformation

From KitwarePublic
< VTK
Jump to navigationJump to search

Removal of GetPipelineInformation and GetExecutive 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. Among these are GetPipelineInformation() and GetExecutive(). This functionality is still available through vtkAlgorithm and vtkExecutive.

Example 1

Replace

<source lang="cpp"> vtkDataObject* dobj = algorithm->GetOutput(); vtkExecutive* exec = dobj->GetExecutive(); </source>

with

<source lang="cpp"> vtkExecutive* exec = algorithm->GetExecutive(); </source>

Example 2

Replace

<source lang="cpp"> vtkDataObject* dobj = algorithm->GetOutput(); vtkInformation* info = dobj->GetPipelineInformation(); </source>

with

<source lang="cpp"> algorithm->GetExecutive()->GetOutputInformation(0 /* port number */); </source>