#include <flymotionmodel.h>

Public Member Functions | |
| FlyMotionModel (Keyboard *keyboard=NULL, Mouse *mouse=NULL, bool useSimTimeForSpeed=true, bool requireMouseDown=true, bool resetMouseCursor=false) | |
| Constructor. | |
| void | SetDefaultMappings (Keyboard *keyboard, Mouse *mouse) |
| Sets the input axes to a set of default mappings for mouse and keyboard. | |
| void | SetFlyForwardBackwardAxis (Axis *flyForwardBackwardAxis) |
| Sets the axis that moves the target forwards (for positive values) or backwards (for negative values). | |
| Axis * | GetFlyForwardBackwardAxis () |
| Returns the axis that moves the target forwards (for positive values) or backwards (for negative values). | |
| void | SetFlyLeftRightAxis (Axis *flyLeftRightAxis) |
| Sets the axis that moves the target left (for positive values) or right (for negative values). | |
| Axis * | GetFlyLeftRightAxis () |
| Returns the axis that moves the target left (for positive values) or right (for negative values). | |
| void | SetFlyUpDownAxis (Axis *flyUpDownAxis) |
| Sets the axis that moves the target target-relative up (for positive values) or target-relative down (for negative values). | |
| Axis * | GetFlyUpDownAxis () |
| Returns the axis that moves the target target-relative up (for positive values) or target-relative down (for negative values). | |
| void | SetTurnLeftRightAxis (Axis *turnLeftRightAxis) |
| Sets the axis that turns the target left (for negative values) or right (for positive values). | |
| Axis * | GetTurnLeftRightAxis () |
| Returns the axis that turns the target left (for negative values) or right (for positive values). | |
| void | SetTurnUpDownAxis (Axis *turnUpDownAxis) |
| Sets the axis that turns the target up (for positive values) or down (for negative values). | |
| Axis * | GetTurnUpDownAxis () |
| Returns the axis that turns the target up (for positive values) or down (for negative values). | |
| void | SetMaximumFlySpeed (float maximumFlySpeed) |
| Sets the maximum fly speed (meters per second). | |
| float | GetMaximumFlySpeed () |
| Returns the maximum fly speed (meters per second). | |
| void | SetMaximumTurnSpeed (float maximumTurnSpeed) |
| Sets the maximum turn speed (degrees per second). | |
| float | GetMaximumTurnSpeed () |
| Returns the maximum turn speed (degrees per second). | |
| bool | GetUseSimTimeForSpeed () |
| Gets whether we are using sim time or not (aka real time) for the speed of movement and rotation. | |
| void | SetUseSimTimeForSpeed (bool useSimTimeForSpeed) |
| Sets whether we use sim time or not (aka real time) for the speed of movement and rotation. | |
| virtual void | OnMessage (MessageData *data) |
| Message handler callback. | |
Protected Member Functions | |
| virtual | ~FlyMotionModel () |
| Destructor. | |
| FlyMotionModel::FlyMotionModel | ( | Keyboard * | keyboard = NULL, |
|
| Mouse * | mouse = NULL, |
|||
| bool | useSimTimeForSpeed = true, |
|||
| bool | requireMouseDown = true, |
|||
| bool | resetMouseCursor = false | |||
| ) |
Constructor.
| keyboard | the keyboard instance, or NULL to avoid creating default input mappings | |
| mouse | the mouse instance, or NULL to avoid creating default input mappings | |
| useSimTimeForSpeed | true if the motion model should use the simulation time, which can be scaled, for motion or false if it should use the real time. | |
| requireMouseDown | true if the mouse button must be held down for mouse motions to control the camera. (Default is true.) | |
| resetMouseCursor | true if the mouse cursor should reset to the center of the scene each frame. (Default is false.) | |
| keyboard | the keyboard instance, or 0 to avoid creating default input mappings | |
| mouse | the mouse instance, or 0 to avoid creating default input mappings | |
| useSimTimeForSpeed | true if the motion model should use the simulation time, which can be scaled, for motion or false if it should use the real time. | |
| requireMouseDown | true if the mouse button must be held down for mouse motions to control the camera. (Default is true.) | |
| resetMouseCursor | true if the mouse cursor should reset to the center of the scene each frame. (Default is false.) |
| FlyMotionModel::~FlyMotionModel | ( | ) | [protected, virtual] |
Destructor.
Sets the input axes to a set of default mappings for mouse and keyboard.
| keyboard | the keyboard instance | |
| mouse | the mouse instance |
| void FlyMotionModel::SetFlyForwardBackwardAxis | ( | Axis * | flyForwardBackwardAxis | ) |
Sets the axis that moves the target forwards (for positive values) or backwards (for negative values).
| flyForwardBackwardAxis | the new forward/backward axis |
| Axis * FlyMotionModel::GetFlyForwardBackwardAxis | ( | ) |
Returns the axis that moves the target forwards (for positive values) or backwards (for negative values).
| void FlyMotionModel::SetFlyLeftRightAxis | ( | Axis * | flyLeftRightAxis | ) |
Sets the axis that moves the target left (for positive values) or right (for negative values).
| flyLeftRightAxis | the new left/right axis |
| Axis * FlyMotionModel::GetFlyLeftRightAxis | ( | ) |
Returns the axis that moves the target left (for positive values) or right (for negative values).
| void FlyMotionModel::SetFlyUpDownAxis | ( | Axis * | flyUpDownAxis | ) |
Sets the axis that moves the target target-relative up (for positive values) or target-relative down (for negative values).
| flyUpDownAxis | the new up/down axis |
| Axis * FlyMotionModel::GetFlyUpDownAxis | ( | ) |
Returns the axis that moves the target target-relative up (for positive values) or target-relative down (for negative values).
| void FlyMotionModel::SetTurnLeftRightAxis | ( | Axis * | turnLeftRightAxis | ) |
Sets the axis that turns the target left (for negative values) or right (for positive values).
| turnLeftRightAxis | the new turn left/right axis |
| Axis * FlyMotionModel::GetTurnLeftRightAxis | ( | ) |
Returns the axis that turns the target left (for negative values) or right (for positive values).
| void FlyMotionModel::SetTurnUpDownAxis | ( | Axis * | turnUpDownAxis | ) |
Sets the axis that turns the target up (for positive values) or down (for negative values).
| turnUpDownAxis | the new turn up/down axis |
| Axis * FlyMotionModel::GetTurnUpDownAxis | ( | ) |
Returns the axis that turns the target up (for positive values) or down (for negative values).
| void FlyMotionModel::SetMaximumFlySpeed | ( | float | maximumFlySpeed | ) |
Sets the maximum fly speed (meters per second).
| maximumFlySpeed | the new maximum fly speed |
| float FlyMotionModel::GetMaximumFlySpeed | ( | ) |
Returns the maximum fly speed (meters per second).
| void FlyMotionModel::SetMaximumTurnSpeed | ( | float | maximumTurnSpeed | ) |
Sets the maximum turn speed (degrees per second).
| maximumTurnSpeed | the new maximum turn speed |
| float FlyMotionModel::GetMaximumTurnSpeed | ( | ) |
Returns the maximum turn speed (degrees per second).
| bool dtCore::FlyMotionModel::GetUseSimTimeForSpeed | ( | ) | [inline] |
Gets whether we are using sim time or not (aka real time) for the speed of movement and rotation.
| void dtCore::FlyMotionModel::SetUseSimTimeForSpeed | ( | bool | useSimTimeForSpeed | ) | [inline] |
Sets whether we use sim time or not (aka real time) for the speed of movement and rotation.
| void FlyMotionModel::OnMessage | ( | MessageData * | data | ) | [virtual] |