VR-Forces 4.2 Class Documentation
List of all members | Public Member Functions | Static Public Attributes | Static Protected Member Functions
SngCoordinateDisplay Class Reference

The SngCoordinateDisplay class provides the ability for VR-Vantage to display Swiss grid geographic coordinate system. More...

Inheritance diagram for SngCoordinateDisplay:
Inheritance graph
[legend]

Public Member Functions

 SngCoordinateDisplay (const makVrv::DtCoordinateSystem &cs)
 CTOR.
DistanceUnits xUnitsFor (DistanceUnits unit)
 Get the x units for this coordinate display (Meters)
DistanceUnits yUnitsFor (DistanceUnits unit)
 Get the y units for this coordinate display (Meters)
DistanceUnits zUnitsFor (DistanceUnits unit)
 Get the z units for this coordinate display (Meters)
virtual makVrv::DtUnicode xAxisLabel ()
 Return the label that will be used for x values in the GUI ("E ")
virtual makVrv::DtUnicode yAxisLabel ()
 Return the label that will be used for y values in the GUI ("N " )
virtual makVrv::DtUnicode zAxisLabel ()
 Return the label that will be used for z values in the GUI ("Alt " )
virtual makVrv::DtUnicode northSouthGridLabel (DistanceUnits unit, const DtVector &geocPos, int decimals, double gridSpacing)
 Get the (numeric) label for a north/south grid line at geocPos.
virtual makVrv::DtUnicode eastWestGridLabel (DistanceUnits unit, const DtVector &geocPos, int decimals, double gridSpacing)
 Get the (numeric) label for an east/west grid line at geocPos.
virtual std::vector< std::string > convertPositionToStringList (DistanceUnits unit, const DtVector &geocPos, int decimals)
 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.
virtual void convertToGeocentric (const std::string &x, const std::string &y, const std::string &z, DistanceUnits distUnits, DistanceUnits altUnits, DtVector &vector)
 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.
virtual makVrv::DtUnicode name ()
 The name of this coordinate display (which will appear in combo boxes in the GUI.
virtual
makVrv::DtCoordinateDisplay * 
clone () const
 Clone a copy of this coordinate display object.
DtVector convertFromGeocentric (const DtVector &geoc) const
 Conversion function for local to geocentric conversion.
DtTaitBryan headingPitchRollFor (const DtVector &location, const DtTaitBryan &geocOri) const
 Heading pitch and roll function.
DtTaitBryan localOrientationFor (const DtVector &location, const DtTaitBryan &geocOri) const
 Orientation function.
DtTaitBryan orientationFor (const DtVector &location, const DtTaitBryan &geocOri, bool local) const
 Orientation function.
void regularExpressionValidator (std::string &x, std::string &y, std::string &z)
 Regular expression validators for coordinate input.

Static Public Attributes

static const CoordSys CoordSysSNG

Static Protected Member Functions

static void convertWGS84ToSNG (const DtVector &InVector, DtVector &OutVector)
 Convert from WGS 84 Geocentric to Swiss National Grid (SNG)
static void convertSNGToWGS84 (const DtVector &InVecPos, DtVector &OutVecPos)
 Convert from Swiss National Grid (SNG) to WGS 84 Geocentric.

Detailed Description

The SngCoordinateDisplay class provides the ability for VR-Vantage to display Swiss grid geographic coordinate system.

Constructor & Destructor Documentation

SngCoordinateDisplay::SngCoordinateDisplay ( const makVrv::DtCoordinateSystem &  cs)

CTOR.

Member Function Documentation

DistanceUnits SngCoordinateDisplay::xUnitsFor ( DistanceUnits  unit)

Get the x units for this coordinate display (Meters)

DistanceUnits SngCoordinateDisplay::yUnitsFor ( DistanceUnits  unit)

Get the y units for this coordinate display (Meters)

DistanceUnits SngCoordinateDisplay::zUnitsFor ( DistanceUnits  unit)

Get the z units for this coordinate display (Meters)

virtual makVrv::DtUnicode SngCoordinateDisplay::xAxisLabel ( )
virtual

Return the label that will be used for x values in the GUI ("E ")

virtual makVrv::DtUnicode SngCoordinateDisplay::yAxisLabel ( )
virtual

Return the label that will be used for y values in the GUI ("N " )

virtual makVrv::DtUnicode SngCoordinateDisplay::zAxisLabel ( )
virtual

Return the label that will be used for z values in the GUI ("Alt " )

virtual makVrv::DtUnicode SngCoordinateDisplay::northSouthGridLabel ( DistanceUnits  unit,
const DtVector geocPos,
int  decimals,
double  gridSpacing 
)
virtual

Get the (numeric) label for a north/south grid line at geocPos.

virtual makVrv::DtUnicode SngCoordinateDisplay::eastWestGridLabel ( DistanceUnits  unit,
const DtVector geocPos,
int  decimals,
double  gridSpacing 
)
virtual

Get the (numeric) label for an east/west grid line at geocPos.

virtual std::vector<std::string> SngCoordinateDisplay::convertPositionToStringList ( DistanceUnits  unit,
const DtVector geocPos,
int  decimals 
)
virtual

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.

virtual void SngCoordinateDisplay::convertToGeocentric ( const std::string &  x,
const std::string &  y,
const std::string &  z,
DistanceUnits  distUnits,
DistanceUnits  altUnits,
DtVector vector 
)
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.

virtual makVrv::DtUnicode SngCoordinateDisplay::name ( )
virtual

The name of this coordinate display (which will appear in combo boxes in the GUI.

virtual makVrv::DtCoordinateDisplay* SngCoordinateDisplay::clone ( ) const
virtual

Clone a copy of this coordinate display object.

DtVector SngCoordinateDisplay::convertFromGeocentric ( const DtVector geoc) const

Conversion function for local to geocentric conversion.

DtTaitBryan SngCoordinateDisplay::headingPitchRollFor ( const DtVector location,
const DtTaitBryan &  geocOri 
) const

Heading pitch and roll function.

DtTaitBryan SngCoordinateDisplay::localOrientationFor ( const DtVector location,
const DtTaitBryan &  geocOri 
) const

Orientation function.

DtTaitBryan SngCoordinateDisplay::orientationFor ( const DtVector location,
const DtTaitBryan &  geocOri,
bool  local 
) const

Orientation function.

void SngCoordinateDisplay::regularExpressionValidator ( std::string &  x,
std::string &  y,
std::string &  z 
)

Regular expression validators for coordinate input.

static void SngCoordinateDisplay::convertWGS84ToSNG ( const DtVector InVector,
DtVector OutVector 
)
staticprotected

Convert from WGS 84 Geocentric to Swiss National Grid (SNG)

static void SngCoordinateDisplay::convertSNGToWGS84 ( const DtVector InVecPos,
DtVector OutVecPos 
)
staticprotected

Convert from Swiss National Grid (SNG) to WGS 84 Geocentric.

Member Data Documentation

const CoordSys SngCoordinateDisplay::CoordSysSNG
static
Initial value:
makArchives::DtDisplayUnitsSettingsRecord::CoordSysUserStart

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)