UNCLASSIFIED

GeographicTranslator
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
PolarStereographicScaleFactorParameters.cpp
Go to the documentation of this file.
1 // CLASSIFICATION: UNCLASSIFIED
2 
4 
5 
6 using namespace MSP::CCS;
7 
8 
10 CoordinateSystemParameters( CoordinateType::polarStereographicScaleFactor ),
11  _centralMeridian( 0 ),
12  _scaleFactor( 0 ),
13  _hemisphere( 'N' ),
14  _falseEasting( 0 ),
15  _falseNorthing( 0 )
16 {
17 }
18 
19 
21  CoordinateSystemParameters( _coordinateType ),
22  _centralMeridian( 0 ),
23  _scaleFactor( 0 ),
24  _hemisphere( 'N' ),
25  _falseEasting( 0 ),
26  _falseNorthing( 0 )
27 {
28 }
29 
30 
31 PolarStereographicScaleFactorParameters::PolarStereographicScaleFactorParameters( CoordinateType::Enum _coordinateType, double __centralMeridian, double __scaleFactor, char __hemisphere, double __falseEasting, double __falseNorthing ) :
32  CoordinateSystemParameters( _coordinateType ),
33  _centralMeridian( __centralMeridian ),
34  _scaleFactor( __scaleFactor ),
35  _hemisphere( __hemisphere ),
36  _falseEasting( __falseEasting ),
37  _falseNorthing( __falseNorthing )
38 {
39 }
40 
41 
43 {
45 
46  _centralMeridian = p._centralMeridian;
47  _scaleFactor = p._scaleFactor;
48  _hemisphere = p._hemisphere;
49  _falseEasting = p._falseEasting;
50  _falseNorthing = p._falseNorthing;
51 }
52 
53 
55 {
56  _centralMeridian = 0;
57  _scaleFactor = 0;
58  _hemisphere = 'N';
59  _falseEasting = 0;
60  _falseNorthing = 0;
61 }
62 
63 
65 {
66  if( this != &p )
67  {
69 
70  _centralMeridian = p._centralMeridian;
71  _scaleFactor = p._scaleFactor;
72  _hemisphere = p._hemisphere;
73  _falseEasting = p._falseEasting;
74  _falseNorthing = p._falseNorthing;
75  }
76 
77  return *this;
78 }
79 
80 
82 {
83  _centralMeridian = __centralMeridian;
84 }
85 
86 
88 {
89  _scaleFactor = __scaleFactor;
90 }
91 
92 
94 {
95  _hemisphere = __hemisphere;
96 }
97 
98 
100 {
101  _falseEasting = __falseEasting;
102 }
103 
104 
106 {
107  _falseNorthing = __falseNorthing;
108 }
109 
110 
112 {
113  return _centralMeridian;
114 }
115 
116 
118 {
119  return _scaleFactor;
120 }
121 
122 
124 {
125  return _hemisphere;
126 }
127 
128 
130 {
131  return _falseEasting;
132 }
133 
134 
136 {
137  return _falseNorthing;
138 }
139 
140 
141 
142 // CLASSIFICATION: UNCLASSIFIED