|
Public Types |
| enum | Mode { TRACKBALL = 0,
FLY,
WALK
} |
| enum | State {
IDLE = 0,
ROTATING,
TRANSLATING_XY,
TRANSLATING_Z,
TRANSLATING_ZPLUS = 10,
TRANSLATING_ZMINUS
} |
| enum | MouseButton {
LEFT_MOUSE = 0,
MIDDLE_MOUSE,
RIGHT_MOUSE,
UP_MOUSE,
DOWN_MOUSE
} |
| enum | Key { LEFT = 0,
RIGHT,
FORWARDS,
BACKWARDS
} |
Public Methods |
|
| | Navigator () |
|
| | ~Navigator () |
|
| void | buttonPress (Int16 button, Int16 x, Int16 y) |
| void | buttonRelease (Int16 button, Int16 x, Int16 y) |
| void | keyPress (Int16 key, Int16 x, Int16 y) |
| void | moveTo (Int16 x, Int16 y) |
| void | updateCameraTransformation () |
|
| void | setMode (Mode new_mode) |
| void | setViewport (ViewportPtr new_viewport) |
| void | setMotionFactor (Real32 new_factor) |
| void | setFrom (Pnt3f new_from) |
| void | setAt (Pnt3f new_at) |
| void | setDistance (Real32 new_distance) |
| void | setUp (Vec3f new_up) |
| void | set (Pnt3f new_from, Pnt3f new_at, Vec3f new_up) |
| void | set (const Matrix &new_matrix) |
| bool | setClickCenter (bool state) |
| void | setCameraTransformation (const NodePtr &new_cartn) |
|
| const Matrix & | getMatrix () |
| const Pnt3f & | getFrom () |
| const Pnt3f & | getAt () |
| const Vec3f & | getUp () |
| State | getState () |
| Mode | getMode () |
| WalkNavigator * | getWalkNavigator () |
Private Methods |
| void | getIntersectionPoint (Int16 x, Int16 y) |
| void | calcDeltas (Int16 fromX, Int16 fromY, Int16 toX, Int16 toY, Real32 &distanceX, Real32 &distanceY) |
Private Attributes |
|
| TrackballNavigator | _trackball |
| FlyNavigator | _flyer |
| WalkNavigator | _walker |
| Real32 | _rMotionFactor |
| State | _currentState |
| Mode | _currentMode |
| ViewportPtr | _vp |
| NodePtr | _cartN |
| bool | _moved |
| bool | _clickCenter |
| Real32 | _lastX |
| Real32 | _lastY |
| Pnt3f | _ip |
| Vec3f | _dir |
| Matrix | theMatrix |