[vtkusers] vtkRenderWindowInteractor controls

Charl P. Botha c.p.botha at its.tudelft.nl
Sat Apr 5 10:56:25 EST 2003


On Sat, Apr 05, 2003 at 08:08:58AM -0700, Steven Boyd wrote:
> 1. How do I set the interactor to "ObjectMode" (i.e., so the actor
> rotates, not the camera) versus "CameraMode"?  I read that I can press
> the "o" key while interacting, but is it possible to set the default
> interaction mode to ObjectMode in the source?

One way is to create an instance of vtkInteractorStyleTrackballActor or
vtkInteractorStyleJoystickActor and assign it to the RWI with
SetInteractorStyle().

> 2. Can I restrict the mouse interaction to rotations in one plane (i.e.,
> rotation about the Z axis) rather than 3D rotations?

Hmmm, as far as I can remember, this is not implemented in the available
interactorstyles.  It shouldn't be too difficult to derive your own.

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list