![]() |
VR-Forces Developer's Guide
|
The SngCoordinateDisplay class provides the ability for VR-Vantage to display Swiss grid geographic coordinate system.

Public Member Functions | |
| SngCoordinateDisplay (const makVrv::DtCoordinateSystem &cs) | |
| DistanceUnits | xUnitsFor (DistanceUnits unit) const |
| DistanceUnits | yUnitsFor (DistanceUnits unit) const |
| DistanceUnits | zUnitsFor (DistanceUnits unit) const |
| virtual makVrv::DtUnicode | xAxisLabel () const |
| virtual makVrv::DtUnicode | yAxisLabel () const |
| virtual makVrv::DtUnicode | zAxisLabel () const |
| virtual makVrv::DtUnicode | northSouthGridLabel (DistanceUnits unit, const DtVector &geocPos, int decimals, double gridSpacing, bool minimal=false) override |
| virtual makVrv::DtUnicode | eastWestGridLabel (DistanceUnits unit, const DtVector &geocPos, int decimals, double gridSpacing, bool minimal=false) override |
| virtual std::vector< std::string > | convertPositionToStringList (DistanceUnits unit, const DtVector &geocPos, int decimals) const override |
| virtual std::vector < makVrv::DtUnicode > | convertPositionToNotatedStringList (DistanceUnits unit, makVrv::DtUnicode unitNotation, const DtVector &geocPos, int decimals, bool minimal=false) const override |
| virtual void | convertToGeocentric (const std::string &x, const std::string &y, const std::string &z, DistanceUnits distUnits, DistanceUnits altUnits, DtVector &vector) |
| virtual makVrv::DtUnicode | name () const |
| virtual makVrv::DtCoordinateDisplay * | clone () const |
| DtVector | convertFromGeocentric (const DtVector &geoc) const |
| DtTaitBryan | headingPitchRollFor (const DtVector &location, const DtTaitBryan &geocOri) const |
| DtTaitBryan | localOrientationFor (const DtVector &location, const DtTaitBryan &geocOri) const |
| DtTaitBryan | orientationFor (const DtVector &location, const DtTaitBryan &geocOri, bool local) const |
| void | regularExpressionValidator (std::string &x, std::string &y, std::string &z) |
Public Member Functions inherited from makVrv::DtCoordinateDisplay | |
| DtCoordinateDisplay (const DtCoordinateSystem &coordSys) | |
| virtual | ~DtCoordinateDisplay () |
| virtual DtUnicode | gridBoxLabel (const DtVector &lowerLeftGeocPos, const DtVector &upperRightGeocPos) |
| virtual DtUnicode | northSouthGridLabel (OrientationUnits unit, const DtVector &geocPos, int decimals, double gridSpacing, bool minimal=false) |
| virtual DtUnicode | eastWestGridLabel (OrientationUnits unit, const DtVector &geocPos, int decimals, double gridSpacing, bool minimal=false) |
| virtual bool | clipXToGrid (double inStartX, double inEndX, double constantY, double &clippedStartX, double &clippedEndX) |
| virtual bool | clipYToGrid (double inStartY, double inEndY, double constantX, double &clippedStartY, double &clippedEndY) |
| virtual void | shiftGridLineAnchors (double xSpacing, double ySpacing, double &shiftX, double &shifY) |
| virtual bool | usesDecimalsOnGridLines () const |
| virtual double | maxGridSpacing () const |
| virtual double | minGridSpacing () const |
| virtual DtTaitBryan | topoOrientationFor (const DtVector &geocPos, const DtTaitBryan &geocOri) const |
| virtual DtVector | geocToLocalVector (const DtVector &geocLoc, const DtVector &geocVec) const |
| const SupportedPositionDistanceUnits & | supportedPositionDistanceUnits () const |
| bool | isSupportedPositionUnit (DistanceUnits unit) const |
| void | addSupportedPositionUnit (DistanceUnits unitToSupport) |
| void | removeSupportedPositionUnit (DistanceUnits unitToRemove) |
| const SupportedPositionAngularUnits & | supportedPositionAngularUnits () const |
| bool | isSupportedPositionUnit (OrientationUnits unit) const |
| void | addSupportedPositionUnit (OrientationUnits unitToSupport) |
| void | removeSupportedPositionUnit (OrientationUnits unitToRemove) |
| const SupportedCSForGridLines & | supportedCSForGridLines () const |
| bool | isSupportedCSForGridLines (const std::string &cs) const |
| void | addSupportedCSForGridLines (const std::string &cs) |
| void | removeSupportedCSForGridLines (const std::string &cs) |
Static Public Attributes | |
| static const CoordSys | CoordSysSNG |
Static Protected Member Functions | |
| static void | convertWGS84ToSNG (const DtVector &InVector, DtVector &OutVector) |
| static void | convertSNGToWGS84 (const DtVector &InVecPos, DtVector &OutVecPos) |
| SngCoordinateDisplay::SngCoordinateDisplay | ( | const makVrv::DtCoordinateSystem & | cs | ) |
CTOR.
|
virtual |
Get the x units for this coordinate display (Meters)
Implements makVrv::DtCoordinateDisplay.
|
virtual |
Get the y units for this coordinate display (Meters)
Implements makVrv::DtCoordinateDisplay.
|
virtual |
Get the z units for this coordinate display (Meters)
Implements makVrv::DtCoordinateDisplay.
|
virtual |
Return the label that will be used for x values in the GUI ("E ")
Implements makVrv::DtCoordinateDisplay.
|
virtual |
Return the label that will be used for y values in the GUI ("N " )
Implements makVrv::DtCoordinateDisplay.
|
virtual |
Return the label that will be used for z values in the GUI ("Alt " )
Implements makVrv::DtCoordinateDisplay.
|
overridevirtual |
Get the (numeric) label for a north/south grid line at geocPos.
| unit | The distance unit for the label. |
| geocPos | The geocentric position of the grid line. |
| decimals | The number of decimal places to display. |
| gridSpacing | The spacing between grid lines. |
| minimal | Ignored, this coordinate display does not have a 'minimal' gridline label |
Reimplemented from makVrv::DtCoordinateDisplay.
|
overridevirtual |
Get the (numeric) label for an east/west grid line at geocPos.
| unit | The distance unit for the label. |
| geocPos | The geocentric position of the grid line. |
| decimals | The number of decimal places to display. |
| gridSpacing | The spacing between grid lines. |
| minimal | Ignored, this coordinate display does not have a 'minimal' gridline label |
Reimplemented from makVrv::DtCoordinateDisplay.
|
overridevirtual |
Convert the specified geocPos to an x/y/z list of values, using the specified distance unit (m, ft, etc) and the decimal precision indicated.
Implements makVrv::DtCoordinateDisplay.
|
overridevirtual |
Convert the geocentric position to a vector of notated strings.
| unit | The distance unit of the values passed in |
| unitNotation | The notation that corresponds to the distance unit |
| geocPos | The geocentric position to convert |
| decimals | The number of decimal places to include |
| minimal | Ignored, this coordinate display does not have a 'minimal' notated string |
Implements makVrv::DtCoordinateDisplay.
|
virtual |
Convert a local position in x,y,z string form to geocentric coordinates, given that the x and y strings represent distUnits and the z value represents altUnits.
Implements makVrv::DtCoordinateDisplay.
|
virtual |
The name of this coordinate display (which will appear in combo boxes in the GUI.
Implements makVrv::DtCoordinateDisplay.
|
virtual |
Clone a copy of this coordinate display object.
Implements makVrv::DtCoordinateDisplay.
|
virtual |
Conversion function for local to geocentric conversion.
Implements makVrv::DtCoordinateDisplay.
|
virtual |
Heading pitch and roll function.
Implements makVrv::DtCoordinateDisplay.
|
virtual |
Orientation function.
Implements makVrv::DtCoordinateDisplay.
| DtTaitBryan SngCoordinateDisplay::orientationFor | ( | const DtVector & | location, |
| const DtTaitBryan & | geocOri, | ||
| bool | local | ||
| ) | const |
Orientation function.
|
virtual |
Regular expression validators for coordinate input.
Implements makVrv::DtCoordinateDisplay.
|
staticprotected |
Convert from WGS 84 Geocentric to Swiss National Grid (SNG)
|
staticprotected |
Convert from Swiss National Grid (SNG) to WGS 84 Geocentric.
|
static |