- Timestamp:
- 01/05/10 12:09:18 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgGA/KeySwitchMatrixManipulator.cpp
r7064 r10913 57 57 } 58 58 59 /** Set the distance parameter (used by TrackballManipulator etc.) */ 60 void KeySwitchMatrixManipulator::setDistance(double distance) 61 { 62 for(KeyManipMap::iterator itr=_manips.begin(); 63 itr!=_manips.end(); 64 ++itr) 65 { 66 itr->second.second->setDistance(distance); 67 } 68 } 69 70 double KeySwitchMatrixManipulator::getDistance() const 71 { 72 if(!_current) 73 { 74 return _current->getDistance(); 75 } 76 else return 1.0; 77 } 78 59 79 void KeySwitchMatrixManipulator::setNode(osg::Node* node) 60 80 {
