X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2FCutModule%2Finterface%2FvtkInteractorStyleCutter.cxx;h=b118ce09a032292da29a0b5023e5a51f9313df1a;hb=25e3adf442d6a8d357d52410267445c54426c525;hp=10b680f881591961e3cf2a6b84aad0861d19574c;hpb=e4ef2b5df5aac431ff3b806f83b7dd5e55e89d86;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/CutModule/interface/vtkInteractorStyleCutter.cxx b/lib/maracasVisuLib/src/CutModule/interface/vtkInteractorStyleCutter.cxx index 10b680f..b118ce0 100644 --- a/lib/maracasVisuLib/src/CutModule/interface/vtkInteractorStyleCutter.cxx +++ b/lib/maracasVisuLib/src/CutModule/interface/vtkInteractorStyleCutter.cxx @@ -53,7 +53,12 @@ #include #include +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 vtkCxxRevisionMacro(vtkInteractorStyleCutter, "$Revision: 1.2 $"); +#else +// .. +#endif vtkStandardNewMacro(vtkInteractorStyleCutter); //---------------------------------------------------------------------------- @@ -72,7 +77,12 @@ vtkInteractorStyleCutter::vtkInteractorStyleCutter() pd->SetLines( Lines ); vtkPolyDataMapper2D *bboxMapper = vtkPolyDataMapper2D::New(); +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 bboxMapper->SetInput( pd ); +#else + bboxMapper->SetInputData( pd ); +#endif this->BboxActor = vtkActor2D::New(); this->BboxActor->SetMapper( bboxMapper );