VR-Vantage 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sngDisplay.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
9 
11 
15 {
16 public:
17 
18  // Extend the CoordSys enumeration
19  static const CoordSys CoordSysSNG =
21 
24 
27 
30 
33 
35  virtual makVrv::DtUnicode xAxisLabel();
36 
38  virtual makVrv::DtUnicode yAxisLabel();
39 
41  virtual makVrv::DtUnicode zAxisLabel();
42 
45  const DtVector& geocPos, int decimals, double gridSpacing );
46 
49  const DtVector& geocPos, int decimals, double gridSpacing );
50 
54  virtual std::vector<std::string> convertPositionToStringList(
55  DistanceUnits unit, const DtVector& geocPos, int decimals);
56 
60  virtual void convertToGeocentric( const std::string& x,
61  const std::string& y, const std::string& z, DistanceUnits distUnits,
62  DistanceUnits altUnits, DtVector& vector);
63 
66  virtual makVrv::DtUnicode name();
67 
69  virtual makVrv::DtCoordinateDisplay* clone() const;
70 
72  DtVector convertFromGeocentric( const DtVector& geoc ) const;
73 
75  DtTaitBryan headingPitchRollFor( const DtVector& location,
76  const DtTaitBryan& geocOri ) const;
77 
79  DtTaitBryan localOrientationFor( const DtVector& location,
80  const DtTaitBryan& geocOri ) const;
81 
83  DtTaitBryan orientationFor( const DtVector& location,
84  const DtTaitBryan& geocOri, bool local ) const;
85 
87  void regularExpressionValidator( std::string& x, std::string& y,
88  std::string& z );
89 
90 protected:
91 
93  static void convertWGS84ToSNG(const DtVector& InVector,
94  DtVector& OutVector);
95 
97  static void convertSNGToWGS84(const DtVector& InVecPos,
98  DtVector& OutVecPos );
99 };
100 
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.
A unicode string.
Definition: DtUnicode.h:33
The SngCoordinateDisplay class provides the ability for VR-Vantage to display Swiss grid geographic c...
Definition: sngDisplay.h:14
DtTaitBryan headingPitchRollFor(const DtVector &location, const DtTaitBryan &geocOri) const
Heading pitch and roll function.
Abstract interface class for all coordinate system displays.
Definition: DtCoordinateDisplay.h:27
DtVector convertFromGeocentric(const DtVector &geoc) const
Conversion function for local to geocentric conversion.
void regularExpressionValidator(std::string &x, std::string &y, std::string &z)
Regular expression validators for coordinate input.
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 strin...
DistanceUnits yUnitsFor(DistanceUnits unit)
Get the y units for this coordinate display (Meters)
static const CoordSys CoordSysSNG
Definition: sngDisplay.h:19
DistanceUnits xUnitsFor(DistanceUnits unit)
Get the x units for this coordinate display (Meters)
CoordSys
Enumeration of the different coordinate system types.
Definition: DtDisplayUnitsSettingsRecord.h:30
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.
Contains the DtDatabaseCoordinateSystem class declaration.
DistanceUnits
Enumeration of the different distance units.
Definition: DtDisplayUnitsSettingsRecord.h:53
x y t t *t x y t t t x y t t t x *y t *t t x *y t *t t x y t t t x y t t t x *y t *t t x *y t *t *t x y *z t t *t t x *y *z t *t *t t x y z t t t t x *y z t *t t t x * y(z *w))
virtual makVrv::DtUnicode name()
The name of this coordinate display (which will appear in combo boxes in the GUI. ...
Definition: DtDisplayUnitsSettingsRecord.h:38
static void convertSNGToWGS84(const DtVector &InVecPos, DtVector &OutVecPos)
Convert from Swiss National Grid (SNG) to WGS 84 Geocentric.
x y * z
Definition: exprtk.hpp:9133
SngCoordinateDisplay(const makVrv::DtCoordinateSystem &cs)
CTOR.
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
virtual makVrv::DtUnicode xAxisLabel()
Return the label that will be used for x values in the GUI (&quot;E &quot;)
x y t t *t x y t t t x y t t t x *y t *t t x *y t *t t x y t t t x y t t t x(y+z)
DtTaitBryan localOrientationFor(const DtVector &location, const DtTaitBryan &geocOri) const
Orientation function.
virtual makVrv::DtCoordinateDisplay * clone() const
Clone a copy of this coordinate display object.
DistanceUnits zUnitsFor(DistanceUnits unit)
Get the z units for this coordinate display (Meters)
DtTaitBryan orientationFor(const DtVector &location, const DtTaitBryan &geocOri, bool local) const
Orientation function.
static void convertWGS84ToSNG(const DtVector &InVector, DtVector &OutVector)
Convert from WGS 84 Geocentric to Swiss National Grid (SNG)
virtual makVrv::DtUnicode zAxisLabel()
Return the label that will be used for z values in the GUI (&quot;Alt &quot; )
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...
virtual makVrv::DtUnicode yAxisLabel()
Return the label that will be used for y values in the GUI (&quot;N &quot; )


Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)