VR-Forces 4.1 Class Documentation
DtMgrsCoordinateDisplay.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (c) 2011 MaK Technologies, Inc.
3  * All rights reserved.
4  ********************************************************************/
5 /********************************************************************
6  * $RCSfile: DtMgrsCoordinateDisplay.h,v $ $Revision: 1.8 $ $State: Exp $
7  ********************************************************************/
8 
12 
13 #pragma once
15 
16 class DtSpheroid;
17 
18 namespace makVrv
19 {
20 
25  {
26  public:
27 
29 
30  virtual ~DtMgrsCoordinateDisplay();
31 
32  DtCoordinateDisplay* clone() const;
33 
34  virtual DtUnicode name();
35 
38 
41 
44 
45  virtual DtUnicode xAxisLabel();
46  virtual DtUnicode yAxisLabel();
47  virtual DtUnicode zAxisLabel();
48 
53  virtual DtUnicode gridBoxLabel(const DtVector& lowerLeftGeocPos,
54  const DtVector& upperRightGeocPos );
55 
57  virtual DtUnicode northSouthGridLabel(
59  const DtVector& geocPos, int decimals, double gridSpacing );
60 
62  virtual DtUnicode eastWestGridLabel(
64  const DtVector& geocPos, int decimals, double gridSpacing );
65 
66  virtual bool clipXToGrid( double inStartX, double inEndX, double constantY,
67  double& clippedStartX, double& clippedEndX );
68 
70  virtual bool clipYToGrid( double inStartY, double inEndY, double constantX,
71  double& clippedStartY, double& clippedEndY );
72 
73  // Maximum grid spacing allowed. Constrain to 100,000 (one map sheet)
74  virtual double maxGridSpacing() const;
75 
76  // Minimum grid spacing allowed. Constrain to 1 meter
77  virtual double minGridSpacing() const;
78 
79  virtual std::vector<std::string> convertPositionToStringList(
81  const DtVector& geocPos, int decimals );
82 
86  virtual void convertToGeocentric(
87  const std::string& x, const std::string& y, const std::string& z,
90  DtVector& vector );
91 
94  virtual void regularExpressionValidator( std::string& x,
95  std::string& y, std::string& z );
96 
97  protected:
98 
100  virtual void initializeMilGridEllipsoid();
101 
102  protected:
103 
105  static bool spheroidsEqual( const DtSpheroid& sph1, const DtSpheroid& sph2 );
106 
107  };
108 
109 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)