![]() |
VR-Forces 4.0.4 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 |
| virtual DtCoordinateSystem::~DtCoordinateSystem | ( | ) | [virtual] |
| virtual QString DtCoordinateSystem::name | ( | ) | [pure virtual] |
| virtual QString DtCoordinateSystem::xLabelFor | ( | ) | const [pure virtual] |
| virtual QString DtCoordinateSystem::yLabelFor | ( | ) | const [pure virtual] |
| virtual QString DtCoordinateSystem::zLabelFor | ( | ) | const [pure virtual] |
| virtual DtGridLineChoiceMap DtCoordinateSystem::gridLineChoices | ( | const QString & | units | ) | const [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.
| const DtUnitDisplayManager * DtCoordinateSystem::unitDisplayManager | ( | ) | const [inline] |
References myUnits.
| void DtCoordinateSystem::setPrecision | ( | int | d | ) | [inline] |
References myPrecision.
| virtual int DtCoordinateSystem::precision | ( | ) | const [virtual] |
| void DtCoordinateSystem::setPrecisionLowerBound | ( | int | i | ) | [inline] |
References myLowerBound.
| virtual int DtCoordinateSystem::precisionLowerBound | ( | ) | const [virtual] |
Reimplemented in DtDatabaseCoordinateSystem.
| void DtCoordinateSystem::setPrecisionUpperBound | ( | int | i | ) | [inline] |
References myUpperBound.
| int DtCoordinateSystem::precisionUpperBound | ( | ) | const [inline] |
References myUpperBound.
| void DtCoordinateSystem::setApplyPrecision | ( | bool | b | ) | [inline] |
References myApplyPrecision.
| bool DtCoordinateSystem::applyPrecision | ( | ) | const [inline] |
References myApplyPrecision.
| QString DtCoordinateSystem::formatToPrecision | ( | double | d | ) | const |
Reimplemented in DtGeodeticCoordinateSystemDMS, and DtGeodeticCoordinateSystemDDD.
| virtual bool DtCoordinateSystem::convertFrom | ( | const DtCoordinateSystem * | oldCS, |
| const DtStringLocation & | curLoc, | ||
| DtStringLocation & | newLoc | ||
| ) | const [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.
| virtual QString DtCoordinateSystem::formatSourceToDestination | ( | double | val, |
| const QString & | unitDisplay, | ||
| const QString & | source, | ||
| const QString & | destination | ||
| ) | const [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 QString DtCoordinateSystem::formatSourceToDisplay | ( | double | val, |
| const QString & | unitDisplay, | ||
| const QString & | source | ||
| ) | const [virtual] |
Uses destiation as defined i unit manager.
| virtual QString DtCoordinateSystem::formatDestinationToSource | ( | double | val, |
| const QString & | unitDisplay, | ||
| const QString & | source, | ||
| const QString & | destination | ||
| ) | const [pure virtual] |
Formats from the destination to the source.
Implemented in DtTerrainCoordinateSystem, DtDefaultGeodeticCoordinateSystem, DtGeocentricCoordinateSystem, DtUtmCoordinateSystem, and DtDefaultCoordinateSystem.
| virtual QString DtCoordinateSystem::formatDisplayToSource | ( | double | val, |
| const QString & | unitDisplay, | ||
| const QString & | source | ||
| ) | const [virtual] |
Uses destiation as defined i unit manager.
| virtual QString DtCoordinateSystem::formatSourceToDestination | ( | const QString & | val, |
| const QString & | unitDisplay, | ||
| const QString & | source, | ||
| const QString & | destination | ||
| ) | const [pure virtual] |
These routies are used for values that are fomatted in non-numeric displays.
Implemented in DtTerrainCoordinateSystem, DtDatabaseCoordinateSystem, and DtDefaultCoordinateSystem.
| virtual QString DtCoordinateSystem::formatSourceToDisplay | ( | const QString & | val, |
| const QString & | unitDisplay, | ||
| const QString & | source | ||
| ) | const [virtual] |
| virtual QString DtCoordinateSystem::formatDestinationToSource | ( | const QString & | val, |
| const QString & | unitDisplay, | ||
| const QString & | source, | ||
| const QString & | destination | ||
| ) | const [pure virtual] |
Implemented in DtTerrainCoordinateSystem, DtDatabaseCoordinateSystem, and DtDefaultCoordinateSystem.
| virtual QString DtCoordinateSystem::formatDisplayToSource | ( | const QString & | val, |
| const QString & | unitDisplay, | ||
| const QString & | source | ||
| ) | const [virtual] |
| virtual double DtCoordinateSystem::convertSourceToDestination | ( | double | val, |
| const QString & | source, | ||
| const QString & | destination | ||
| ) | const [virtual] |
Converts from the source to the destination units and returns formatted value.
| virtual double DtCoordinateSystem::convertSourceToDisplay | ( | double | val, |
| const QString & | unitDisplay, | ||
| const QString & | source | ||
| ) | const [virtual] |
| virtual double DtCoordinateSystem::convertDestinationToSource | ( | double | val, |
| const QString & | source, | ||
| const QString & | destination | ||
| ) | const [virtual] |
Converts from the destination to the source.
| virtual double DtCoordinateSystem::convertDisplayToSource | ( | double | val, |
| const QString & | unitDisplay, | ||
| const QString & | source | ||
| ) | const [virtual] |
| virtual DtGridLineDrawer* DtCoordinateSystem::gridLineDrawer | ( | ) | const [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 void DtCoordinateSystem::setGridLineDrawer | ( | DtGridLineDrawer * | ) | [virtual] |
Clones the grid line drawer to keep it's own copy upon set.
| virtual DtGridLineDrawer* DtCoordinateSystem::createDefaultGridLineDrawer | ( | ) | const [virtual] |
Reimplemented in DtUtmCoordinateSystem.
const DtUnitDisplayManager* DtCoordinateSystem::myUnits [protected] |
Referenced by unitDisplayManager().
DtGridLineDrawer* DtCoordinateSystem::myGridLineDrawer [mutable, protected] |
int DtCoordinateSystem::myPrecision [protected] |
Referenced by setPrecision().
int DtCoordinateSystem::myUpperBound [protected] |
Referenced by precisionUpperBound(), and setPrecisionUpperBound().
int DtCoordinateSystem::myLowerBound [protected] |
Referenced by setPrecisionLowerBound().
bool DtCoordinateSystem::myApplyPrecision [protected] |
Referenced by applyPrecision(), and setApplyPrecision().