osgManipulator::CompositeDragger Class Reference

CompositeDragger allows to create complex draggers that are composed of a hierarchy of Draggers. More...

Inheritance diagram for osgManipulator::CompositeDragger:

Inheritance graph
[legend]

List of all members.

Public Types

typedef std::vector
< osg::ref_ptr
< Dragger > > 
DraggerList

Public Member Functions

virtual const
CompositeDragger
getComposite () const
 Returns 0 if this Dragger is not a CompositeDragger.
virtual
CompositeDragger
getComposite ()
 Returns 0 if this Dragger is not a CompositeDragger.
virtual void setCommandManager (CommandManager *cm)
 Set/Get the CommandManager.
virtual void setParentDragger (Dragger *parent)
 Set/Get parent dragger.
virtual bool handle (const PointerInfo &pi, const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
virtual bool addDragger (Dragger *dragger)
virtual bool removeDragger (Dragger *dragger)
unsigned int getNumDraggers () const
DraggergetDragger (unsigned int i)
const DraggergetDragger (unsigned int i) const
bool containsDragger (const Dragger *dragger) const
DraggerList::iterator findDragger (const Dragger *dragger)

Protected Member Functions

 CompositeDragger ()
virtual ~CompositeDragger ()

Protected Attributes

DraggerList _draggerList


Detailed Description

CompositeDragger allows to create complex draggers that are composed of a hierarchy of Draggers.

Member Typedef Documentation

typedef std::vector< osg::ref_ptr<Dragger> > osgManipulator::CompositeDragger::DraggerList


Constructor & Destructor Documentation

osgManipulator::CompositeDragger::CompositeDragger (  )  [inline, protected]

virtual osgManipulator::CompositeDragger::~CompositeDragger (  )  [inline, protected, virtual]


Member Function Documentation

virtual const CompositeDragger* osgManipulator::CompositeDragger::getComposite (  )  const [inline, virtual]

Returns 0 if this Dragger is not a CompositeDragger.

Reimplemented from osgManipulator::Dragger.

virtual CompositeDragger* osgManipulator::CompositeDragger::getComposite (  )  [inline, virtual]

Returns 0 if this Dragger is not a CompositeDragger.

Reimplemented from osgManipulator::Dragger.

virtual void osgManipulator::CompositeDragger::setCommandManager ( CommandManager cm  )  [virtual]

Set/Get the CommandManager.

Draggers use CommandManager to dispatch commands.

Reimplemented from osgManipulator::Dragger.

virtual void osgManipulator::CompositeDragger::setParentDragger ( Dragger parent  )  [virtual]

Set/Get parent dragger.

For simple draggers parent points to itself. For composite draggers parent points to the parent dragger that uses this dragger.

Reimplemented from osgManipulator::Dragger.

virtual bool osgManipulator::CompositeDragger::handle ( const PointerInfo pi,
const osgGA::GUIEventAdapter ea,
osgGA::GUIActionAdapter aa 
) [virtual]

Reimplemented from osgManipulator::Dragger.

Reimplemented in osgManipulator::TabPlaneDragger, and osgManipulator::TranslatePlaneDragger.

virtual bool osgManipulator::CompositeDragger::addDragger ( Dragger dragger  )  [virtual]

virtual bool osgManipulator::CompositeDragger::removeDragger ( Dragger dragger  )  [virtual]

unsigned int osgManipulator::CompositeDragger::getNumDraggers (  )  const [inline]

Dragger* osgManipulator::CompositeDragger::getDragger ( unsigned int  i  )  [inline]

const Dragger* osgManipulator::CompositeDragger::getDragger ( unsigned int  i  )  const [inline]

bool osgManipulator::CompositeDragger::containsDragger ( const Dragger dragger  )  const

DraggerList::iterator osgManipulator::CompositeDragger::findDragger ( const Dragger dragger  ) 


Member Data Documentation

DraggerList osgManipulator::CompositeDragger::_draggerList [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:40 2007 for the OpenSceneGraph by doxygen 1.5.3.