VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGarsCoordinateDisplay.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (c) 2025 MaK Technologies, Inc.
3  * All rights reserved.
4  ********************************************************************/
5 
9 
10 #pragma once
11 #include <vrvUtil/vrvUtil.h>
13 
14 namespace makVrv
15 {
16 
26  {
27 
28  public:
31 
33  virtual ~DtGarsCoordinateDisplay();
34 
36  DtCoordinateDisplay* clone() const override;
37 
39  virtual DtUnicode name() const override;
40 
42  virtual DtUnicode northSouthGridLabel( OrientationUnits unit,
43  const DtVector& geocPos, int decimals, double gridSpacing, bool minimal) override;
44 
46  virtual DtUnicode eastWestGridLabel( OrientationUnits unit,
47  const DtVector& geocPos, int decimals, double gridSpacing, bool minimal) override;
48 
49  // Since GARS is non-cartesian, this has no meaning. Returns an empty ("") string
50  virtual DtUnicode xAxisLabel() const override;
51 
52  // Since GARS is non-cartesian, this has no meaning. Returns an empty ("") string
53  virtual DtUnicode yAxisLabel() const override;
54 
55 
56  // Maximum grid spacing allowed. Constrain to 15 minutes
57  virtual double maxGridSpacing() const override;
58 
59  // Minimum grid spacing allowed. Constrain to 5 minutes
60  virtual double minGridSpacing() const override;
61 
63  virtual bool usesDecimalsOnGridLines() const override;
64 
66  virtual DtUnicode gridBoxLabel(const DtVector& lowerLeftGeocPos,
67  const DtVector& upperRightGeocPos) override;
68 
72  virtual std::vector<std::string> convertPositionToStringList(
74  const DtVector& geocPos, int decimals ) const override;
75 
84  virtual std::vector<DtUnicode> convertPositionToNotatedStringList(
85  DistanceUnits unit, DtUnicode unitNotation, const DtVector& geocPos, int decimals, bool minimal = false) const override;
86 
95  virtual void convertToGeocentric(
96  const std::string& x, const std::string& y, const std::string& z,
99  DtVector& vector ) override;
100 
103  virtual void regularExpressionValidator( std::string& x,
104  std::string& y, std::string& z ) override;
105 
107  virtual void regularExpressionValidator(std::string& validatorString);
108 
109  protected:
110 
112  DtGarsCoordinateDisplay() = delete;
118  DtGarsCoordinateDisplay& operator=(const DtGarsCoordinateDisplay&) = delete;
120  DtGarsCoordinateDisplay& operator=(const DtGarsCoordinateDisplay&&) = delete;
121 
122  protected:
124  };
125 
126 }
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
The GARS coordinate display information for the GUI. GARS is the Global Area Reference System...
Definition: DtGarsCoordinateDisplay.h:24
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
Abstract interface class for all coordinate system displays.
Definition: DtCoordinateDisplay.h:24
bool myWarnGeocentricConversionOnce
Definition: DtGarsCoordinateDisplay.h:123
Contains DLL export macros.
DistanceUnits
Enumeration of the different distance units.
Definition: DtDisplayUnitsSettingsRecord.h:57
Contains the DtGeodeticDecCoordinateSystem class declaration.
The decimal geodetic coordinate display information for the GUI.
Definition: DtGeodeticDecCoordinateDisplay.h:19
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
OrientationUnits
Enumeration of the different orientation units.
Definition: DtDisplayUnitsSettingsRecord.h:102

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)