UNCLASSIFIED

GeographicTranslator
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
LocalCartesianParameters.cpp
Go to the documentation of this file.
1 // CLASSIFICATION: UNCLASSIFIED
2 
4 
5 
6 using namespace MSP::CCS;
7 
8 
11  _longitude( 0 ),
12  _latitude( 0 ),
13  _height( 0 ),
14  _orientation( 0 )
15 {
16 }
17 
18 
20  CoordinateSystemParameters( _coordinateType ),
21  _longitude( 0 ),
22  _latitude( 0 ),
23  _height( 0 ),
24  _orientation( 0 )
25 {
26 }
27 
28 
29 LocalCartesianParameters::LocalCartesianParameters( CoordinateType::Enum _coordinateType, double __longitude, double __latitude, double __height, double __orientation ) :
30  CoordinateSystemParameters( _coordinateType ),
31  _longitude( __longitude ),
32  _latitude( __latitude ),
33  _height( __height ),
34  _orientation( __orientation )
35 {
36 }
37 
38 
40 {
42 
43  _longitude = lcp._longitude;
44  _latitude = lcp._latitude;
45  _height = lcp._height;
46  _orientation = lcp._orientation;
47 }
48 
49 
51 {
52  _longitude = 0;
53  _latitude = 0;
54  _height = 0;
55  _orientation = 0;
56 }
57 
58 
60 {
61  if( this != &lcp )
62  {
64 
65  _longitude = lcp._longitude;
66  _latitude = lcp._latitude;
67  _height = lcp._height;
68  _orientation = lcp._orientation;
69  }
70 
71  return *this;
72 }
73 
74 
75 void LocalCartesianParameters::setLongitude( double __longitude )
76 {
77  _longitude = __longitude;
78 }
79 
80 
81 void LocalCartesianParameters::setLatitude( double __latitude )
82 {
83  _latitude = __latitude;
84 }
85 
86 
87 void LocalCartesianParameters::setHeight( double __height )
88 {
89  _height = __height;
90 }
91 
92 
93 void LocalCartesianParameters::setOrientation( double __orientation )
94 {
95  _orientation = __orientation;
96 }
97 
98 
100 {
101  return _longitude;
102 }
103 
104 
106 {
107  return _latitude;
108 }
109 
110 
112 {
113  return _height;
114 }
115 
116 
118 {
119  return _orientation;
120 }
121 
122 
123 
124 // CLASSIFICATION: UNCLASSIFIED