VTK/VTK 6 Migration/Removal of SetExtentTranslator
Removal of SetExtentTranslator and GetExtentTranslator from vtkDataObject
VTK 6 introduces a number of backwards-incompatible changes. The reasons behind these changes are described in more detail VTK/VTK_6_Migration/Overview. One of these changes is the removal of all pipeline related methods from vtkDataObject. Among these methods are SetExtentTranslator() and GetExtentTranslator(). This functionality is still available through vtkStreamingDemandDrivenPipeline.
Example 1
Replace
<source lang="cpp"> vtkDataObject* dobj = algorithm->GetOutput(); dobj->GetExtentTranslator(); </source>
with
<source lang="cpp"> vtkStreamingDemandDrivenPipeline::GetExtentTranslator(
algorithm->GetExecutive()->GetOutputPort());
</source>
Example 2
<source lang="cpp"> vtkDataObject* dobj = algorithm->GetOutput(); dobj->SetExtentTranslator(translator); </source>
with
<source lang="cpp"> vtkStreamingDemandDrivenPipeline::SetExtentTranslator(
algorithm->GetExecutive()->GetOutputPort(), translator);
</source>