#include <trackmode.h>
Public Member Functions | |
void | Animate (unsigned int msec, Trackball *tb) |
void | Apply (Trackball *trackball, Point3f new_point) |
The default manipulator application for mouse drags. | |
void | Apply (Trackball *trackball, float WheelNotch) |
The default manipulator application for mouse scrolls. | |
void | FlipH () |
specific option setup methods for this mode | |
void | FlipV () |
bool | IsAnimating (const Trackball *tb) |
bool | isSticky () |
The default avaibility to manipulator changes inside an action. | |
const char * | Name () |
The default manipulator's name. | |
NavigatorWasdMode () | |
void | Reset () |
The default manipulator's reset function. | |
void | SetAction () |
The default manipulator's begin action function. | |
void | SetStepOnWalk (float width, float height) |
void | SetTopSpeedsAndAcc (float speed_h, float speed_v, float acc=0.0) |
Private Attributes | |
int | _flipH |
int | _flipV |
float | accX |
float | accY |
float | accZ |
float | alpha |
float | beta |
Point3f | current_speed |
float | dumping |
float | step_current |
float | step_height |
float | step_last |
float | step_length |
float | step_x |
float | topSpeedH |
float | topSpeedV |
Definition at line 1040 of file trackmode.h.
Definition at line 725 of file trackmode.cpp.
void NavigatorWasdMode::Animate | ( | unsigned int | msec, |
Trackball * | tb | ||
) | [virtual] |
Reimplemented from vcg::TrackMode.
Definition at line 762 of file trackmode.cpp.
void NavigatorWasdMode::Apply | ( | Trackball * | trackball, |
Point3f | new_point | ||
) | [virtual] |
The default manipulator application for mouse drags.
This default application does nothing.
trackball | the manipulator manager. |
new_point | the new mouse pointer coordinate. |
Reimplemented from vcg::TrackMode.
Definition at line 804 of file trackmode.cpp.
void NavigatorWasdMode::Apply | ( | Trackball * | trackball, |
float | WheelNotch | ||
) | [virtual] |
The default manipulator application for mouse scrolls.
This default application does nothing.
trackball | the manipulator manager. |
WheelNotch | the mouse wheel notch. |
Reimplemented from vcg::TrackMode.
Definition at line 858 of file trackmode.cpp.
void NavigatorWasdMode::FlipH | ( | ) |
specific option setup methods for this mode
Definition at line 741 of file trackmode.cpp.
void NavigatorWasdMode::FlipV | ( | ) |
Definition at line 745 of file trackmode.cpp.
bool NavigatorWasdMode::IsAnimating | ( | const Trackball * | tb | ) | [virtual] |
Reimplemented from vcg::TrackMode.
Definition at line 754 of file trackmode.cpp.
bool NavigatorWasdMode::isSticky | ( | ) | [virtual] |
The default avaibility to manipulator changes inside an action.
Every manipulator class can choose if the manipulator manager can switch between it and another manipulator in the middle of an user action, e.g. switching Trackball's current_mode without releasing the mouse button.
The default behaviour is to allow the switch.
Blocking switches is useful for stateful manipulators, regarding state consistency respect to Trackball's Undo() calls.
Reimplemented from vcg::TrackMode.
Definition at line 864 of file trackmode.cpp.
const char* vcg::NavigatorWasdMode::Name | ( | ) | [inline, virtual] |
The default manipulator's name.
Reimplemented from vcg::TrackMode.
Definition at line 1046 of file trackmode.h.
void NavigatorWasdMode::Reset | ( | ) | [virtual] |
The default manipulator's reset function.
If a manipulator has a state, it can be reset to the inital state calling this function.
Reimplemented from vcg::TrackMode.
Definition at line 732 of file trackmode.cpp.
void NavigatorWasdMode::SetAction | ( | ) | [virtual] |
The default manipulator's begin action function.
This default implementation does nothing.
Reimplemented from vcg::TrackMode.
Definition at line 750 of file trackmode.cpp.
void NavigatorWasdMode::SetStepOnWalk | ( | float | width, |
float | height | ||
) |
Definition at line 853 of file trackmode.cpp.
void NavigatorWasdMode::SetTopSpeedsAndAcc | ( | float | speed_h, |
float | speed_v, | ||
float | acc = 0.0 |
||
) |
Definition at line 835 of file trackmode.cpp.
int vcg::NavigatorWasdMode::_flipH [private] |
Definition at line 1073 of file trackmode.h.
int vcg::NavigatorWasdMode::_flipV [private] |
Definition at line 1073 of file trackmode.h.
float vcg::NavigatorWasdMode::accX [private] |
Definition at line 1075 of file trackmode.h.
float vcg::NavigatorWasdMode::accY [private] |
Definition at line 1075 of file trackmode.h.
float vcg::NavigatorWasdMode::accZ [private] |
Definition at line 1075 of file trackmode.h.
float vcg::NavigatorWasdMode::alpha [private] |
Definition at line 1069 of file trackmode.h.
float vcg::NavigatorWasdMode::beta [private] |
Definition at line 1069 of file trackmode.h.
Point3f vcg::NavigatorWasdMode::current_speed [private] |
Definition at line 1070 of file trackmode.h.
float vcg::NavigatorWasdMode::dumping [private] |
Definition at line 1075 of file trackmode.h.
float vcg::NavigatorWasdMode::step_current [private] |
Definition at line 1071 of file trackmode.h.
float vcg::NavigatorWasdMode::step_height [private] |
Definition at line 1076 of file trackmode.h.
float vcg::NavigatorWasdMode::step_last [private] |
Definition at line 1071 of file trackmode.h.
float vcg::NavigatorWasdMode::step_length [private] |
Definition at line 1076 of file trackmode.h.
float vcg::NavigatorWasdMode::step_x [private] |
Definition at line 1071 of file trackmode.h.
float vcg::NavigatorWasdMode::topSpeedH [private] |
Definition at line 1075 of file trackmode.h.
float vcg::NavigatorWasdMode::topSpeedV [private] |
Definition at line 1075 of file trackmode.h.