## class OSGGA_EXPORT osgGA::GUIEventHandler

## Inheritance:

### Public Methods

GUIEventHandler()
GUIEventHandler(const GUIEventHandler&, const osg::CopyOp&)
META_Object (osgGA, GUIEventHandler) const () const
virtual CompositeGUIEventHandler* getComposite()
  Returns 0 if this GUIEventHandler is not a CompositeGUIEventHandler.
virtual bool handle(const GUIEventAdapter&, GUIActionAdapter&)
  Handle events, return true if handled, false otherwise.
virtual void accept(GUIEventHandlerVisitor&)
  Accept visits from GUIEventHandler visitors
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.

`GUIEventHandler()`

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

`META_Object (osgGA, GUIEventHandler) const () const`

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

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

`virtual void accept(GUIEventHandlerVisitor&)`
  Accept visits from GUIEventHandler visitors

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

Direct child classes:
  StateSetManipulator
  MatrixManipulator
  CompositeGUIEventHandler

Alphabetic index HTML hierarchy of classes or Java

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