UNCLASSIFIED

GeographicTranslator
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
MapProjection6Parameters.cpp
Go to the documentation of this file.
1 // CLASSIFICATION: UNCLASSIFIED
2 
4 
5 
6 using namespace MSP::CCS;
7 
8 
10 CoordinateSystemParameters( CoordinateType::albersEqualAreaConic ),
11  _centralMeridian( 0 ),
12  _originLatitude( 0),
13  _standardParallel1( 0 ),
14  _standardParallel2( 0 ),
15  _falseEasting( 0 ),
16  _falseNorthing( 0 )
17 {
18 }
19 
20 
22  CoordinateSystemParameters( _coordinateType ),
23  _centralMeridian( 0 ),
24  _originLatitude( 0),
25  _standardParallel1( 0 ),
26  _standardParallel2( 0 ),
27  _falseEasting( 0 ),
28  _falseNorthing( 0 )
29 {
30 }
31 
32 
33 MapProjection6Parameters::MapProjection6Parameters( CoordinateType::Enum _coordinateType, double __centralMeridian, double __originLatitude, double __standardParallel1, double __standardParallel2, double __falseEasting, double __falseNorthing ) :
34  CoordinateSystemParameters( _coordinateType ),
35  _centralMeridian( __centralMeridian ),
36  _originLatitude( __originLatitude ),
37  _standardParallel1( __standardParallel1 ),
38  _standardParallel2( __standardParallel2 ),
39  _falseEasting( __falseEasting ),
40  _falseNorthing( __falseNorthing )
41 {
42 }
43 
44 
46 {
48 
49  _centralMeridian = p._centralMeridian;
50  _originLatitude = p._originLatitude;
51  _standardParallel1 = p._standardParallel1;
52  _standardParallel2 = p._standardParallel2;
53  _falseEasting = p._falseEasting;
54  _falseNorthing = p._falseNorthing;
55 }
56 
57 
59 {
60  _centralMeridian = 0;
61  _originLatitude = 0;
62  _standardParallel1 = 0;
63  _standardParallel2 = 0;
64  _falseEasting = 0;
65  _falseNorthing = 0;
66 }
67 
68 
70 {
71  if( this != &p )
72  {
74 
75  _centralMeridian = p._centralMeridian;
76  _originLatitude = p._originLatitude;
77  _standardParallel1 = p._standardParallel1;
78  _standardParallel2 = p._standardParallel2;
79  _falseEasting = p._falseEasting;
80  _falseNorthing = p._falseNorthing;
81  }
82 
83  return *this;
84 }
85 
86 
87 void MapProjection6Parameters::setCentralMeridian( double __centralMeridian )
88 {
89  _centralMeridian = __centralMeridian;
90 }
91 
92 
93 void MapProjection6Parameters::setOriginLatitude( double __originLatitude )
94 {
95  _originLatitude = __originLatitude;
96 }
97 
98 
99 void MapProjection6Parameters::setStandardParallel1( double __standardParallel1 )
100 {
101  _standardParallel1 = __standardParallel1;
102 }
103 
104 
105 void MapProjection6Parameters::setStandardParallel2( double __standardParallel2 )
106 {
107  _standardParallel2 = __standardParallel2;
108 }
109 
110 
111 void MapProjection6Parameters::setFalseEasting( double __falseEasting )
112 {
113  _falseEasting = __falseEasting;
114 }
115 
116 
117 void MapProjection6Parameters::setFalseNorthing( double __falseNorthing )
118 {
119  _falseNorthing = __falseNorthing;
120 }
121 
122 
124 {
125  return _centralMeridian;
126 }
127 
128 
130 {
131  return _originLatitude;
132 }
133 
134 
136 {
137  return _standardParallel1;
138 }
139 
140 
142 {
143  return _standardParallel2;
144 }
145 
146 
148 {
149  return _falseEasting;
150 }
151 
152 
154 {
155  return _falseNorthing;
156 }
157 
158 
159 // CLASSIFICATION: UNCLASSIFIED