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

Public Member Functions | |
| DtCoordinateSystem (const DtUnitDisplayManager *) | |
| virtual | ~DtCoordinateSystem () |
| virtual QString | name ()=0 |
| virtual QString | xLabelFor () const =0 |
| virtual QString | yLabelFor () const =0 |
| virtual QString | zLabelFor () const =0 |
| virtual DtGridLineChoiceMap | gridLineChoices (const QString &units) const =0 |
| Returns the list of possible grid line choices based on the currently selected units. | |
| const DtUnitDisplayManager * | unitDisplayManager () 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 |
| QString | formatToPrecision (double d) const |
| virtual bool | convertFrom (const DtCoordinateSystem *oldCS, const DtStringLocation &curLoc, DtStringLocation &newLoc) const =0 |
| 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 =0 |
| Formats from the source to the destination units and returns formatted value. | |
| virtual QString | formatSourceToDisplay (double val, const QString &unitDisplay, const QString &source) const |
| Uses destiation as defined i unit manager. | |
| virtual QString | formatDestinationToSource (double val, const QString &unitDisplay, const QString &source, const QString &destination) const =0 |
| Formats from the destination to the source. | |
| virtual QString | formatDisplayToSource (double val, const QString &unitDisplay, const QString &source) const |
| Uses destiation as defined i unit manager. | |
| virtual QString | formatSourceToDestination (const QString &val, const QString &unitDisplay, const QString &source, const QString &destination) const =0 |
| These routies are used for values that are fomatted in non-numeric displays. | |
| virtual QString | formatSourceToDisplay (const QString &val, const QString &unitDisplay, const QString &source) const |
| virtual QString | formatDestinationToSource (const QString &val, const QString &unitDisplay, const QString &source, const QString &destination) const =0 |
| 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 DtGridLineDrawer * | gridLineDrawer () 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 DtGridLineDrawer * | createDefaultGridLineDrawer () const |
Protected Attributes | |
| const DtUnitDisplayManager * | myUnits |
| DtGridLineDrawer * | myGridLineDrawer |
| int | myPrecision |
| int | myUpperBound |
| int | myLowerBound |
| bool | myApplyPrecision |
| DtCoordinateSystem::DtCoordinateSystem | ( | const DtUnitDisplayManager * | ) |
|
virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure 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
Implemented in DtDefaultCoordinateSystem, DtDatabaseCoordinateSystem, DtGeodeticCoordinateSystemDMS, and DtGeocentricCoordinateSystem.
|
inline |
References myUnits.
|
inline |
References myPrecision.
|
virtual |
|
inline |
References myLowerBound.
|
virtual |
Reimplemented in DtDatabaseCoordinateSystem.
|
inline |
References myUpperBound.
|
inline |
References myUpperBound.
|
inline |
References myApplyPrecision.
|
inline |
References myApplyPrecision.
| QString DtCoordinateSystem::formatToPrecision | ( | double | d | ) | const |
Reimplemented in DtGeodeticCoordinateSystemDMS, and DtGeodeticCoordinateSystemDDD.
|
pure 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.
Implemented in DtTerrainCoordinateSystem, and DtDefaultCoordinateSystem.
|
pure 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
Implemented in DtTerrainCoordinateSystem, DtDefaultGeodeticCoordinateSystem, DtGeodeticCoordinateSystemDMS, DtGeocentricCoordinateSystem, DtUtmCoordinateSystem, and DtDefaultCoordinateSystem.
|
virtual |
Uses destiation as defined i unit manager.
|
pure virtual |
Formats from the destination to the source.
Implemented in DtTerrainCoordinateSystem, DtDefaultGeodeticCoordinateSystem, DtGeocentricCoordinateSystem, DtUtmCoordinateSystem, and DtDefaultCoordinateSystem.
|
virtual |
Uses destiation as defined i unit manager.
|
pure virtual |
These routies are used for values that are fomatted in non-numeric displays.
Implemented in DtTerrainCoordinateSystem, DtDatabaseCoordinateSystem, and DtDefaultCoordinateSystem.
|
virtual |
|
pure virtual |
Implemented in DtTerrainCoordinateSystem, DtDatabaseCoordinateSystem, and DtDefaultCoordinateSystem.
|
virtual |
|
virtual |
Converts from the source to the destination units and returns formatted value.
|
virtual |
|
virtual |
Converts from the destination to the source.
|
virtual |
|
virtual |
Returns the drawer that is used for displaying grid lines.
By default uses the DtDatabaseGridLineDrawer (will create it in this call if one is not already set)
|
virtual |
Clones the grid line drawer to keep it's own copy upon set.
|
virtual |
Reimplemented in DtUtmCoordinateSystem.
|
protected |
Referenced by unitDisplayManager().
|
mutableprotected |
|
protected |
Referenced by setPrecision().
|
protected |
Referenced by precisionUpperBound(), and setPrecisionUpperBound().
|
protected |
Referenced by setPrecisionLowerBound().
|
protected |
Referenced by applyPrecision(), and setApplyPrecision().