VR-Forces 4.1.1 Class Documentation
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
DtScriptedMovementObject Class Reference

DtScriptedMovementObject class is a container that describes a scripted movement file and phases for that scripted movement. More...

Public Types

typedef std::vector
< DtScriptedMovementPhase
Phases

Public Member Functions

 DtScriptedMovementObject ()
 default constructor
virtual ~DtScriptedMovementObject ()
 destructor
 DtScriptedMovementObject (const DtScriptedMovementObject &orig)
 copy constructor
DtScriptedMovementObjectoperator= (const DtScriptedMovementObject &orig)
 assignment operator
virtual void setName (const std::string &)
 Sets the name of this scripted movement object.
virtual const std::string & name () const
virtual void setScriptedMovementFileConfiguration (const DtScriptedMovementFileConfiguration &)
 Sets the configuration of all movement files associated with phases of this class.
virtual const
DtScriptedMovementFileConfiguration
scriptedMovementFileConfiguration () const
virtual
DtScriptedMovementFileConfiguration
scriptedMovementFileConfiguration ()
virtual void addPhase (const DtScriptedMovementPhase &)
 Phase manipulation. Adds a new phase.
virtual void removePhase (int)
 Removes a phase.
virtual const Phasesphases () const
 Returns phases.
virtual DtScriptedMovementPhase phase (int) const
 Returns the phase at the specified position.
virtual void setPhases (const Phases &)
 Sets phases.
virtual bool setPhase (int p, const DtScriptedMovementPhase &phase)
 Sets the phase at the given index. If the phase does not exist will return false.
virtual bool load (const DtFilename &)
 Loads a scripted movement object file and sets the path to load all phase files from.
virtual DtFilename loadedPath () const
 Returns the path this object was loaded from.
virtual bool save (const DtFilename &)
 Saves the file to the given path.
virtual bool save ()
 Saves to the currently loaded filename. If no filename returns false.
virtual bool hasValidPhases (double simTimeDelta, const std::set< int > &phasesPerformed)
 Returns true if there are any valid phases left to perform, given a list of the phases that have already been performed.
virtual std::set< int > availablePhases (double simTimeDelta, const std::set< int > &phasesPerformed)
 Returns a list of phases that satisfy the current simTimeDelta mark.
virtual void setFilename (const DtFilename &)
 Sets the name of the file to save to.
virtual bool remove ()
 Removes the file referenced by this object from disk.

Protected Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 When the class Archive corresponds to an output archive, the & operator is defined similar to <<.

Protected Attributes

std::string myName
DtScriptedMovementFileConfiguration myMovementFileConfiguration
Phases myPhases
DtFilename myFilename

Friends

class boost::serialization::access
 Serialization/Deserialization //.

Detailed Description

DtScriptedMovementObject class is a container that describes a scripted movement file and phases for that scripted movement.

Member Typedef Documentation

Constructor & Destructor Documentation

DtScriptedMovementObject::DtScriptedMovementObject ( )

default constructor

virtual DtScriptedMovementObject::~DtScriptedMovementObject ( )
virtual

destructor

DtScriptedMovementObject::DtScriptedMovementObject ( const DtScriptedMovementObject orig)

copy constructor

Member Function Documentation

DtScriptedMovementObject& DtScriptedMovementObject::operator= ( const DtScriptedMovementObject orig)

assignment operator

virtual void DtScriptedMovementObject::setName ( const std::string &  )
virtual

Sets the name of this scripted movement object.

virtual const std::string& DtScriptedMovementObject::name ( ) const
virtual
virtual void DtScriptedMovementObject::setScriptedMovementFileConfiguration ( const DtScriptedMovementFileConfiguration )
virtual

Sets the configuration of all movement files associated with phases of this class.

virtual const DtScriptedMovementFileConfiguration& DtScriptedMovementObject::scriptedMovementFileConfiguration ( ) const
virtual
virtual DtScriptedMovementFileConfiguration& DtScriptedMovementObject::scriptedMovementFileConfiguration ( )
virtual
virtual void DtScriptedMovementObject::addPhase ( const DtScriptedMovementPhase )
virtual

Phase manipulation. Adds a new phase.

virtual void DtScriptedMovementObject::removePhase ( int  )
virtual

Removes a phase.

virtual const Phases& DtScriptedMovementObject::phases ( ) const
virtual

Returns phases.

virtual DtScriptedMovementPhase DtScriptedMovementObject::phase ( int  ) const
virtual

Returns the phase at the specified position.

virtual void DtScriptedMovementObject::setPhases ( const Phases )
virtual

Sets phases.

virtual bool DtScriptedMovementObject::setPhase ( int  p,
const DtScriptedMovementPhase phase 
)
virtual

Sets the phase at the given index. If the phase does not exist will return false.

virtual bool DtScriptedMovementObject::load ( const DtFilename &  )
virtual

Loads a scripted movement object file and sets the path to load all phase files from.

virtual DtFilename DtScriptedMovementObject::loadedPath ( ) const
virtual

Returns the path this object was loaded from.

virtual bool DtScriptedMovementObject::save ( const DtFilename &  )
virtual

Saves the file to the given path.

Will not change the loaded path if this file was previously loaded. If there is no loaded path the path is changed to the saved path

virtual bool DtScriptedMovementObject::save ( )
virtual

Saves to the currently loaded filename. If no filename returns false.

virtual bool DtScriptedMovementObject::hasValidPhases ( double  simTimeDelta,
const std::set< int > &  phasesPerformed 
)
virtual

Returns true if there are any valid phases left to perform, given a list of the phases that have already been performed.

virtual std::set<int> DtScriptedMovementObject::availablePhases ( double  simTimeDelta,
const std::set< int > &  phasesPerformed 
)
virtual

Returns a list of phases that satisfy the current simTimeDelta mark.

virtual void DtScriptedMovementObject::setFilename ( const DtFilename &  )
virtual

Sets the name of the file to save to.

virtual bool DtScriptedMovementObject::remove ( )
virtual

Removes the file referenced by this object from disk.

template<class Archive >
void DtScriptedMovementObject::serialize ( Archive &  ar,
const unsigned int  version 
)
inlineprotected

When the class Archive corresponds to an output archive, the & operator is defined similar to <<.

Likewise, when the class Archive is a type of input archive the & operator is defined similar to >>.

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Serialization/Deserialization //.

Member Data Documentation

std::string DtScriptedMovementObject::myName
protected
DtScriptedMovementFileConfiguration DtScriptedMovementObject::myMovementFileConfiguration
protected
Phases DtScriptedMovementObject::myPhases
protected
DtFilename DtScriptedMovementObject::myFilename
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)