VTK/VTK 6 Migration/Removal of GetPipelineInformation

From KitwarePublic
< VTK
Revision as of 18:34, 6 April 2012 by Berk (talk | contribs) (Created page with "= Removal of GetPipelineInformation and GetExecutive from vtkDataObject = VTK 6 introduces a number of backwards-incompatible changes. The reasons behind these changes are descr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>