Hello All,<br><br>I found that if I put vtkImagePlaneWidget into a renderwindow, then the default interactor style is JoystickCamera. I want to change this to be some other style, say the RubberBandZoom.&nbsp; I've listed my code below. When I run this, I get a very weird thing. If I click inside the widget, then everything works fine. When I click and hold the left mouse button outside the widget, it rotates, just like it would with JoystickCamera.&nbsp; When I move the mouse, the widget continues to rotate, but I also see the white box that RubberBandZoom creates.&nbsp; So it's like both interactors are working at the same time.&nbsp; I just need the window to use one style (the RubberBandZoom), not both.&nbsp; Thank you in advance for your help.
<br><br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; vtkRenderer* ren1 = vtkRenderer::New();<br>
<br>&nbsp;&nbsp;&nbsp; vtkRenderWindow* renWin = vtkRenderWindow::New();<br>&nbsp;&nbsp;&nbsp; renWin-&gt;AddRenderer(ren1);<br>
&nbsp; <br>&nbsp;&nbsp;&nbsp; vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::New();<br>&nbsp;&nbsp;&nbsp; iren-&gt;SetRenderWindow(renWin);<br><br>&nbsp;&nbsp;&nbsp; rbz = vtkInteractorStyleRubberBandZoom::New ();<br>&nbsp;&nbsp;&nbsp; rbz-&gt;SetInteractor (iren);<br><br>
&nbsp;&nbsp;&nbsp; vtkProperty* ipwProp = vtkProperty::New();<br><br>&nbsp;&nbsp;&nbsp; vtkImagePlaneWidget* ipw = vtkImagePlaneWidget::New();<br>&nbsp;&nbsp;&nbsp; ipw-&gt;SetInput(vtkReader-&gt;GetOutput());<br><br>&nbsp;&nbsp;&nbsp; ipw-&gt;DisplayTextOn();<br>&nbsp;&nbsp;&nbsp; ipw-&gt;SetInteractor(iren);
<br>&nbsp;&nbsp;&nbsp; ipw-&gt;SetKeyPressActivationValue('z');<br>&nbsp;&nbsp;&nbsp; ipw-&gt;SetTexturePlaneProperty(ipwProp);<br>&nbsp;&nbsp;&nbsp; ipw-&gt;TextureInterpolateOn();<br>&nbsp;&nbsp;&nbsp; ipw-&gt;SetResliceInterpolateToCubic();<br>&nbsp;&nbsp;&nbsp; ipw-&gt;SetPlaneOrientationToXAxes();
<br>&nbsp;&nbsp;&nbsp; ipw-&gt;SetSliceIndex(38);<br>&nbsp;&nbsp;&nbsp; ipw-&gt;DisplayTextOn();<br>&nbsp;&nbsp;&nbsp; ipw-&gt;On();<br><br>&nbsp;&nbsp;&nbsp; renWin-&gt;Render ();<br>&nbsp;&nbsp;&nbsp; iren-&gt;Initialize();<br>
&nbsp;&nbsp;&nbsp; iren-&gt;Start ();<br>
<br>