Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osgGA::CompositeGUIEventHandler Class Reference

CompositeGUIEventHandler allows GUIEventHandlers to be composed into hierarchies. More...

Inheritance diagram for osgGA::CompositeGUIEventHandler:

Inheritance graph
[legend]
List of all members.

Public Types

typedef std::vector< osg::ref_ptr<
GUIEventHandler > > 
ChildList

Public Methods

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

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

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

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

virtual bool addChild (GUIEventHandler *geh)
virtual bool removeChild (GUIEventHandler *geh)
const int getNumChildren () const
GUIEventHandlergetChild (int i)
const GUIEventHandlergetChild (int i) const
bool containsNode (const GUIEventHandler *node) const
ChildList::iterator findChild (const GUIEventHandler *node)

Detailed Description

CompositeGUIEventHandler allows GUIEventHandlers to be composed into hierarchies.


Member Typedef Documentation

typedef std::vector< osg::ref_ptr<GUIEventHandler> > osgGA::CompositeGUIEventHandler::ChildList
 


Member Function Documentation

virtual void osgGA::CompositeGUIEventHandler::accept GUIEventHandlerVisitor   v [inline, virtual]
 

Accept visits from GUIEventHandler visitors.

Implements osgGA::GUIEventHandler.

virtual bool osgGA::CompositeGUIEventHandler::addChild GUIEventHandler   geh [virtual]
 

bool osgGA::CompositeGUIEventHandler::containsNode const GUIEventHandler   node const [inline]
 

ChildList::iterator osgGA::CompositeGUIEventHandler::findChild const GUIEventHandler   node [inline]
 

const GUIEventHandler* osgGA::CompositeGUIEventHandler::getChild int    i const [inline]
 

GUIEventHandler* osgGA::CompositeGUIEventHandler::getChild int    i [inline]
 

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

Returns 0 if this GUIEventHandler is not a CompositeGUIEventHandler.

Reimplemented from osgGA::GUIEventHandler.

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

Returns 0 if this GUIEventHandler is not a CompositeGUIEventHandler.

Reimplemented from osgGA::GUIEventHandler.

const int osgGA::CompositeGUIEventHandler::getNumChildren   const [inline]
 

virtual bool osgGA::CompositeGUIEventHandler::handle const GUIEventAdapter   ea,
GUIActionAdapter   aa
[virtual]
 

Handle events, return true if handled, false otherwise.

Implements osgGA::GUIEventHandler.

virtual bool osgGA::CompositeGUIEventHandler::removeChild GUIEventHandler   geh [virtual]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:48 2002 for the Open Scene Graph by doxygen 1.2.16.