VTK6 引入了许多不兼容的变。其中之一是删除vtkDataObject中所有有关管道的方法。其中的两个方法就是GetPipelineInformation() 和 GetExecutive()。这些方法被移到vtkAlgorithm 和vtkExecutive类中。

例子1

 


vtkDataObject* dobj = algorithm->GetOutput();
vtkExecutive* exec = dobj->GetExecutive();

替换成:

vtkExecutive* exec = algorithm->GetExecutive();

例子2

vtkDataObject* dobj = algorithm->GetOutput();
vtkInformation* info = dobj->GetPipelineInformation();

替换成:

algorithm->GetExecutive()->GetOutputInformation(0 /* port number */);

 

 


 

相关文章:

  • 2022-01-24
  • 2022-02-21
  • 2021-09-28
  • 2022-12-23
  • 2021-09-29
  • 2021-06-06
  • 2021-06-19
  • 2022-12-23
猜你喜欢
  • 2021-05-29
  • 2021-09-16
  • 2022-01-28
  • 2022-02-01
  • 2021-11-21
  • 2021-06-20
  • 2022-01-14
相关资源
相似解决方案