Replay animation of an Aircraft (record-mode implementation of Replay class). More...
#include <_src_control_replay_recorder.hh>
Public Member Functions | |
| ReplayRecorder (shptr< Aircraft > aircraft, const Milliseconds freq) | |
| ~ReplayRecorder () | |
| bool | Start (void) |
| void | Stop (void) |
| void | Clear (void) |
| bool | Save (const string &filename) |
| shptr< ReplayPath > | GetPath (void) |
| bool | IfHaveRecording (void) const |
Private Member Functions | |
| void | Register (void) |
| void | Unregister (void) |
Private Attributes | |
| CLASS_CONST int | INVALID_TIME = -1 |
| CLASS_TICK_FUNCTOR(ReplayRecorder, mRecorder) private const Milliseconds | mFreq |
| Timer-tick to animate replay. | |
| bool | mRegistered |
| if listeners/functors are currently registered | |
| shptr< TickFunctor > | mTickFunctor |
| pulse for play mode | |
| shptr< CommandListener > | mCommandListener |
| listens for a Command from current Craft | |
| shptr< ReplayPath > | mPath |
| replay data consists of steps in animation path | |
| Milliseconds | mStartTime |
| time when recording began | |
Replay animation of an Aircraft (record-mode implementation of Replay class).
Recording: ---------- Recording is mostly done by listening to Commands being broadcast, but supplemented by polling by a timer-tick for Commands which aren't.
| control::ReplayRecorder::ReplayRecorder | ( | shptr< Aircraft > | aircraft, | |
| const Milliseconds | freq | |||
| ) |
| control::ReplayRecorder::~ReplayRecorder | ( | ) |
| void control::ReplayRecorder::Clear | ( | void | ) |
Discard recording.
| shptr<ReplayPath> control::ReplayRecorder::GetPath | ( | void | ) | [inline] |
| bool control::ReplayRecorder::IfHaveRecording | ( | void | ) | const [inline] |
| void control::ReplayRecorder::Register | ( | void | ) | [private] |
Register listeners/functors. Either is safe to call at anytime or be unmatched.
| bool control::ReplayRecorder::Save | ( | const string & | filename | ) |
Save replay data to a file. THROWS EXCEPTION.
| bool control::ReplayRecorder::Start | ( | void | ) |
Start recording replay data.
| void control::ReplayRecorder::Stop | ( | void | ) |
Stop recording.
| void control::ReplayRecorder::Unregister | ( | void | ) | [private] |
CLASS_CONST int control::ReplayRecorder::INVALID_TIME = -1 [private] |
shptr<CommandListener> control::ReplayRecorder::mCommandListener [private] |
listens for a Command from current Craft
CLASS_TICK_FUNCTOR ( ReplayRecorder, mRecorder ) private const Milliseconds control::ReplayRecorder::mFreq [private] |
Timer-tick to animate replay.
< aircraft to replay freq of timer-tick
shptr<ReplayPath> control::ReplayRecorder::mPath [private] |
replay data consists of steps in animation path
bool control::ReplayRecorder::mRegistered [private] |
if listeners/functors are currently registered
Milliseconds control::ReplayRecorder::mStartTime [private] |
time when recording began
shptr<TickFunctor> control::ReplayRecorder::mTickFunctor [private] |
pulse for play mode
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:11