class OSGGA_EXPORT osgGA::GUIEventHandler


Inheritance:


Public Methods

[more]virtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us) = 0
Handle events, return true if handled, false otherwise
[more]virtual const CompositeGUIEventHandler* getComposite() const
Is this const GUIEventHandler a composite?
[more]virtual CompositeGUIEventHandler* getComposite()
Is this non-const GUIEventHandler a composite?
[more]virtual void accept(GUIEventHandlerVisitor&) = 0
Accept visits from GUIEventHandler visitors


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.

ovirtual bool handle(const GUIEventAdapter& ea, GUIActionAdapter& us) = 0
Handle events, return true if handled, false otherwise

ovirtual const CompositeGUIEventHandler* getComposite() const
Is this const GUIEventHandler a composite?

ovirtual CompositeGUIEventHandler* getComposite()
Is this non-const GUIEventHandler a composite?

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


Direct child classes:
StateSetManipulator
CompositeGUIEventHandler
CameraManipulator

Alphabetic index HTML hierarchy of classes or Java



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