![]() |
VR-Forces 4.1.1 Class Documentation
|
This class will load in and return data from a movement file. More...
Public Member Functions | |
| DtMovementFile () | |
| CTOR. | |
| virtual | ~DtMovementFile () |
| DTOR. | |
| DtMovementFile (const DtMovementFile &) | |
| Copy constructor. | |
| DtMovementFile & | operator= (const DtMovementFile &) |
| Assignemtn operator. | |
| virtual double | simTime (int) const |
| Returns the simTime at the given offset, or 0 if greater than current number of rows loaded or there is no configuration. | |
| virtual int | numRows () const |
| Returns the number of rows currently read in. | |
| virtual DtVector | bodyOffsetVector (int row) const |
| Returns the body offset at the given row, or zero if the row is greater than the number of rows read or there is no configuration. | |
| virtual bool | isLoaded () const |
| Returns true if there are more than 0 rows read in. | |
| virtual bool | load (const DtFilename &file, const DtScriptedMovementFileConfiguration &configuration, int rowsToLoad=-1) |
| Loads from the specified file, given the configuration and the number of rows to load. | |
| virtual int | movementRow (double) const |
| Returns the row that matches the given sim time. If not loaded returns -1. | |
Protected Types | |
| typedef std::vector< double > | MovementRow |
| typedef std::vector< MovementRow > | MovementFileData |
Protected Attributes | |
| DtScriptedMovementFileConfiguration | myConfiguration |
| MovementFileData | myMovementFileData |
This class will load in and return data from a movement file.
|
protected |
|
protected |
| DtMovementFile::DtMovementFile | ( | ) |
CTOR.
|
virtual |
DTOR.
| DtMovementFile::DtMovementFile | ( | const DtMovementFile & | ) |
Copy constructor.
| DtMovementFile& DtMovementFile::operator= | ( | const DtMovementFile & | ) |
Assignemtn operator.
|
virtual |
Returns the simTime at the given offset, or 0 if greater than current number of rows loaded or there is no configuration.
|
virtual |
Returns the number of rows currently read in.
|
virtual |
Returns the body offset at the given row, or zero if the row is greater than the number of rows read or there is no configuration.
|
virtual |
Returns true if there are more than 0 rows read in.
|
virtual |
Loads from the specified file, given the configuration and the number of rows to load.
If -1 reads all available rows
|
virtual |
Returns the row that matches the given sim time. If not loaded returns -1.
|
protected |
|
protected |