VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Attributes
DtGeodeticCoordinateSystemDMS Class Reference
Inheritance diagram for DtGeodeticCoordinateSystemDMS:
Inheritance graph
[legend]

Public Member Functions

 DtGeodeticCoordinateSystemDMS (const DtUnitDisplayManager *)
virtual ~DtGeodeticCoordinateSystemDMS ()
virtual QString name ()
virtual QString xLabelFor () const
virtual QString yLabelFor () const
virtual QString zLabelFor () const
virtual QStringList convertPositionToStringList (const Coordinate_System *cs, const DtVector &geocPos) const
 Takes the x, y, z values that comes in and creates a string array of three strings that represent the values.
virtual DtGridLineChoiceMap gridLineChoices (const QString &units) const
 Returns the list of possible grid line choices based on the currently selected units.
virtual void convertToGeocentric (const DtStringLocation &in, const Coordinate_System *cs, DtVector &vector) const
 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
 Converts the vector into the given units.
virtual double convertToDegrees (const QString &str, int prec=1) const
 Converts the string that is of the format deg:min:sec, assuming the supplied precision.
virtual double speed (const Coordinate_System *cs, const DtVector &location, const DtVector &velocity) const
 Since this can be handled generically with this coordinate system, calls to DtDatabaseCoordinateSystem to get speed.
virtual DtVector velocity (const Coordinate_System *cs, const DtVector &location, const DtVector &velocity) const
 Since this can be handled generically with this coordinate system, calls to DtDatabaseCoordinateSystem to get velocity.
virtual DtVector acceleration (const Coordinate_System *cs, const DtVector &location, const DtVector &acl) const
 Since this can be handled generically with this coordinate system, calls to DtDatabaseCoordinateSystem to get acceleration.
virtual DtVector rotationalVelocity (const Coordinate_System *cs, const DtVector &location, const DtVector &rtVel) const
 Since this can be handled generically with this coordinate system, calls to DtDatabaseCoordinateSystem to get rotationalVelocity.
virtual DtTaitBryan localOrientationFor (const DtVector &location, const DtTaitBryan &geocOri) const
 Return local orientation given geocentric orientation.
virtual DtTaitBryan headingPitchRollFor (const DtVector &location, const DtTaitBryan &geocOri) const
 Return heading, pitch, roll in end coordinate system given local orientation.
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 formatToPrecision (double d) const
 Returns a string formatted D:M:S.
virtual QString locationLabelFor ()
 Returns labels based on the coordinate system by default as these labels are not currently changing by coordinate system.
- Public Member Functions inherited from DtTerrainCoordinateSystem
 DtTerrainCoordinateSystem (const DtUnitDisplayManager *)
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 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 speedLabelFor ()
virtual QString velocityLabelFor ()
virtual QString accelerationLabelFor ()
const DtTerrainDatabaseterrainDatabase () const
void setTerrainDatabase (const DtTerrainDatabase *)
virtual DtTaitBryan topoOrientationFor (const DtVector &geocPos, const DtTaitBryan &geocOri) const
- Public Member Functions inherited from DtCoordinateSystem
 DtCoordinateSystem (const DtUnitDisplayManager *)
virtual ~DtCoordinateSystem ()
const DtUnitDisplayManagerunitDisplayManager () const
void setPrecision (int)
virtual int precision () const
void setPrecisionLowerBound (int)
virtual int precisionLowerBound () const
void setPrecisionUpperBound (int)
int precisionUpperBound () const
void setApplyPrecision (bool b)
bool applyPrecision () const
virtual QString formatSourceToDisplay (double val, const QString &unitDisplay, const QString &source) const
 Uses destiation as defined i unit manager.
virtual QString formatDisplayToSource (double val, const QString &unitDisplay, const QString &source) const
 Uses destiation as defined i unit manager.
virtual QString formatSourceToDisplay (const QString &val, const QString &unitDisplay, const QString &source) const
virtual QString formatDisplayToSource (const QString &val, const QString &unitDisplay, const QString &source) const
virtual double convertSourceToDestination (double val, const QString &source, const QString &destination) const
 Converts from the source to the destination units and returns formatted value.
virtual double convertSourceToDisplay (double val, const QString &unitDisplay, const QString &source) const
virtual double convertDestinationToSource (double val, const QString &source, const QString &destination) const
 Converts from the destination to the source.
virtual double convertDisplayToSource (double val, const QString &unitDisplay, const QString &source) const
virtual DtGridLineDrawergridLineDrawer () const
 Returns the drawer that is used for displaying grid lines.
virtual void setGridLineDrawer (DtGridLineDrawer *)
 Clones the grid line drawer to keep it's own copy upon set.
virtual DtGridLineDrawercreateDefaultGridLineDrawer () const

Protected Attributes

QHash< QString, double > myMapGeodChoiceToDouble
- Protected Attributes inherited from DtTerrainCoordinateSystem
const DtTerrainDatabasemyTerrainDatabase
- Protected Attributes inherited from DtCoordinateSystem
const DtUnitDisplayManagermyUnits
DtGridLineDrawermyGridLineDrawer
int myPrecision
int myUpperBound
int myLowerBound
bool myApplyPrecision

Constructor & Destructor Documentation

DtGeodeticCoordinateSystemDMS::DtGeodeticCoordinateSystemDMS ( const DtUnitDisplayManager )
virtual DtGeodeticCoordinateSystemDMS::~DtGeodeticCoordinateSystemDMS ( )
virtual

Member Function Documentation

virtual QString DtGeodeticCoordinateSystemDMS::name ( )
virtual

Implements DtCoordinateSystem.

Reimplemented in DtGeodeticCoordinateSystemDDD.

virtual QString DtGeodeticCoordinateSystemDMS::xLabelFor ( ) const
virtual

Implements DtCoordinateSystem.

Reimplemented in DtGeodeticCoordinateSystemDDD.

virtual QString DtGeodeticCoordinateSystemDMS::yLabelFor ( ) const
virtual

Implements DtCoordinateSystem.

Reimplemented in DtGeodeticCoordinateSystemDDD.

virtual QString DtGeodeticCoordinateSystemDMS::zLabelFor ( ) const
virtual

Implements DtCoordinateSystem.

Reimplemented in DtGeodeticCoordinateSystemDDD.

virtual QStringList DtGeodeticCoordinateSystemDMS::convertPositionToStringList ( const Coordinate_System cs,
const DtVector geocPos 
) const
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

Implements DtTerrainCoordinateSystem.

Reimplemented in DtGeodeticCoordinateSystemDDD.

virtual DtGridLineChoiceMap DtGeodeticCoordinateSystemDMS::gridLineChoices ( const QString &  units) const
virtual

Returns the list of possible grid line choices based on the currently selected units.

The string is the item to show in the combo box and the double is the value of that string

Implements DtCoordinateSystem.

virtual void DtGeodeticCoordinateSystemDMS::convertToGeocentric ( const DtStringLocation in,
const Coordinate_System cs,
DtVector vector 
) const
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

Implements DtTerrainCoordinateSystem.

Reimplemented in DtGeodeticCoordinateSystemDDD.

virtual void DtGeodeticCoordinateSystemDMS::convertFromGeocentric ( const Coordinate_System cs,
const DtVector vector,
DtStringLocation out 
) const
virtual

Converts the vector into the given units.

Assumes the vector is in geocentric coordinates

Implements DtTerrainCoordinateSystem.

Reimplemented in DtGeodeticCoordinateSystemDDD.

virtual double DtGeodeticCoordinateSystemDMS::convertToDegrees ( const QString &  str,
int  prec = 1 
) const
virtual

Converts the string that is of the format deg:min:sec, assuming the supplied precision.

Note the precision should be in the precision the string was originall created in

virtual double DtGeodeticCoordinateSystemDMS::speed ( const Coordinate_System cs,
const DtVector location,
const DtVector velocity 
) const
virtual

Since this can be handled generically with this coordinate system, calls to DtDatabaseCoordinateSystem to get speed.

Implements DtTerrainCoordinateSystem.

virtual DtVector DtGeodeticCoordinateSystemDMS::velocity ( const Coordinate_System cs,
const DtVector location,
const DtVector velocity 
) const
virtual

Since this can be handled generically with this coordinate system, calls to DtDatabaseCoordinateSystem to get velocity.

Implements DtTerrainCoordinateSystem.

virtual DtVector DtGeodeticCoordinateSystemDMS::acceleration ( const Coordinate_System cs,
const DtVector location,
const DtVector acl 
) const
virtual

Since this can be handled generically with this coordinate system, calls to DtDatabaseCoordinateSystem to get acceleration.

Implements DtTerrainCoordinateSystem.

virtual DtVector DtGeodeticCoordinateSystemDMS::rotationalVelocity ( const Coordinate_System cs,
const DtVector location,
const DtVector rtVel 
) const
virtual

Since this can be handled generically with this coordinate system, calls to DtDatabaseCoordinateSystem to get rotationalVelocity.

Implements DtTerrainCoordinateSystem.

virtual DtTaitBryan DtGeodeticCoordinateSystemDMS::localOrientationFor ( const DtVector location,
const DtTaitBryan &  geocOri 
) const
virtual

Return local orientation given geocentric orientation.

Implements DtTerrainCoordinateSystem.

virtual DtTaitBryan DtGeodeticCoordinateSystemDMS::headingPitchRollFor ( const DtVector geocPos,
const DtTaitBryan &  geocOri 
) const
virtual

Return heading, pitch, roll in end coordinate system given local orientation.

Implements DtTerrainCoordinateSystem.

virtual QString DtGeodeticCoordinateSystemDMS::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

Reimplemented from DtTerrainCoordinateSystem.

virtual QString DtGeodeticCoordinateSystemDMS::formatToPrecision ( double  d) const
virtual

Returns a string formatted D:M:S.

Reimplemented from DtCoordinateSystem.

Reimplemented in DtGeodeticCoordinateSystemDDD.

virtual QString DtGeodeticCoordinateSystemDMS::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 from DtTerrainCoordinateSystem.

Reimplemented in DtGeodeticCoordinateSystemDDD.

Member Data Documentation

QHash<QString, double> DtGeodeticCoordinateSystemDMS::myMapGeodChoiceToDouble
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)