Public Member Functions | Protected Member Functions | Protected Attributes

osgManipulator::Dragger Class Reference

Base class for draggers. More...

Inheritance diagram for osgManipulator::Dragger:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void setCommandManager (CommandManager *cm)
 Set/Get the CommandManager.
CommandManager * getCommandManager ()
const CommandManager * getCommandManager () const
virtual void setParentDragger (Dragger *parent)
 Set/Get parent dragger.
Dragger * getParentDragger ()
const Dragger * getParentDragger () const
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 bool handle (const PointerInfo &, const osgGA::GUIEventAdapter &, osgGA::GUIActionAdapter &)

Protected Member Functions

 Dragger ()
virtual ~Dragger ()

Protected Attributes

CommandManager * _commandManager
Dragger * _parentDragger

Detailed Description

Base class for draggers.

Concrete draggers implement the pick event handler and generate motion commands (translate, rotate, ...) and sends these command to the CommandManager. The CommandManager dispatches the commands to all the Selections that are connected to the Dragger that generates the commands.


Constructor & Destructor Documentation

osgManipulator::Dragger::Dragger (  )  [protected]
virtual osgManipulator::Dragger::~Dragger (  )  [protected, virtual]

Member Function Documentation

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

Returns 0 if this Dragger is not a CompositeDragger.

Reimplemented in osgManipulator::CompositeDragger.

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

Returns 0 if this Dragger is not a CompositeDragger.

Reimplemented in osgManipulator::CompositeDragger.

Dragger* osgManipulator::Dragger::getParentDragger (  )  [inline]
const Dragger* osgManipulator::Dragger::getParentDragger (  )  const [inline]
virtual bool osgManipulator::Dragger::handle ( const PointerInfo &  ,
const osgGA::GUIEventAdapter &  ,
osgGA::GUIActionAdapter &   
) [inline, virtual]
virtual void osgManipulator::Dragger::setCommandManager ( CommandManager *  cm  )  [inline, virtual]

Set/Get the CommandManager.

Draggers use CommandManager to dispatch commands.

Reimplemented in osgManipulator::CompositeDragger.

virtual void osgManipulator::Dragger::setParentDragger ( Dragger *  parent  )  [inline, 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 in osgManipulator::CompositeDragger.


Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Wed Nov 3 2010 02:40:18 for the OpenSceneGraph by doxygen 1.7.1.