planeWidgetZ.SetInteractor(renWin.getIren());
planeWidgetZ.SetInteractor(getIren());
  public void setImageData(vtkImageData id) {    //The shared picker enables us to use 3 planes at one time    //and gets the picking order right    vtkCellPicker picker = new vtkCellPicker();    picker.SetTolerance(0.005);    //The 3 image plane widgets are used to probe the dataset.    vtkImagePlaneWidget planeWidgetX = new vtkImagePlaneWidget();    planeWidgetX.DisplayTextOn();    planeWidgetX.SetInput(id);    planeWidgetX.SetInteractor(renWin.getIren());    planeWidgetX.SetPlaneOrientationToXAxes();    planeWidgetX.SetSliceIndex(32);    planeWidgetX.SetPicker(picker);    planeWidgetX.SetKeyPressActivationValue('x');    planeWidgetX.GetPlaneProperty().SetColor(1, 0, 0);    planeWidgetX.On();    vtkImagePlaneWidget planeWidgetY = new vtkImagePlaneWidget();    planeWidgetY.DisplayTextOn();    planeWidgetY.SetInput(id);    planeWidgetY.SetInteractor(renWin.getIren());    planeWidgetY.SetPlaneOrientationToYAxes();    planeWidgetY.SetSliceIndex(32);    planeWidgetY.SetPicker(picker);    planeWidgetY.SetKeyPressActivationValue('y');    planeWidgetY.GetPlaneProperty().SetColor(1, 1, 0);    planeWidgetY.SetLookupTable(planeWidgetX.GetLookupTable());    planeWidgetY.On();         //for the z-slice, turn off texture interpolation:    //interpolation is now nearest neighbour, to demonstrate    //cross-hair cursor snapping to pixel centers    vtkImagePlaneWidget planeWidgetZ = new vtkImagePlaneWidget();    planeWidgetZ.DisplayTextOn();    planeWidgetZ.SetInput(id);    planeWidgetZ.TextureInterpolateOff();    planeWidgetZ.SetInteractor(renWin.getIren());    planeWidgetZ.SetPlaneOrientationToZAxes();    planeWidgetZ.SetSliceIndex(46);    planeWidgetZ.SetPicker(picker);    planeWidgetZ.SetKeyPressActivationValue('z');    planeWidgetZ.GetPlaneProperty().SetColor (0, 0, 1);    planeWidgetZ.SetLookupTable(planeWidgetX.GetLookupTable());    planeWidgetZ.On();    //An outline is shown for context.    vtkOutlineFilter outline = new vtkOutlineFilter();    outline.SetInput (id);          vtkPolyDataMapper outlineMapper = new vtkPolyDataMapper();    outlineMapper.SetInput ( outline.GetOutput()  );          vtkActor outlineActor = new vtkActor();    outlineActor.SetMapper(outlineMapper);          renWin.GetRenderer().AddActor(outlineActor);          //Add the outline actor to the renderer, set the background and size    renWin.GetRenderer().GetCullers().RemoveAllItems();          renWin.GetRenderer().SetBackground(0.1, 0.1, 0.2);        }