| | |
- EventManager
-
- ExamineManager
class ExamineManager(EventManager) |
| |
Interaction EventManager for "Examine" mode
This interaction manager implements an examine mode
similar to that found in VRML97 browsers. Pointing
to an object and dragging up/down left/right causes
the viewpoint to orbit around the object as if the
object were held in the hand and being rotated.
The manager uses the trackball thereby the dragwatcher
to provide screen-relative scaling of the input. In
other words, distances are measured as fractions of
the distance to the edge of the screen. |
| |
- OnBind(self)
- Bind the events needing binding to run the examine mode
Customisation point for those needing custom controls
- OnBuildTrackball(self, platform, center, event, width, height)
- Build the trackball object
Customisation point for those wanting to use a different
trackball implementation.
- OnUnBind(self)
- UnBind the events for the examine mode
Customisation point for those needing custom controls
- ProcessEvent(self, event)
- Respond to events from the system
Customisation point for those needing custom controls
- __init__(self, context, platform, center, event)
- _addKey(self, key, function=None) from EventManager
- cancel(self, event)
- Cancel the examine mode, return to original position and orientation
- registerCallback(self, *arguments, **namedarguments) from EventManager
- release(self, event)
- Trigger cleanup of the examine mode
- update(self, event)
- Update the examine trackball with new hit-point
| |