![]() |
VR-Forces 4.3.1 Class Documentation
|
The DtScriptedMovementObject will contain information about an object that can be used for scripted movement. More...
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 () | |
| 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 int | altitudeUnits () const |
| virtual int | rangeColumn () const |
| Returns the range column. -1 if no column exits. | |
| virtual int | rangeUnits () const |
| virtual int | lateralDistanceColumn () const |
| Returns the lateral distance column. -1 if no column exits. | |
| virtual int | lateralDistanceUnits () const |
| virtual int | headingColumn () const |
| Returns the heading offset column. -1 if no column exists. Considered offset to initial orientation. | |
| virtual int | headingUnits () const |
| virtual int | pitchColumn () const |
| Returns the pitch offset column. -1 if no column exists. Considered offset to initial orientation. | |
| virtual int | pitchUnits () const |
| virtual int | rollColumn () const |
| Returns the roll offset column. -1 if no column exists. Considered offset to initial orientation. | |
| 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) | |
| virtual void | updateCache () |
| Updates the cache values. | |
| virtual int | mapToInternalValue (const std::string &) const |
| virtual double | convertUnitsToNative (double d, int 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. | |
| virtual void | setDisplayName (const std::string &) |
| Gui presentable name. | |
| 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. | |
| virtual const std::string & | uniqueId () const |
Static Public Member Functions | |
| static DtScriptedMovementFileConfiguration | defaultBallisticMissileConfiguration () |
| 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. | |
| static DtScriptedMovementFileConfiguration | defaultPrecisionMovementConfiguration () |
| 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. | |
Protected Types | |
| typedef std::map< std::string, CacheColumn > | CachedMap |
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 | |
| int | myRowStart |
| Columns | myColumns |
| CachedMap | myCachedColumnsByType |
| CachedMap | myCachedColumnsByColumn |
| std::string | myUniqueId |
| std::string | myDisplayName |
Friends | |
| class | boost::serialization::access |
| Serialization/Deserialization //. | |
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
| 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 |