
You can set which combinations of mouse buttons and modifier keys will rotate, zoom and translate the target. The default is:
Public Member Functions | |
| void | SetRadius (float fRadius) |
| float | GetRadius () const |
| void | SetRotateButton (int button, int modifier=0, bool bExact=true) |
| void | SetZoomButton (int button, int modifier=0, bool bExact=true) |
| void | SetTranslateButton (int button, int modifier=0, bool bExact=true) |
| void | SetZoomScale (float s) |
| void | SetRotScale (float s) |
| void | SetTransScale (float s) |
| void | SetDirection (float fTheta, float fPhi) |
| void | MoveDirection (float fTheta, float fPhi) |
| void | OnMouse (vtMouseEvent &event) |
| Virtual handler, to catch mouse events, can be overridden by your engine class. | |
| void | Eval () |
|
|
Virtual handler, will be called every frame to do the work of the engine. You must override this if you want your engine to be useful. Reimplemented from vtEngine. |
|
|
Get the radius, the distance from the pivot point that the Trackball rotates around. |
|
||||||||||||
|
Shift the direction the trackball is facing, by a given offset.
|
|
||||||||||||
|
Set the direction the trackball is facing.
|
|
|
Set the radius, the distance from the pivot point that the Trackball rotates around. |
|
||||||||||||||||
|
Set the buttons and modifier keys that will cause the Trackball to rotate.
|
|
|
Set the scale factor for rotation, which controls how fast the Trackball will spin its target. |
|
||||||||||||||||
|
Set the buttons and modifier keys that will cause the Trackball to translate.
|
|
|
Set the scale factor for translation, which controls how fast the Trackball will translate its target. |
|
||||||||||||||||
|
Set the buttons and modifier keys that will cause the Trackball to zoom.
|
|
|
Set the scale factor for zoom, which controls how fast the Trackball will zoom in/out. |
1.4.5