OpenGLContext.move.examinemanager
index
/home/mcfletch/pylive/OpenGLContext/move/examinemanager.py

Interaction mode for examining objects

 
Modules
       
OpenGLContext.events.eventmanager

 
Classes
       
EventManager(object)
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.
 
 
Method resolution order:
ExamineManager
EventManager
object

Methods defined here:
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)
Initialise the ExamineManager
 
context -- Context instance
platform -- ViewPlatform instance
center -- object-space coordinates about which to revolve
event -- event which began the examine interaction.
cancel(self, event)
Cancel the examine mode, return to original position and orientation
release(self, event)
Trigger cleanup of the examine mode
update(self, event)
Update the examine trackball with new mouse event
 
This updates the internal position, then triggers a
redraw of the context.

Data and other attributes defined here:
type = 'examine'

Class methods inherited from EventManager:
registerCallback(cls, key, function=None, node=None, capture=0) from type
Register callback function for the given key (possibly node-specific)
 
key -- as returned by event.getKey()
function -- callable function taking at least an
    event object as it's first parameter, or None
node -- the node to be watched, None to register a
    context-level callback ( default )
capture -- if true, capture events before passing to
    children, rather than processing during the
    bubbling phase.  (default false)
 
Note: this method would normally be called by a sub-
    class with the calculated key for the sub-class.
 
return previous callback function or None

Data descriptors inherited from EventManager:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __file__ = '/home/mcfletch/pylive/OpenGLContext/move/examinemanager.pyc'
__name__ = 'OpenGLContext.move.examinemanager'
__package__ = 'OpenGLContext.move'