// 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);