VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
geodeticCoord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 
7 #ifndef DtGeodeticCoord_H_
8 #define DtGeodeticCoord_H_
9 
10 #include "vlVector.h"
11 #include "vlMath.h"
12 #include "referenceEllipsoid.h"
13 #include <iosfwd>
14 
19 
20 
21 #ifdef DtUSE_UTILITIES_NAMESPACE
22 namespace DtUSE_UTILITIES_NAMESPACE
23 {
24 #endif
25 
30 {
31 public:
32 
36 
41  DtGeodeticCoord( double lat, double lon, double alt,
42  const DtReferenceEllipsoid* ellipse = DtGlobalEllipsoid() );
43 
45  virtual ~DtGeodeticCoord();
46 
48  DtGeodeticCoord( const DtGeodeticCoord& src );
49 
51  DtGeodeticCoord& operator=( const DtGeodeticCoord& src );
52 
56  virtual DtGeodeticCoord& setGeocentric( const DtVector& geocentric );
57 
60  virtual void getGeocentric( DtVector& geocentric ) const;
61 
65  virtual DtVector geocentric() const;
66 
67  virtual void printDataToStream(std::ostream &str) const;
68 
71  virtual void setLat( DtFloat64 lat );
72  virtual DtFloat64 lat() const;
73 
76  virtual void setLon( DtFloat64 lon );
77  virtual DtFloat64 lon() const;
78 
81  virtual void setAlt( DtFloat64 alt );
82  virtual DtFloat64 alt() const;
83 
84  virtual const DtMapDatum& mapDatum() const;
85 
86 protected:
88 };
89 
91 {
92  return (*this)[0];
93 }
94 
96 {
97  return (*this)[1];
98 }
99 
101 {
102  return (*this)[2];
103 }
104 
106 {
107  (*this)[0] = lat;
108 }
109 
111 {
112  (*this)[1] = lon;
113 }
114 
116 {
117  (*this)[2] = alt;
118 }
119 
120 DT_DLL_MATRIX std::ostream & operator << (std::ostream &str, const DtGeodeticCoord &sr);
121 
123 DT_DLL_MATRIX void DtGeocToGeod( const DtVector& in, DtGeodeticCoord& out );
124 
126 DT_DLL_MATRIX void DtGeodToGeoc( const DtGeodeticCoord& in, DtVector& out );
127 
128 #ifdef DtUSE_UTILITIES_NAMESPACE
129 }
130 #endif
131 
132 #endif
133 

Document ID: Generated on Mon Apr 8 04:49:21 EDT 2019 from SVN revision 197403
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)