]> Creatis software - crea.git/commitdiff
#3106 crea Bug New Normal - branch vtk7itk4 compilation with vtk7
authorEduardo DAVILA <davila@localhost.localdomain>
Wed, 19 Jul 2017 14:30:23 +0000 (16:30 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Wed, 19 Jul 2017 14:30:23 +0000 (16:30 +0200)
src/creaVtkBasicSlicer.cxx

index d57e71a92d558d67361f92dbbaf97fcfc78fd738..c027da12f98007685df5148b72bee5481142c96b 100644 (file)
@@ -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);