Replay animation of an Aircraft (play mode implementation of Replay class). More...
#include <_src_control_replay_player.hh>
Public Member Functions | |
| ReplayPlayer (shptr< Aircraft > aircraft, const Milliseconds freq, const Command::ExecuteMode commandExecuteMode) | |
| ~ReplayPlayer () | |
| bool | Start (void) |
| void | Stop (void) |
| bool | IfPlaying (void) |
| bool | Load (const string &filename) |
| void | UseRecording (shptr< ReplayRecorder > recorder) |
Private Member Functions | |
| void | Register (void) |
| void | Unregister (void) |
| void | Tick (const Milliseconds elapsedTime) |
| void | TryInterpolatingPositions (void) |
| void | TryInterpolatingQuaternions (void) |
| fp | ComputeInterpolationFraction (const ReplayPath::Step &prevStep, const ReplayPath::Step &nextStep) |
| void | DisableJoystickIfPlayer (void) |
| void | RestoreJoystickIfPlayer (void) |
Private Attributes | |
| CLASS_CONST Milliseconds::Int | INVALID_TIME = -1 |
| CLASS_TICK_FUNCTOR(ReplayPlayer, mPlayer) private const Milliseconds | mFreq |
| Timer-tick to animate replay. | |
| const Command::ExecuteMode | mCommandExecuteMode |
| graphical or physical replay | |
| bool | mRegistered |
| if listeners/functors are currently registered | |
| shptr< TickFunctor > | mTickFunctor |
| pulse for play mode | |
| shptr< ReplayPath > | mPath |
| replay data consists of steps in animation path | |
| Milliseconds | mStartTime |
| time when playing began | |
| bool | mPlaying |
| bool | mJoystickEnabled |
| joystick might be disabled during replay | |
Replay animation of an Aircraft (play mode implementation of Replay class).
| control::ReplayPlayer::ReplayPlayer | ( | shptr< Aircraft > | aircraft, | |
| const Milliseconds | freq, | |||
| const Command::ExecuteMode | commandExecuteMode | |||
| ) |
| control::ReplayPlayer::~ReplayPlayer | ( | ) |
| fp control::ReplayPlayer::ComputeInterpolationFraction | ( | const ReplayPath::Step & | prevStep, | |
| const ReplayPath::Step & | nextStep | |||
| ) | [private] |
Compute fraction to be passed to a math::Interpolate() function.
| void control::ReplayPlayer::DisableJoystickIfPlayer | ( | void | ) | [private] |
If Replay is controlling the player, disable joystick input to prevent interference.
| bool control::ReplayPlayer::IfPlaying | ( | void | ) |
| bool control::ReplayPlayer::Load | ( | const string & | filename | ) |
Load replay data from a file. THROWS EXCEPTION.
| void control::ReplayPlayer::Register | ( | void | ) | [private] |
Register listeners/functors. Either is safe to call at anytime or be unmatched.
| void control::ReplayPlayer::RestoreJoystickIfPlayer | ( | void | ) | [private] |
| bool control::ReplayPlayer::Start | ( | void | ) |
Start replaying.
| void control::ReplayPlayer::Stop | ( | void | ) |
Stop playing.
| void control::ReplayPlayer::Tick | ( | const Milliseconds | elapsedTime | ) | [private] |
| void control::ReplayPlayer::TryInterpolatingPositions | ( | void | ) | [private] |
Interpolate between two positions.
| void control::ReplayPlayer::TryInterpolatingQuaternions | ( | void | ) | [private] |
Interpolate between two rotations.
| void control::ReplayPlayer::Unregister | ( | void | ) | [private] |
| void control::ReplayPlayer::UseRecording | ( | shptr< ReplayRecorder > | recorder | ) |
CLASS_CONST Milliseconds::Int control::ReplayPlayer::INVALID_TIME = -1 [private] |
const Command::ExecuteMode control::ReplayPlayer::mCommandExecuteMode [private] |
graphical or physical replay
CLASS_TICK_FUNCTOR ( ReplayPlayer, mPlayer ) private const Milliseconds control::ReplayPlayer::mFreq [private] |
Timer-tick to animate replay.
< Aircraft to replay freq of timer-tick
bool control::ReplayPlayer::mJoystickEnabled [private] |
joystick might be disabled during replay
shptr<ReplayPath> control::ReplayPlayer::mPath [private] |
replay data consists of steps in animation path
bool control::ReplayPlayer::mPlaying [private] |
bool control::ReplayPlayer::mRegistered [private] |
if listeners/functors are currently registered
Milliseconds control::ReplayPlayer::mStartTime [private] |
time when playing began
shptr<TickFunctor> control::ReplayPlayer::mTickFunctor [private] |
pulse for play mode
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:11