Added support for handling a user define CoordinateFrame in the flight

and trackball manipulators with API access via the MatrixManipulator
base class
This commit is contained in:
Robert Osfield
2004-04-29 22:18:54 +00:00
parent 36cd372847
commit f81447e839
5 changed files with 32 additions and 15 deletions

View File

@@ -64,6 +64,8 @@ public:
// Overrides from MatrixManipulator...
/** set the coordinate frame which tells the manipulator which way is up, east and north.*/
virtual void setCoordinateFrame(const osg::CoordinateFrame& cf) { _coordinateFrame = cf; _current->setCoordinateFrame(cf); }
/** set the position of the matrix manipulator using a 4x4 Matrix.*/
virtual void setByMatrix(const osg::Matrixd& matrix) { _current->setByMatrix(matrix); }