[vtkusers] how to disable mouse interactions without disabling rendering

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Mar 7 09:49:42 EST 2005


kshivann at engineering.uiowa.edu wrote:
> hi all,
>     i need to disable the mouse interactions without disabling the renderer. 
> right now after i disable the vtkrenderwindowinteractor the rendering 
> capability is also disabled which i need to avoid.
> any help is greatly appreciated.

You can call RemoveObservers on any type of Events in VTK. Remove any 
Event you don't want.

More information:

http://www.vtk.org/doc/nightly/html/classvtkCommand.html
http://www.vtk.org/doc/nightly/html/classvtkRenderWindowInteractor.html
and
http://www.vtk.org/doc/nightly/html/classvtkInteractorStyle.html

(they list all events in the 'Events' section)

HTH
Mathieu



More information about the vtkusers mailing list