From: Eduardo DAVILA Date: Wed, 19 Jul 2017 14:30:23 +0000 (+0200) Subject: #3106 crea Bug New Normal - branch vtk7itk4 compilation with vtk7 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7393d0d5327bbc1139071452c27b5ed581df16d4;p=crea.git #3106 crea Bug New Normal - branch vtk7itk4 compilation with vtk7 --- diff --git a/src/creaVtkBasicSlicer.cxx b/src/creaVtkBasicSlicer.cxx index d57e71a..c027da1 100644 --- a/src/creaVtkBasicSlicer.cxx +++ b/src/creaVtkBasicSlicer.cxx @@ -103,7 +103,16 @@ namespace crea // cross-hair cursor snapping to pixel centers vtkImagePlaneWidget* planeWidgetZ = vtkImagePlaneWidget::New(); planeWidgetZ->DisplayTextOn(); + +//EED 2017-01-01 Migration VTK7 +#if (VTK_MAJOR_VERSION <= 5) planeWidgetZ->SetInput(I); +#endif +#if (VTK_MAJOR_VERSION >= 6) + planeWidgetZ->SetInputData(I); +#endif + + planeWidgetZ->SetPlaneOrientationToZAxes(); planeWidgetZ->SetSlicePosition((zMax+zMin)/2.); planeWidgetZ->SetPicker(picker);