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 
39  DtGeodeticCoord( double lat, double lon, double alt,
40  const DtReferenceEllipsoid* ellipse = DtGlobalEllipsoid() );
41 
43  virtual ~DtGeodeticCoord();
44 
46  DtGeodeticCoord( const DtGeodeticCoord& src );
47 
49  DtGeodeticCoord& operator=( const DtGeodeticCoord& src );
50 
54  virtual DtGeodeticCoord& setGeocentric( const DtVector& geocentric );
55 
58  virtual void getGeocentric( DtVector& geocentric ) const;
59 
63  virtual DtVector geocentric() const;
64 
65  virtual void printDataToStream(std::ostream &str) const;
66 
69  virtual void setLat( DtFloat64 lat );
70  virtual DtFloat64 lat() const;
71 
74  virtual void setLon( DtFloat64 lon );
75  virtual DtFloat64 lon() const;
76 
79  virtual void setAlt( DtFloat64 alt );
80  virtual DtFloat64 alt() const;
81 
82  virtual const DtMapDatum& mapDatum() const;
83 
84 protected:
86 };
87 
89 {
90  return (*this)[0];
91 }
92 
94 {
95  return (*this)[1];
96 }
97 
99 {
100  return (*this)[2];
101 }
102 
104 {
105  (*this)[0] = lat;
106 }
107 
109 {
110  (*this)[1] = lon;
111 }
112 
114 {
115  (*this)[2] = alt;
116 }
117 
118 DT_DLL_MATRIX std::ostream & operator << (std::ostream &str, const DtGeodeticCoord &sr);
119 
121 DT_DLL_MATRIX void DtGeocToGeod( const DtVector& in, DtGeodeticCoord& out );
122 
124 DT_DLL_MATRIX void DtGeodToGeoc( const DtGeodeticCoord& in, DtVector& out );
125 
126 #ifdef DtUSE_UTILITIES_NAMESPACE
127 }
128 #endif
129 
130 #endif
131 

Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)