![]() |
VR-Forces 5.0.3 Developer's Guide
|
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
Classes | |
| struct | CacheColumn |
| struct | Column |
Public Types | |
| enum | TimeConversion { Milliseconds = 0, Seconds, Minutes, Hours } |
| enum | DistanceConversion { Uknown = -1, Feet = 0, Meters, Miles, Kilometers, NauticalMiles, Radians, Degrees } |
| typedef std::vector< Column > | Columns |
Public Member Functions | |
| DtScriptedMovementFileConfiguration () | |
| virtual | ~DtScriptedMovementFileConfiguration () |
| DtScriptedMovementFileConfiguration (const DtScriptedMovementFileConfiguration &) | |
| DtScriptedMovementFileConfiguration & | operator= (const DtScriptedMovementFileConfiguration &) |
| virtual void | addColumn (const std::string &type, const std::string &units, int columnInFile=-1) |
| virtual void | removeColumn (int) |
| virtual const Columns & | columns () const |
| virtual void | setColumns (const Columns &) |
| virtual void | setRowStart (int) |
| virtual int | rowStart () const |
| virtual int | timeColumn () const |
| virtual int | altitudeColumn () const |
| virtual int | altitudeUnits () const |
| virtual int | rangeColumn () const |
| virtual int | rangeUnits () const |
| virtual int | lateralDistanceColumn () const |
| virtual int | lateralDistanceUnits () const |
| virtual int | headingColumn () const |
| virtual int | headingUnits () const |
| virtual int | pitchColumn () const |
| virtual int | pitchUnits () const |
| virtual int | rollColumn () const |
| 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 |
| virtual void | updateCache () |
| virtual int | mapToInternalValue (const std::string &) const |
| virtual double | convertUnitsToNative (double d, int conv) const |
| virtual DtString | toString () const |
| virtual void | fromString (const DtString &) |
| virtual bool | setColumn (int col, const std::string &type, const std::string &unit, int columnInFile=-1) |
| virtual void | column (int col, int &columnInFile, std::string &type, std::string &unit) const |
| virtual void | setDisplayName (const std::string &) |
| virtual const std::string & | displayName () const |
| virtual void | setUniqueId (const std::string &) |
| virtual const std::string & | uniqueId () const |
Static Public Member Functions | |
| static DtScriptedMovementFileConfiguration | defaultBallisticMissileConfiguration () |
| static DtScriptedMovementFileConfiguration | defaultPrecisionMovementConfiguration () |
Protected Types | |
| typedef std::map< std::string, CacheColumn > | CachedMap |
Protected Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Protected Attributes | |
| int | myRowStart |
| Columns | myColumns |
| CachedMap | myCachedColumnsByType |
| CachedMap | myCachedColumnsByColumn |
| std::string | myUniqueId |
| std::string | myDisplayName |
Friends | |
| class | boost::serialization::access |
| typedef std::vector<Column> DtScriptedMovementFileConfiguration::Columns |
|
protected |
| DtScriptedMovementFileConfiguration::DtScriptedMovementFileConfiguration | ( | ) |
CTOR.
|
virtual |
DTOR.
| DtScriptedMovementFileConfiguration::DtScriptedMovementFileConfiguration | ( | const DtScriptedMovementFileConfiguration & | ) |
Copy constructor.
| DtScriptedMovementFileConfiguration& DtScriptedMovementFileConfiguration::operator= | ( | const DtScriptedMovementFileConfiguration & | ) |
Assignment operator.
|
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
|
virtual |
Removes a column at the given index.
|
virtual |
Columsn accessor.
|
virtual |
|
virtual |
Sets the first row to start reading from, assuming possible header rows.
|
virtual |
|
virtual |
Column that represents time. -1 if no column exists.
|
virtual |
Returns the altitude column. -1 if no column exits.
|
virtual |
|
virtual |
Returns the range column. -1 if no column exits.
|
virtual |
|
virtual |
Returns the lateral distance column. -1 if no column exits.
|
virtual |
|
virtual |
Returns the heading offset column. -1 if no column exists. Considered offset to initial orientation.
|
virtual |
|
virtual |
Returns the pitch offset column. -1 if no column exists. Considered offset to initial orientation.
|
virtual |
|
virtual |
Returns the roll offset column. -1 if no column exists. Considered offset to initial orientation.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Converts supplied time value to seconds (given a time column, else simply returns value)
|
virtual |
Updates the cache values.
|
virtual |
|
virtual |
Converts distance units to meters given native format.
|
virtual |
Convert to a simple comma delimited string.
|
virtual |
Convert back from comma delimeted string.
|
static |
Returns a default ballistic missile configuration of 4 columns where the first column is time in seconds, second lateral distance in km, third is altitude in km and fourth is range in km. Row start will also be set to 1 to account for a title line.
|
static |
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.
|
virtual |
Sets the information for the particular column. If column does not exist will not set and return false. If columnInFile is -1 will keep current column setting, else set to new column.
|
virtual |
Retrieves information about the column.
|
virtual |
Gui presentable name.
|
virtual |
|
virtual |
Unique ID assigned at creation time. Use this when assigning configuration to a phase.
|
virtual |
|
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 >>.
|
friend |
Serialization/Deserialization //!
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |