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

Public Member Functions | |
| DtDefaultCoordinateSystem (const DtUnitDisplayManager *manager) | |
| virtual | ~DtDefaultCoordinateSystem () |
| virtual QString | name () |
| virtual QString | xLabelFor () const |
| virtual QString | yLabelFor () const |
| virtual QString | zLabelFor () const |
| virtual DtGridLineChoiceMap | gridLineChoices (const QString &units) const |
| Returns the list of possible grid line choices based on the currently selected units. | |
| 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 |
| Converts val to float and calls above routines. | |
| virtual QString | formatDestinationToSource (const QString &val, const QString &unitDisplay, const QString &source, const QString &destination) const |
| DtDefaultCoordinateSystem::DtDefaultCoordinateSystem | ( | const DtUnitDisplayManager * | manager | ) |
| virtual DtDefaultCoordinateSystem::~DtDefaultCoordinateSystem | ( | ) | [virtual] |
| virtual QString DtDefaultCoordinateSystem::name | ( | ) | [virtual] |
Implements DtCoordinateSystem.
Reimplemented in DtDefaultGeodeticCoordinateSystem.
| virtual QString DtDefaultCoordinateSystem::xLabelFor | ( | ) | const [virtual] |
Implements DtCoordinateSystem.
| virtual QString DtDefaultCoordinateSystem::yLabelFor | ( | ) | const [virtual] |
Implements DtCoordinateSystem.
| virtual QString DtDefaultCoordinateSystem::zLabelFor | ( | ) | const [virtual] |
Implements DtCoordinateSystem.
| virtual DtGridLineChoiceMap DtDefaultCoordinateSystem::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 bool DtDefaultCoordinateSystem::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 DtDefaultCoordinateSystem::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
Implements DtCoordinateSystem.
Reimplemented in DtDefaultGeodeticCoordinateSystem.
| virtual QString DtDefaultCoordinateSystem::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 DtDefaultGeodeticCoordinateSystem.
| virtual QString DtDefaultCoordinateSystem::formatSourceToDestination | ( | const QString & | val, |
| const QString & | unitDisplay, | ||
| const QString & | source, | ||
| const QString & | destination | ||
| ) | const [virtual] |
Converts val to float and calls above routines.
Implements DtCoordinateSystem.
| virtual QString DtDefaultCoordinateSystem::formatDestinationToSource | ( | const QString & | val, |
| const QString & | unitDisplay, | ||
| const QString & | source, | ||
| const QString & | destination | ||
| ) | const [virtual] |
Implements DtCoordinateSystem.