Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends

control::ReplayPath Class Reference

Replay data (animation path). More...

#include <_src_control_replay_path.hh>

List of all members.

Classes

class  Cursor
 Cursor tracks a locus of steps in the animation path for interpolation. More...
struct  Step
 A step in the animation path (Craft command with time-stamp). More...

Public Types

typedef std::list< StepPath

Public Member Functions

 ReplayPath (void)
 ~ReplayPath ()
bool IfEmpty (void) const
void Clear (void)
void Rewind (void)
void Append (const Step &step)
CursorGetCursor (void)
Path::iterator begin (void)
Path::iterator end (void)
bool empty (void) const
void clear (void)
void push_back (const Step &step)
uint size (void) const
CLASS_METHOD string GetPathnameForLoading (const string &filename)
CLASS_METHOD string GetPathnameForSaving (const string &filename)

Private Member Functions

bool IfSameAsPrevCommand (Command &command)

Private Attributes

Path mPath
 replay data consists of steps in animation path
Cursor mCursor
 defines current set of steps in animation path

Friends

struct Step
std::ostream & operator<< (std::ostream &strm, const Step &step)
std::istream & operator>> (std::istream &strm, Step &step)

Detailed Description

Replay data (animation path).

ReplayPath is responsible for discarding redundant consecutive Commands.


Member Typedef Documentation

typedef std::list<Step> control::ReplayPath::Path

Constructor & Destructor Documentation

control::ReplayPath::ReplayPath ( void   ) 

ctor/dtor.

control::ReplayPath::~ReplayPath (  ) 

Member Function Documentation

void control::ReplayPath::Append ( const Step step  ) 

Append step to animation path. To save space, this won't consecutively repeat the same kinds of Command.

Path::iterator control::ReplayPath::begin ( void   )  [inline]
void control::ReplayPath::Clear ( void   ) 

Clear data.

void control::ReplayPath::clear ( void   )  [inline]
bool control::ReplayPath::empty ( void   )  const [inline]
Path::iterator control::ReplayPath::end ( void   )  [inline]
Cursor& control::ReplayPath::GetCursor ( void   )  [inline]
string control::ReplayPath::GetPathnameForLoading ( const string &  filename  ) 
Returns:
Full pathname to file containing replay data. Data files are stored in the configuration directory.
string control::ReplayPath::GetPathnameForSaving ( const string &  filename  ) 
bool control::ReplayPath::IfEmpty ( void   )  const [inline]
bool control::ReplayPath::IfSameAsPrevCommand ( Command command  )  [private]
Returns:
True if this Command is the same as the previous. Used to save memory by not storing the same consecutive Commands.
void control::ReplayPath::push_back ( const Step step  )  [inline]
void control::ReplayPath::Rewind ( void   ) 

Rewind to beginning.

uint control::ReplayPath::size ( void   )  const [inline]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  strm,
const Step step 
) [friend]

Write replay Step to stream.

std::istream& operator>> ( std::istream &  strm,
Step step 
) [friend]

Read replay Replay::Step from stream.

friend struct Step [friend]

Member Data Documentation

defines current set of steps in animation path

replay data consists of steps in animation path


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:11