Moved dispatch/recieve methods into public scope to allow easier custom usage.

This commit is contained in:
Robert Osfield 2010-01-13 14:16:33 +00:00
parent ca3cfab4f3
commit c541781ca5

View File

@ -253,6 +253,12 @@ class OSGMANIPULATOR_EXPORT Dragger : public osg::MatrixTransform
/** Setup default geometry for dragger. */
virtual void setupDefaultGeometry() {}
virtual bool receive(const MotionCommand& command);
void dispatch(MotionCommand& command);
void setDraggerActive(bool active) { _draggerActive = active; }
bool getDraggerActive() const { return _draggerActive; }
protected:
Dragger();
@ -260,11 +266,6 @@ class OSGMANIPULATOR_EXPORT Dragger : public osg::MatrixTransform
virtual ~Dragger();
virtual bool receive(const MotionCommand& command);
void dispatch(MotionCommand& command);
void setDraggerActive(bool active) { _draggerActive = active; }
bool getDraggerActive() const { return _draggerActive; }
bool _handleEvents;
bool _draggerActive;