class OSGGA_EXPORT osgGA::GUIEventHandler


Inheritance:


Public Methods

[more] GUIEventHandler()
[more] GUIEventHandler(const GUIEventHandler&, const osg::CopyOp&)
[more]META_Object (osgGA, GUIEventHandler) const () const
[more]virtual CompositeGUIEventHandler* getComposite()
Returns 0 if this GUIEventHandler is not a CompositeGUIEventHandler.
[more]virtual bool handle(const GUIEventAdapter&, GUIActionAdapter&)
Handle events, return true if handled, false otherwise.
[more]virtual void accept(GUIEventHandlerVisitor&)
Accept visits from GUIEventHandler visitors
[more]virtual void getUsage(osg::ApplicationUsage&) const
Get the keyboard and mouse usage of this manipulator


Documentation

GUIEventHandler provides a basic interface for any class which wants to handle a GUI Events.

The GUIEvent is supplied by a GUIEventAdapter. Feedback resulting from the handle method is supplied by a GUIActionAdapter, which allows the GUIEventHandler to ask the GUI to take some action in response to an incoming event.

For example, consider a Trackball Viewer class which takes mouse events and manipulates a scene camera in response. The Trackball Viewer is a GUIEventHandler, and receives the events via the handle method. If the user 'throws' the model, the Trackball Viewer class can detect this via the incoming events, and request that the GUI set up a timer callback to continually redraw the view. This request is made via the GUIActionAdapter class.

o GUIEventHandler()

o GUIEventHandler(const GUIEventHandler&, const osg::CopyOp&)

oMETA_Object (osgGA, GUIEventHandler) const () const

ovirtual CompositeGUIEventHandler* getComposite()
Returns 0 if this GUIEventHandler is not a CompositeGUIEventHandler.

ovirtual bool handle(const GUIEventAdapter&, GUIActionAdapter&)
Handle events, return true if handled, false otherwise.

ovirtual void accept(GUIEventHandlerVisitor&)
Accept visits from GUIEventHandler visitors

ovirtual void getUsage(osg::ApplicationUsage&) const
Get the keyboard and mouse usage of this manipulator


Direct child classes:
StateSetManipulator
CompositeGUIEventHandler
CameraManipulator

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.