![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtTerrainCoordinateSystem (const DtUnitDisplayManager *) | |
| virtual QStringList | convertPositionToStringList (const Coordinate_System *cs, const DtVector &geocPos) const =0 |
| Takes the x, y, z values that comes in and creates a string array of three strings that represent the values. | |
| virtual void | convertToGeocentric (const DtStringLocation &in, const Coordinate_System *cs, DtVector &vector) const =0 |
| Converts the given coordinates (in string rep) from the base units to geocentric. | |
| virtual void | convertFromGeocentric (const Coordinate_System *cs, const DtVector &vector, DtStringLocation &out) const =0 |
| Converts the vector into the given units of the display manager. | |
| virtual double | speed (const Coordinate_System *cs, const DtVector &location, const DtVector &velocity) const =0 |
| Return speed in units of display manager. | |
| virtual DtVector | velocity (const Coordinate_System *cs, const DtVector &location, const DtVector &velocity) const =0 |
| Return velocity in given units of display manager. | |
| virtual DtVector | acceleration (const Coordinate_System *cs, const DtVector &location, const DtVector &acl) const =0 |
| Return acceleration in given units of display manager. | |
| virtual DtVector | rotationalVelocity (const Coordinate_System *cs, const DtVector &location, const DtVector &rtVel) const =0 |
| Return rotationalVelocity in given of display manager. | |
| virtual DtTaitBryan | localOrientationFor (const DtVector &location, const DtTaitBryan &geocOri) const =0 |
| Return local orientation given geocentric orientation. | |
| virtual DtTaitBryan | headingPitchRollFor (const DtVector &geocPos, const DtTaitBryan &geocOri) const =0 |
| Return heading, pitch, roll in end coordinate system given local orientation. | |
| virtual bool | convertFrom (const DtCoordinateSystem *oldCS, const DtStringLocation &curLoc, DtStringLocation &newLoc) const |
| Converts from the supplied coordinate system (including units) to our coordinate system and returns the newly formatted values into the result. | |
| virtual QString | formatSourceToDestination (double val, const QString &unitDisplay, const QString &source, const QString &destination) const |
| Formats from the source to the destination units and returns formatted value. | |
| virtual QString | formatDestinationToSource (double val, const QString &unitDisplay, const QString &source, const QString &destination) const |
| Formats from the destination to the source. | |
| virtual QString | formatSourceToDestination (const QString &val, const QString &unitDisplay, const QString &source, const QString &destination) const |
| These routies are used for values that are fomatted in non-numeric displays. | |
| virtual QString | formatDestinationToSource (const QString &val, const QString &unitDisplay, const QString &source, const QString &destination) const |
| virtual QString | locationLabelFor () |
| Returns labels based on the coordinate system by default as these labels are not currently changing by coordinate system. | |
| virtual QString | speedLabelFor () |
| virtual QString | velocityLabelFor () |
| virtual QString | accelerationLabelFor () |
| const DtTerrainDatabase * | terrainDatabase () const |
| void | setTerrainDatabase (const DtTerrainDatabase *) |
| virtual DtTaitBryan | topoOrientationFor (const DtVector &geocPos, const DtTaitBryan &geocOri) const |
Protected Attributes | |
| const DtTerrainDatabase * | myTerrainDatabase |
| virtual QStringList DtTerrainCoordinateSystem::convertPositionToStringList | ( | const Coordinate_System * | cs, |
| const DtVector & | geocPos | ||
| ) | const [pure virtual] |
Takes the x, y, z values that comes in and creates a string array of three strings that represent the values.
This call assumes the values being passed in are in geocentric values
Implemented in DtDatabaseCoordinateSystem, DtUtmCoordinateSystem, DtGeocentricCoordinateSystem, DtGeodeticCoordinateSystemDMS, and DtGeodeticCoordinateSystemDDD.
| virtual void DtTerrainCoordinateSystem::convertToGeocentric | ( | const DtStringLocation & | in, |
| const Coordinate_System * | cs, | ||
| DtVector & | vector | ||
| ) | const [pure virtual] |
Converts the given coordinates (in string rep) from the base units to geocentric.
Note that the coordinates must be in the units of this collection
Implemented in DtDatabaseCoordinateSystem, DtGeocentricCoordinateSystem, DtGeodeticCoordinateSystemDMS, DtUtmCoordinateSystem, and DtGeodeticCoordinateSystemDDD.
| virtual void DtTerrainCoordinateSystem::convertFromGeocentric | ( | const Coordinate_System * | cs, |
| const DtVector & | vector, | ||
| DtStringLocation & | out | ||
| ) | const [pure virtual] |
Converts the vector into the given units of the display manager.
Assumes the vector is in geocentric coordinates
Implemented in DtDatabaseCoordinateSystem, DtGeocentricCoordinateSystem, DtGeodeticCoordinateSystemDMS, DtUtmCoordinateSystem, and DtGeodeticCoordinateSystemDDD.
| virtual double DtTerrainCoordinateSystem::speed | ( | const Coordinate_System * | cs, |
| const DtVector & | location, | ||
| const DtVector & | velocity | ||
| ) | const [pure virtual] |
Return speed in units of display manager.
Assumes location and velocity are in geocentric coordinates
Implemented in DtDatabaseCoordinateSystem, DtGeodeticCoordinateSystemDMS, and DtGeocentricCoordinateSystem.
| virtual DtVector DtTerrainCoordinateSystem::velocity | ( | const Coordinate_System * | cs, |
| const DtVector & | location, | ||
| const DtVector & | velocity | ||
| ) | const [pure virtual] |
Return velocity in given units of display manager.
Assumes location and velocity are in geocentric coordinates
Implemented in DtDatabaseCoordinateSystem, DtGeodeticCoordinateSystemDMS, DtGeocentricCoordinateSystem, and DtUtmCoordinateSystem.
| virtual DtVector DtTerrainCoordinateSystem::acceleration | ( | const Coordinate_System * | cs, |
| const DtVector & | location, | ||
| const DtVector & | acl | ||
| ) | const [pure virtual] |
Return acceleration in given units of display manager.
Assumes location and acl are in geocentric coordinates
Implemented in DtGeodeticCoordinateSystemDMS, DtDatabaseCoordinateSystem, DtGeocentricCoordinateSystem, and DtUtmCoordinateSystem.
| virtual DtVector DtTerrainCoordinateSystem::rotationalVelocity | ( | const Coordinate_System * | cs, |
| const DtVector & | location, | ||
| const DtVector & | rtVel | ||
| ) | const [pure virtual] |
Return rotationalVelocity in given of display manager.
Assumes location and rtVel are in geocentric coordinates
Implemented in DtGeodeticCoordinateSystemDMS, DtDatabaseCoordinateSystem, and DtGeocentricCoordinateSystem.
| virtual DtTaitBryan DtTerrainCoordinateSystem::localOrientationFor | ( | const DtVector & | location, |
| const DtTaitBryan & | geocOri | ||
| ) | const [pure virtual] |
Return local orientation given geocentric orientation.
Implemented in DtGeodeticCoordinateSystemDMS, DtDatabaseCoordinateSystem, DtGeocentricCoordinateSystem, and DtUtmCoordinateSystem.
| virtual DtTaitBryan DtTerrainCoordinateSystem::headingPitchRollFor | ( | const DtVector & | geocPos, |
| const DtTaitBryan & | geocOri | ||
| ) | const [pure virtual] |
Return heading, pitch, roll in end coordinate system given local orientation.
Implemented in DtGeodeticCoordinateSystemDMS, DtDatabaseCoordinateSystem, DtGeocentricCoordinateSystem, and DtUtmCoordinateSystem.
| virtual bool DtTerrainCoordinateSystem::convertFrom | ( | const DtCoordinateSystem * | oldCS, |
| const DtStringLocation & | curLoc, | ||
| DtStringLocation & | newLoc | ||
| ) | const [virtual] |
Converts from the supplied coordinate system (including units) to our coordinate system and returns the newly formatted values into the result.
Returns false if conversion was not performed.
Implements DtCoordinateSystem.
| virtual QString DtTerrainCoordinateSystem::formatSourceToDestination | ( | double | val, |
| const QString & | unitDisplay, | ||
| const QString & | source, | ||
| const QString & | destination | ||
| ) | const [virtual] |
Formats from the source to the destination units and returns formatted value.
Unit display is defined in unitDisplayManager.h. If destination is blank, returns the destination that is currently assigned to the unitDisplay
Implements DtCoordinateSystem.
Reimplemented in DtGeodeticCoordinateSystemDMS, DtGeocentricCoordinateSystem, and DtUtmCoordinateSystem.
| virtual QString DtTerrainCoordinateSystem::formatDestinationToSource | ( | double | val, |
| const QString & | unitDisplay, | ||
| const QString & | source, | ||
| const QString & | destination | ||
| ) | const [virtual] |
Formats from the destination to the source.
Implements DtCoordinateSystem.
Reimplemented in DtGeocentricCoordinateSystem, and DtUtmCoordinateSystem.
| virtual QString DtTerrainCoordinateSystem::formatSourceToDestination | ( | const QString & | val, |
| const QString & | unitDisplay, | ||
| const QString & | source, | ||
| const QString & | destination | ||
| ) | const [virtual] |
These routies are used for values that are fomatted in non-numeric displays.
Implements DtCoordinateSystem.
Reimplemented in DtDatabaseCoordinateSystem.
| virtual QString DtTerrainCoordinateSystem::formatDestinationToSource | ( | const QString & | val, |
| const QString & | unitDisplay, | ||
| const QString & | source, | ||
| const QString & | destination | ||
| ) | const [virtual] |
Implements DtCoordinateSystem.
Reimplemented in DtDatabaseCoordinateSystem.
| virtual QString DtTerrainCoordinateSystem::locationLabelFor | ( | ) | [virtual] |
Returns labels based on the coordinate system by default as these labels are not currently changing by coordinate system.
Override to provide coordinate system specific labels
Reimplemented in DtGeodeticCoordinateSystemDMS, DtDatabaseCoordinateSystem, DtGeocentricCoordinateSystem, DtUtmCoordinateSystem, and DtGeodeticCoordinateSystemDDD.
| virtual QString DtTerrainCoordinateSystem::speedLabelFor | ( | ) | [virtual] |
| virtual QString DtTerrainCoordinateSystem::velocityLabelFor | ( | ) | [virtual] |
| virtual QString DtTerrainCoordinateSystem::accelerationLabelFor | ( | ) | [virtual] |
| const DtTerrainDatabase * DtTerrainCoordinateSystem::terrainDatabase | ( | ) | const [inline] |
References myTerrainDatabase.
| void DtTerrainCoordinateSystem::setTerrainDatabase | ( | const DtTerrainDatabase * | db | ) | [inline] |
References myTerrainDatabase.
| virtual DtTaitBryan DtTerrainCoordinateSystem::topoOrientationFor | ( | const DtVector & | geocPos, |
| const DtTaitBryan & | geocOri | ||
| ) | const [virtual] |
const DtTerrainDatabase* DtTerrainCoordinateSystem::myTerrainDatabase [protected] |
Referenced by setTerrainDatabase(), and terrainDatabase().