Public Member Functions |
| | DtScriptedMovementFileConfiguration () |
| | CTOR.
|
| virtual | ~DtScriptedMovementFileConfiguration () |
| | DTOR.
|
| | DtScriptedMovementFileConfiguration (const DtScriptedMovementFileConfiguration &) |
| | Copy constructor.
|
| DtScriptedMovementFileConfiguration & | operator= (const DtScriptedMovementFileConfiguration &) |
| | Assignment operator.
|
| virtual void | addColumn (const std::string &type, const std::string &units, int columnInFile=-1) |
| | adds a new column into the configuration.
|
| virtual void | removeColumn (int) |
| | Removes a column at the given index.
|
| virtual const Columns & | columns () const |
| | Columsn accessor.
|
| virtual void | setColumns (const Columns &) |
| virtual void | setRowStart (int) |
| | Sets the first row to start reading from, assuming possible header rows.
|
| virtual int | rowStart () const |
| virtual int | timeColumn () const |
| | Column that represents time. -1 if no column exists.
|
| virtual int | altitudeColumn () const |
| | Returns the altitude column. -1 if no column exits.
|
| virtual DistanceConversion | altitudeUnits () const |
| virtual int | rangeColumn () const |
| | Returns the range column. -1 if no column exits.
|
| virtual DistanceConversion | rangeUnits () const |
| virtual int | lateralDistanceColumn () const |
| | Returns the lateral distance column. -1 if no column exits.
|
| virtual DistanceConversion | lateralDistanceUnits () const |
| virtual double | convertTimeToSeconds (double time) const |
| | Converts supplied time value to seconds (given a time column, else simply returns value)
|
| virtual void | updateCache () |
| | Updates the cache values.
|
| virtual TimeConversion | mapTimeToInternalValue (const std::string &) const |
| virtual DistanceConversion | mapDistanceToInternalValue (const std::string &) const |
| virtual double | convertDistanceToMeters (double d, DistanceConversion conv) const |
| | Converts distance units to meters given native format.
|
| virtual DtString | toString () const |
| | Convert to a simple comma delimited string.
|
| virtual void | fromString (const DtString &) |
| | Convert back from comma delimeted string.
|
| virtual bool | setColumn (int col, const std::string &type, const std::string &unit, int columnInFile=-1) |
| | Sets the information for the particular column.
|
| virtual void | column (int col, int &columnInFile, std::string &type, std::string &unit) const |
| | Retrieves information about the column.
|
The DtScriptedMovementObject will contain information about an object that can be used for scripted movement.
This file will contain classes to define the configuration for the csv file being loaded as well as the phases of deployment and movement of scripted objects
Information is saved in XML format Defines the configuration of the csv files read as part of the phases of the scripted movement object
| virtual void DtScriptedMovementFileConfiguration::addColumn |
( |
const std::string & |
type, |
|
|
const std::string & |
units, |
|
|
int |
columnInFile = -1 |
|
) |
| |
|
virtual |
adds a new column into the configuration.
A column is defined as a type and a unit of type: Data types can be of Time - expected simulation time lateral-distance - Distance along the "x" dimension the object will be away from the target at time Time altitude - Altitude along the "z" dimension the object will be away from the target at time Time range - Altitude along the "y" dimension the object will be away from the target at time Time
units can be
For time: seconds minutes miliseconds hours
For distance items
m - Meters km - Kilometers ft - Feet mi - miles nm - nautical miles If column in file is -1 will simply set column to be the next column available