Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osgGA::GUIEventHandler Class Reference

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

Inheritance diagram for osgGA::GUIEventHandler:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GUIEventHandler ()
 GUIEventHandler (const GUIEventHandler &, const osg::CopyOp &)
 META_Object (osgGA, GUIEventHandler)
virtual const CompositeGUIEventHandlergetComposite () const
 Returns 0 if this GUIEventHandler is not a CompositeGUIEventHandler.
virtual CompositeGUIEventHandlergetComposite ()
 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.

Detailed Description

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.


Constructor & Destructor Documentation

osgGA::GUIEventHandler::GUIEventHandler  )  [inline]
 

osgGA::GUIEventHandler::GUIEventHandler const GUIEventHandler ,
const osg::CopyOp
[inline]
 


Member Function Documentation

virtual void osgGA::GUIEventHandler::accept GUIEventHandlerVisitor  )  [inline, virtual]
 

Accept visits from GUIEventHandler visitors.

Reimplemented in osgGA::CompositeGUIEventHandler, osgGA::MatrixManipulator, and osgGA::StateSetManipulator.

virtual CompositeGUIEventHandler* osgGA::GUIEventHandler::getComposite  )  [inline, virtual]
 

Returns 0 if this GUIEventHandler is not a CompositeGUIEventHandler.

Reimplemented in osgGA::CompositeGUIEventHandler.

virtual const CompositeGUIEventHandler* osgGA::GUIEventHandler::getComposite  )  const [inline, virtual]
 

Returns 0 if this GUIEventHandler is not a CompositeGUIEventHandler.

Reimplemented in osgGA::CompositeGUIEventHandler.

virtual void osgGA::GUIEventHandler::getUsage osg::ApplicationUsage  )  const [inline, virtual]
 

Get the keyboard and mouse usage of this manipulator.

Reimplemented in osgGA::AnimationPathManipulator, osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::CompositeGUIEventHandler, osgGA::KeySwitchMatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::StateSetManipulator, osgGA::TerrainManipulator, osgGA::TrackballManipulator, and osgProducer::ViewerEventHandler.

virtual bool osgGA::GUIEventHandler::handle const GUIEventAdapter ,
GUIActionAdapter
[inline, virtual]
 

Handle events, return true if handled, false otherwise.

Reimplemented in osgGA::DriveManipulator, osgGA::FlightManipulator, osgGA::CompositeGUIEventHandler, osgGA::KeySwitchMatrixManipulator, osgGA::MatrixManipulator, osgGA::NodeTrackerManipulator, osgGA::StateSetManipulator, osgGA::TerrainManipulator, and osgGA::TrackballManipulator.

osgGA::GUIEventHandler::META_Object osgGA  ,
GUIEventHandler 
 


The documentation for this class was generated from the following file:
Generated at Tue Apr 5 00:56:18 2005 for the OpenSceneGraph by doxygen 1.4.1.