|
| | DtScriptedMovementFileConfiguration () |
| | CTOR. More...
|
| |
| virtual | ~DtScriptedMovementFileConfiguration () |
| | DTOR. More...
|
| |
| | DtScriptedMovementFileConfiguration (const DtScriptedMovementFileConfiguration &) |
| | Copy constructor. More...
|
| |
| DtScriptedMovementFileConfiguration & | operator= (const DtScriptedMovementFileConfiguration &) |
| | Assignment operator. More...
|
| |
| virtual void | addColumn (const std::string &type, const std::string &units, int columnInFile=-1) |
| | adds a new column into the configuration. More...
|
| |
| virtual void | removeColumn (int) |
| | Removes a column at the given index. More...
|
| |
| virtual const Columns & | columns () const |
| | Columsn accessor. More...
|
| |
| virtual void | setColumns (const Columns &) |
| |
| virtual void | setRowStart (int) |
| | Sets the first row to start reading from, assuming possible header rows. More...
|
| |
| virtual int | rowStart () const |
| |
| virtual int | timeColumn () const |
| | Column that represents time. -1 if no column exists. More...
|
| |
| virtual int | altitudeColumn () const |
| | Returns the altitude column. -1 if no column exits. More...
|
| |
| virtual int | altitudeUnits () const |
| |
| virtual int | rangeColumn () const |
| | Returns the range column. -1 if no column exits. More...
|
| |
| virtual int | rangeUnits () const |
| |
| virtual int | lateralDistanceColumn () const |
| | Returns the lateral distance column. -1 if no column exits. More...
|
| |
| virtual int | lateralDistanceUnits () const |
| |
| virtual int | headingColumn () const |
| | Returns the heading offset column. -1 if no column exists. Considered offset to initial orientation. More...
|
| |
| virtual int | headingUnits () const |
| |
| virtual int | pitchColumn () const |
| | Returns the pitch offset column. -1 if no column exists. Considered offset to initial orientation. More...
|
| |
| virtual int | pitchUnits () const |
| |
| virtual int | rollColumn () const |
| | Returns the roll offset column. -1 if no column exists. Considered offset to initial orientation. More...
|
| |
| virtual int | rollUnits () const |
| |
| virtual int | column (const std::string &) const |
| |
| virtual int | units (const std::string &) const |
| |
| virtual double | convertValueForColumn (int col, double value) const |
| |
| virtual double | convertTimeToSeconds (double time) const |
| | Converts supplied time value to seconds (given a time column, else simply returns value) More...
|
| |
| virtual void | updateCache () |
| | Updates the cache values. More...
|
| |
| virtual int | mapToInternalValue (const std::string &) const |
| |
| virtual double | convertUnitsToNative (double d, int conv) const |
| | Converts distance units to meters given native format. More...
|
| |
| virtual DtString | toString () const |
| | Convert to a simple comma delimited string. More...
|
| |
| virtual void | fromString (const DtString &) |
| | Convert back from comma delimeted string. More...
|
| |
| virtual bool | setColumn (int col, const std::string &type, const std::string &unit, int columnInFile=-1) |
| | Sets the information for the particular column. More...
|
| |
| virtual void | column (int col, int &columnInFile, std::string &type, std::string &unit) const |
| | Retrieves information about the column. More...
|
| |
| virtual void | setDisplayName (const std::string &) |
| | Gui presentable name. More...
|
| |
| virtual const std::string & | displayName () const |
| |
| virtual void | setUniqueId (const std::string &) |
| | Unique ID assigned at creation time. Use this when assigning configuration to a phase. More...
|
| |
| virtual const std::string & | uniqueId () const |
| |
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 rad - radians deg - degrees If column in file is -1 will simply set column to be the next column available
Returns a default precision movement configuration of 4 columns where the first column is time in seconds, second lateral distance in m, third is altitude in m, fourth is range in m, fifth is heading offset in radius, sixth is pitch offset and the seventh is the roll offset.
Row start will also be set to 1 to account for a title line