[vtkusers] Disable mouse interactions in vtkImagePlaneWidget?

Dean Inglis dean.inglis at on.aibn.com
Wed Aug 21 09:52:36 EDT 2002


Hi again,

the simplest answer is you can't do this.  Widgets, in general, maintain one
or more actor instances, one or more picker instances, and a reference to a
render window's vtkRenderWindowInteractor.  The widgets 'listen' to the
interactor's events and then respond to some of them (e.g., left mouse
click) if the widget's picker determines that one of its internal actors has
been picked.  In the case of vtkImagePlaneWidget,
zooming/rotating/translating is applied to all actors in a render window
(not just the widget) via its render window interactor: in fact, zooming and
translating are not internal capabilities of the widget.  If what you want
is to see one slice of a plane of data obtained through the
vtkImagePlaneWidget, have a look at the code in
/Hybrid/Testing/Cxx/ImagePlaneWidget.cxx: you can turn off the xy-plane
widget (planeWidgetZ) and the output form the widget's internal
vtkImageReslice remains in the second renderer.

Dean







More information about the vtkusers mailing list