FreeMat: vtkInteractorStyleTrackballActor

FreeMat

- Main Page
- Related Pages

vtkInteractorStyleTrackballActor

Section: Visualization Toolkit Rendering Classes

# Usage

vtkInteractorStyleTrackballActor allows the user to interact with (rotate, pan, etc.) objects in the scene indendent of each other. In trackball interaction, the magnitude of the mouse motion is proportional to the actor motion associated with a particular mouse binding. For example, small left-button motions cause small changes in the rotation of the actor around its center point.

The mouse bindings are as follows. For a 3-button mouse, the left button is for rotation, the right button for zooming, the middle button for panning, and ctrl + left button for spinning. (With fewer mouse buttons, ctrl + shift + left button is for zooming, and shift + left button is for panning.)

To create an instance of class vtkInteractorStyleTrackballActor, simply invoke its constructor as follows

      obj = vtkInteractorStyleTrackballActor

# Methods

The class vtkInteractorStyleTrackballActor has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, `obj` is an instance of the vtkInteractorStyleTrackballActor class.

- `string = obj.GetClassName ()`
- `int = obj.IsA (string name)`
- `vtkInteractorStyleTrackballActor = obj.NewInstance ()`
- `vtkInteractorStyleTrackballActor = obj.SafeDownCast (vtkObject o)`
- `obj.OnMouseMove ()` - Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
- `obj.OnLeftButtonDown ()` - Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
- `obj.OnLeftButtonUp ()` - Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
- `obj.OnMiddleButtonDown ()` - Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
- `obj.OnMiddleButtonUp ()` - Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
- `obj.OnRightButtonDown ()` - Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
- `obj.OnRightButtonUp ()` - Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
- `obj.Rotate ()`
- `obj.Spin ()`
- `obj.Pan ()`
- `obj.Dolly ()`
- `obj.UniformScale ()`