Changeset 13041 for OpenSceneGraph/trunk/include/osgManipulator/Command
 Timestamp:
 03/21/12 18:36:20 (2 years ago)
 Files:

 1 modified
Legend:
 Unmodified
 Added
 Removed

OpenSceneGraph/trunk/include/osgManipulator/Command
r12930 r13041 41 41 NONE, 42 42 /** Click or pick start. */ 43 START, 43 START, 44 44 /** Drag or pick move. */ 45 45 MOVE, … … 55 55 /** 56 56 * Gets the matrix for transforming the object being dragged. This matrix is in the 57 * command's coordinate systems. 57 * command's coordinate systems. 58 58 */ 59 59 virtual osg::Matrix getMotionMatrix() const = 0; … … 80 80 /** 81 81 * Gets the matrix for transforming the command's world/object 82 * coordinate system to the command's local coordinate system. 82 * coordinate system to the command's local coordinate system. 83 83 */ 84 84 inline const osg::Matrix& getWorldToLocal() const { return _worldToLocal; } … … 90 90 91 91 virtual ~MotionCommand(); 92 92 93 93 private: 94 94 osg::Matrix _localToWorld; … … 122 122 inline const osg::Vec3d& getTranslation() const { return _translation; } 123 123 124 virtual osg::Matrix getMotionMatrix() const 124 virtual osg::Matrix getMotionMatrix() const 125 125 { 126 126 return osg::Matrix::translate(_translation); … … 162 162 inline const osg::Vec3d& getReferencePoint() const { return _referencePoint; } 163 163 164 virtual osg::Matrix getMotionMatrix() const 164 virtual osg::Matrix getMotionMatrix() const 165 165 { 166 166 return osg::Matrix::translate(_translation); … … 204 204 inline double getMinScale() const { return _minScale; } 205 205 206 virtual osg::Matrix getMotionMatrix() const 206 virtual osg::Matrix getMotionMatrix() const 207 207 { 208 208 return (osg::Matrix::translate(_scaleCenter,0.0,0.0) … … 249 249 inline const osg::Vec2d& getMinScale() const { return _minScale; } 250 250 251 virtual osg::Matrix getMotionMatrix() const 251 virtual osg::Matrix getMotionMatrix() const 252 252 { 253 253 return (osg::Matrix::translate(_scaleCenter[0],0.0,_scaleCenter[1]) … … 287 287 inline const osg::Vec3d& getScaleCenter() const { return _scaleCenter; } 288 288 289 virtual osg::Matrix getMotionMatrix() const 290 { 291 return (osg::Matrix::translate(_scaleCenter) 289 virtual osg::Matrix getMotionMatrix() const 290 { 291 return (osg::Matrix::translate(_scaleCenter) 292 292 * osg::Matrix::scale(_scale,_scale,_scale) 293 293 * osg::Matrix::translate(_scaleCenter)); … … 320 320 inline const osg::Quat& getRotation() const { return _rotation; } 321 321 322 virtual osg::Matrix getMotionMatrix() const 322 virtual osg::Matrix getMotionMatrix() const 323 323 { 324 324 return osg::Matrix::rotate(_rotation);