Moved dispatch/recieve methods into public scope to allow easier custom usage.
This commit is contained in:
parent
ca3cfab4f3
commit
c541781ca5
@ -253,6 +253,12 @@ class OSGMANIPULATOR_EXPORT Dragger : public osg::MatrixTransform
|
|||||||
/** Setup default geometry for dragger. */
|
/** Setup default geometry for dragger. */
|
||||||
virtual void setupDefaultGeometry() {}
|
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:
|
protected:
|
||||||
|
|
||||||
Dragger();
|
Dragger();
|
||||||
@ -260,11 +266,6 @@ class OSGMANIPULATOR_EXPORT Dragger : public osg::MatrixTransform
|
|||||||
|
|
||||||
virtual ~Dragger();
|
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 _handleEvents;
|
||||||
bool _draggerActive;
|
bool _draggerActive;
|
||||||
|
Loading…
Reference in New Issue
Block a user