VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
matrix
geodCoord.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 "
refEllipsoid.h
"
13
#include <iosfwd>
14
19
20
21
#ifdef DtUSE_UTILITIES_NAMESPACE
22
namespace
DtUSE_UTILITIES_NAMESPACE
23
{
24
#endif
25
29
class
DT_DLL_MATRIX
DtGeodeticCoord
:
public
DtVector
30
{
31
public
:
32
35
DtGeodeticCoord
(
const
DtReferenceEllipsoid
* ellipse =
DtGlobalEllipsoid
() );
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
:
85
const
DtReferenceEllipsoid
*
myEllipsoid
;
86
};
87
88
inline
DtFloat64
DtGeodeticCoord::lat
()
const
89
{
90
return
(*
this
)[0];
91
}
92
93
inline
DtFloat64
DtGeodeticCoord::lon
()
const
94
{
95
return
(*
this
)[1];
96
}
97
98
inline
DtFloat64
DtGeodeticCoord::alt
()
const
99
{
100
return
(*
this
)[2];
101
}
102
103
inline
void
DtGeodeticCoord::setLat
(
DtFloat64
lat )
104
{
105
(*this)[0] = lat;
106
}
107
108
inline
void
DtGeodeticCoord::setLon
(
DtFloat64
lon )
109
{
110
(*this)[1] = lon;
111
}
112
113
inline
void
DtGeodeticCoord::setAlt
(
DtFloat64
alt )
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 Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)