From Romain Charbit, "added a getConnectedSelections(Dragger&) method, so we can get which selections are connected to a dragger without make our own multimap, copying the existing _draggerSelectionMap (which is protected with no accessors) ."

This commit is contained in:
Robert Osfield
2009-04-10 09:56:04 +00:00
parent 95db1ec208
commit c7b981f0d6
2 changed files with 24 additions and 0 deletions

View File

@@ -47,6 +47,9 @@ class OSGMANIPULATOR_EXPORT CommandManager : public osg::Referenced
/** Add all selections connected to the dragger to the command. */
void addSelectionsToCommand(MotionCommand& command, Dragger& dragger);
/** Returns the selections connected to the dragger */
std::list< osg::ref_ptr<Selection> > getConnectedSelections(Dragger& dragger);
protected:
virtual ~CommandManager();