- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# Y:/msp/devkits/temp_geotrans/master/geotrans3.1/CCS/src/dtcc/CoordinateSystemParameters/MapProjection3Parameters.cpp

Go to the documentation of this file.

    00001 // CLASSIFICATION: UNCLASSIFIED
    00002
    00003 #include "MapProjection3Parameters.h"
    00004
    00005
    00006 using namespace MSP::CCS;
    00007
    00008
    00009 MapProjection3Parameters::MapProjection3Parameters() :
    00010   CoordinateSystemParameters( CoordinateType::eckert4 ),
    00011   _centralMeridian( 0 ),
    00012   _falseEasting( 0 ),
    00013   _falseNorthing( 0 )
    00014 {
    00015 }
    00016
    00017
    00018 MapProjection3Parameters::MapProjection3Parameters( CoordinateType::Enum _coordinateType ) :
    00019   CoordinateSystemParameters( _coordinateType ),
    00020   _centralMeridian( 0 ),
    00021   _falseEasting( 0 ),
    00022   _falseNorthing( 0 )
    00023 {
    00024 }
    00025
    00026
    00027 MapProjection3Parameters::MapProjection3Parameters( CoordinateType::Enum _coordinateType, double __centralMeridian, double __falseEasting, double __falseNorthing ) :
    00028   CoordinateSystemParameters( _coordinateType ),
    00029   _centralMeridian( __centralMeridian ),
    00030   _falseEasting( __falseEasting ),
    00031   _falseNorthing( __falseNorthing )
    00032 {
    00033 }
    00034
    00035
    00036 MapProjection3Parameters::MapProjection3Parameters( const MapProjection3Parameters &p )
    00037 {
    00038   _coordinateType = p._coordinateType;
    00039
    00040   _centralMeridian = p._centralMeridian;
    00041   _falseEasting = p._falseEasting;
    00042   _falseNorthing = p._falseNorthing;
    00043 }
    00044
    00045
    00046 MapProjection3Parameters::~MapProjection3Parameters()
    00047 {
    00048   _centralMeridian = 0;
    00049   _falseEasting = 0;
    00050   _falseNorthing = 0;
    00051 }
    00052
    00053
    00054 MapProjection3Parameters& MapProjection3Parameters::operator=( const MapProjection3Parameters &p )
    00055 {
    00056   if( this != &p )
    00057   {
    00058     _coordinateType = p._coordinateType;
    00059
    00060     _centralMeridian = p._centralMeridian;
    00061     _falseEasting = p._falseEasting;
    00062     _falseNorthing = p._falseNorthing;
    00063   }
    00064
    00065   return *this;
    00066 }
    00067
    00068
    00069 void MapProjection3Parameters::setCentralMeridian( double __centralMeridian )
    00070 {
    00071   _centralMeridian = __centralMeridian;
    00072 }
    00073
    00074
    00075 void MapProjection3Parameters::setFalseEasting( double __falseEasting )
    00076 {
    00077   _falseEasting = __falseEasting;
    00078 }
    00079
    00080
    00081 void MapProjection3Parameters::setFalseNorthing( double __falseNorthing )
    00082 {
    00083   _falseNorthing = __falseNorthing;
    00084 }
    00085
    00086
    00087 double MapProjection3Parameters::centralMeridian() const
    00088 {
    00089   return _centralMeridian;
    00090 }
    00091
    00092
    00093 double MapProjection3Parameters::falseEasting() const
    00094 {
    00095   return _falseEasting;
    00096 }
    00097
    00098
    00099 double MapProjection3Parameters::falseNorthing() const
    00100 {
    00101   return _falseNorthing;
    00102 }
    00103
    00104
    00105
    00106 // CLASSIFICATION: UNCLASSIFIED