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
vtkDataObject* dobj = algorithm->GetOutput();
vtkExecutive* exec = dobj->GetExecutive();
with
vtkExecutive* exec = algorithm->GetExecutive();
Example 2
Replace
vtkDataObject* dobj = algorithm->GetOutput();
vtkInformation* info = dobj->GetPipelineInformation();
with
algorithm->GetExecutive()->GetOutputInformation(0 /* port number */);