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 |
Dragger * | getDragger (unsigned int i) |
const Dragger * | getDragger (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 |
typedef std::vector< osg::ref_ptr<Dragger> > osgManipulator::CompositeDragger::DraggerList |
osgManipulator::CompositeDragger::CompositeDragger | ( | ) | [inline, protected] |
virtual osgManipulator::CompositeDragger::~CompositeDragger | ( | ) | [inline, protected, virtual] |
virtual const CompositeDragger* osgManipulator::CompositeDragger::getComposite | ( | ) | const [inline, virtual] |
virtual CompositeDragger* osgManipulator::CompositeDragger::getComposite | ( | ) | [inline, virtual] |
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 | ) |