
Public Member Functions | |
| CommandManager () | |
| virtual bool | connect (Dragger &dragger, Selection &selection) |
| Connect a dragger to a selection. | |
| virtual bool | connect (Dragger &dragger, Constraint &constrain) |
| virtual bool | disconnect (Dragger &dragger) |
| Disconnect the selections from a dragger. | |
| virtual void | dispatch (MotionCommand &command) |
| Dispatches a command. | |
| void | addSelectionsToCommand (MotionCommand &command, Dragger &dragger) |
| Add all selections connected to the dragger to the command. | |
Protected Types | |
| typedef std::multimap < osg::ref_ptr < Dragger >, osg::ref_ptr < Selection > > | DraggerSelectionMap |
| typedef std::multimap < osg::ref_ptr < Dragger >, osg::ref_ptr < Constraint > > | DraggerConstraintMap |
Protected Member Functions | |
| virtual | ~CommandManager () |
Protected Attributes | |
| DraggerSelectionMap | _draggerSelectionMap |
| DraggerConstraintMap | _draggerConstraintMap |
typedef std::multimap< osg::ref_ptr<Dragger>, osg::ref_ptr<Selection> > osgManipulator::CommandManager::DraggerSelectionMap [protected] |
typedef std::multimap< osg::ref_ptr<Dragger>, osg::ref_ptr<Constraint> > osgManipulator::CommandManager::DraggerConstraintMap [protected] |
| osgManipulator::CommandManager::CommandManager | ( | ) |
| virtual osgManipulator::CommandManager::~CommandManager | ( | ) | [protected, virtual] |
| virtual bool osgManipulator::CommandManager::connect | ( | Dragger & | dragger, | |
| Selection & | selection | |||
| ) | [virtual] |
Connect a dragger to a selection.
The selection will begin listening to commands generated by the dragger. This can be called multiple times to connect many selections to a dragger.
| virtual bool osgManipulator::CommandManager::connect | ( | Dragger & | dragger, | |
| Constraint & | constrain | |||
| ) | [virtual] |
| virtual bool osgManipulator::CommandManager::disconnect | ( | Dragger & | dragger | ) | [virtual] |
Disconnect the selections from a dragger.
| virtual void osgManipulator::CommandManager::dispatch | ( | MotionCommand & | command | ) | [virtual] |
Dispatches a command.
Usually called from a dragger.
| void osgManipulator::CommandManager::addSelectionsToCommand | ( | MotionCommand & | command, | |
| Dragger & | dragger | |||
| ) |
Add all selections connected to the dragger to the command.