Changeset 10406
- Timestamp:
- 06/25/09 11:14:47 (4 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 2 modified
-
include/osgGA/SphericalManipulator (modified) (2 diffs)
-
src/osgGA/SphericalManipulator.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgGA/SphericalManipulator
r10254 r10406 110 110 void setRotationMode(RotationMode mode); 111 111 112 /** Returns true if the camera can be thrown, false otherwise. This defaults to true. */ 113 bool getAllowThrow() const { return _allowThrow; } 114 /** Set the 'allow throw' flag. Releasing the mouse button while moving the camera results in a throw. */ 115 void setAllowThrow(bool allowThrow) { _allowThrow = allowThrow; } 116 112 117 protected: 113 118 … … 137 142 138 143 bool _thrown; 144 bool _allowThrow; 139 145 140 146 RotationMode _rotationMode; -
OpenSceneGraph/trunk/src/osgGA/SphericalManipulator.cpp
r10286 r10406 14 14 _minimumZoomScale = 0.1; 15 15 _thrown = false; 16 _allowThrow = true; 16 17 17 18 _distance=1.0; … … 150 151 us.requestRedraw(); 151 152 us.requestContinuousUpdate(true); 152 _thrown = true;153 _thrown = _allowThrow; 153 154 } 154 155 }
