VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtUtmCoordinateDisplay.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (c) 2011 MaK Technologies, Inc.
3  * All rights reserved.
4  ********************************************************************/
5 /********************************************************************
6  * $RCSfile: DtUtmCoordinateDisplay.h,v $ $Revision: 1.8 $ $State: Exp $
7  ********************************************************************/
8 
12 
13 #pragma once
15 
16 class DtDcm;
17 
18 namespace makVrv
19 {
20 
24  {
25  public:
26 
28 
29  virtual ~DtUtmCoordinateDisplay();
30 
31  DtCoordinateDisplay* clone() const;
32 
33  virtual DtUnicode name();
34 
37 
40 
43 
44  virtual DtUnicode xAxisLabel();
45  virtual DtUnicode yAxisLabel();
46  virtual DtUnicode zAxisLabel();
47 
52  virtual DtUnicode gridBoxLabel(const DtVector& lowerLeftGeocPos,
53  const DtVector& upperRightGeocPos );
54 
56  virtual DtUnicode northSouthGridLabel(
58  const DtVector& geocPos, int decimals, double gridSpacing );
59 
61  virtual DtUnicode eastWestGridLabel(
63  const DtVector& geocPos, int decimals, double gridSpacing );
64 
65  virtual void shiftGridLineAnchors( double xSpacing, double ySpacing,
66  double& shiftX, double& shifY );
67 
68  virtual bool usesDecimalsOnGridLines() const;
69 
71  virtual std::vector<std::string> convertPositionToStringList(
73  const DtVector& geocPos, int decimals );
74 
78  virtual void convertToGeocentric(
79  const std::string& x, const std::string& y, const std::string& z,
82  DtVector& vector );
83 
86  virtual DtVector convertFromGeocentric( const DtVector& geoc ) const;
87 
89  virtual DtTaitBryan localOrientationFor(
90  const DtVector& location, const DtTaitBryan& geocOri ) const;
91  virtual DtTaitBryan headingPitchRollFor(
92  const DtVector& location, const DtTaitBryan& geocOri ) const;
93 
95  virtual DtDcm geocToUtmMatrix( const DtVector& geocLoc ) const;
96  virtual DtDcm utmToGeocMatrix( const DtVector& geocLoc ) const;
97 
99  virtual bool isNonUtmDatabase() const;
100  virtual bool isGlobalUtmInitialized() const;
101 
102  virtual double scaleFactor() const;
103 
106  virtual void regularExpressionValidator( std::string& x,
107  std::string& y, std::string& z );
108 
109  protected:
110  // Helper to convert geoc position to utm ([0], [1]) and altitude ([2])
111  virtual void geocToUtm( const DtVector& geocPos, DtVector& utmPos, DtUnicode& zone,
112  int zoneToUse=0 );
113 
114  virtual DtUnicode formatGridLabel( double value );
115  };
116 
117 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)