Keyboard-controlled manipulator (OSG specific). More...
#include <_src_view_manipulator_keyboard.hh>
Public Member Functions | |
| KeyboardManipulator (void) | |
| virtual | ~KeyboardManipulator () |
| virtual void | home (double currentTime) |
| virtual void | home (const osgGA::GUIEventAdapter &event, osgGA::GUIActionAdapter &action) |
| virtual bool | handle (const osgGA::GUIEventAdapter &event, osgGA::GUIActionAdapter &action) |
| virtual void | setByMatrix (const osg::Matrixd &matrix) |
| virtual osg::Matrixd | getMatrix (void) const |
| virtual void | setByInverseMatrix (const osg::Matrixd &matrix) |
| virtual osg::Matrixd | getInverseMatrix (void) const |
Private Member Functions | |
| void | RestoreMatrix (const Matrix &srcMatrix) |
| void | MoveLeftRightOrYaw (const int sign, const bool modifier) |
| void | MoveForwardBackwardOrPitch (const int sign, const bool modifier) |
| void | MoveUpDown (const int sign) |
Private Attributes | |
| Matrix | mMatrix |
| view-matrix | |
| Matrix | mMatrixDefault |
| view-matrix | |
| Matrix | mMatrixSaved |
| saved view-matrix | |
| const Radian | mYawRad |
| rotation | |
| const Radian | mPitchRad |
| rotation | |
| const fp | mStep |
| translation | |
Keyboard-controlled manipulator (OSG specific).
Manipulates viewpoint using keyboard. Cursor/PageUp/Down : move viewpoint Shift-Cursor : rotation viewpoint
| view::KeyboardManipulator::KeyboardManipulator | ( | void | ) |
ctor/dtor.
| view::KeyboardManipulator::~KeyboardManipulator | ( | ) | [virtual] |
| osg::Matrixd view::KeyboardManipulator::getInverseMatrix | ( | void | ) | const [virtual] |
Get manipulator's viewpoint (inverted).
Implements view::Manipulator.
| osg::Matrixd view::KeyboardManipulator::getMatrix | ( | void | ) | const [virtual] |
Get manipulator's viewpoint.
Implements view::Manipulator.
| bool view::KeyboardManipulator::handle | ( | const osgGA::GUIEventAdapter & | event, | |
| osgGA::GUIActionAdapter & | action | |||
| ) | [virtual] |
Handle keyboard events.
Reimplemented from view::Manipulator.
| void view::KeyboardManipulator::home | ( | const osgGA::GUIEventAdapter & | event, | |
| osgGA::GUIActionAdapter & | action | |||
| ) | [virtual] |
Reimplemented from view::Manipulator.
| void view::KeyboardManipulator::home | ( | double | currentTime | ) | [virtual] |
Restore the viewpoint.
Reimplemented from view::Manipulator.
| void view::KeyboardManipulator::MoveForwardBackwardOrPitch | ( | const int | sign, | |
| const bool | modifier | |||
| ) | [private] |
Move forward/backward or pitch.
| void view::KeyboardManipulator::MoveLeftRightOrYaw | ( | const int | sign, | |
| const bool | modifier | |||
| ) | [private] |
Move left/right or yaw.
| void view::KeyboardManipulator::MoveUpDown | ( | const int | sign | ) | [private] |
Move up/down.
| void view::KeyboardManipulator::RestoreMatrix | ( | const Matrix & | srcMatrix | ) | [private] |
Restore matrix from a saved copy.
| void view::KeyboardManipulator::setByInverseMatrix | ( | const osg::Matrixd & | inverseMatrix | ) | [virtual] |
Set manipulator's viewpoint (inverted).
Implements view::Manipulator.
| void view::KeyboardManipulator::setByMatrix | ( | const osg::Matrixd & | matrix | ) | [virtual] |
Set manipulator's viewpoint.
Implements view::Manipulator.
Matrix view::KeyboardManipulator::mMatrix [private] |
view-matrix
view-matrix
saved view-matrix
const Radian view::KeyboardManipulator::mPitchRad [private] |
rotation
const fp view::KeyboardManipulator::mStep [private] |
translation
const Radian view::KeyboardManipulator::mYawRad [private] |
rotation
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:12