VR-Link API Documentation for HLA 1.3
 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 
virtual DtFloat64 alt() const
Definition: geodeticCoord.h:100
void DtGeocToGeod(const DtVector &in, DtGeodeticCoord &out)
This function is deprecated, and provided for backwards compatibility only!
std::ostream & operator<<(std::ostream &os, const Dt3dChord &chord)
Instances of DtGeodeticCoord are used to explicitly represent Geodetic coordinates.
Definition: geodeticCoord.h:29
DtMapDatums represent a spheroid model of the earth, with a data shift to facilitate easy conversion ...
Definition: mapDatum.h:50
Instances of this class are used to store a particular mapDatum and perform useful calculations based...
Definition: referenceEllipsoid.h:41
This file declares DtVector and DtVector32.
This file defines math constants and methods which may be useful in simulations.
Definition: vlVector.h:224
virtual void setLon(DtFloat64 lon)
Set/Get the longitude.
Definition: geodeticCoord.h:110
const DtReferenceEllipsoid * myEllipsoid
Definition: geodeticCoord.h:87
#define DT_DLL_MATRIX
Definition: vlMachineTypes.h:107
DtReferenceEllipsoid * DtGlobalEllipsoid()
Call this function to obtain a ptr to the global ellipsoid which is used for geodetic coord conversio...
virtual void setLat(DtFloat64 lat)
Set/Get the latitude.
Definition: geodeticCoord.h:105
virtual void setAlt(DtFloat64 alt)
Set/Get the altitude.
Definition: geodeticCoord.h:115
virtual DtFloat64 lat() const
Definition: geodeticCoord.h:90
void DtGeodToGeoc(const DtGeodeticCoord &in, DtVector &out)
This function is deprecated, and provided for backwards compatibility only!
virtual DtFloat64 lon() const
Definition: geodeticCoord.h:95
This file contains the declaration of DtReferenceEllipsoid and several helper functions.

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)