- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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

Go to the documentation of this file.

    00001 // CLASSIFICATION: UNCLASSIFIED
    00002
    00003 #include "LocalCartesianParameters.h"
    00004
    00005
    00006 using namespace MSP::CCS;
    00007
    00008
    00009 LocalCartesianParameters::LocalCartesianParameters() :
    00010 CoordinateSystemParameters( CoordinateType::localCartesian ),
    00011   _longitude( 0 ),
    00012   _latitude( 0 ),
    00013   _height( 0 ),
    00014   _orientation( 0 )
    00015 {
    00016 }
    00017
    00018
    00019 LocalCartesianParameters::LocalCartesianParameters( CoordinateType::Enum _coordinateType ) :
    00020   CoordinateSystemParameters( _coordinateType ),
    00021   _longitude( 0 ),
    00022   _latitude( 0 ),
    00023   _height( 0 ),
    00024   _orientation( 0 )
    00025 {
    00026 }
    00027
    00028
    00029 LocalCartesianParameters::LocalCartesianParameters( CoordinateType::Enum _coordinateType, double __longitude, double __latitude, double __height, double __orientation ) :
    00030   CoordinateSystemParameters( _coordinateType ),
    00031   _longitude( __longitude ),
    00032   _latitude( __latitude ),
    00033   _height( __height ),
    00034   _orientation( __orientation )
    00035 {
    00036 }
    00037
    00038
    00039 LocalCartesianParameters::LocalCartesianParameters( const LocalCartesianParameters &lcp )
    00040 {
    00041   _coordinateType = lcp._coordinateType;
    00042
    00043   _longitude = lcp._longitude;
    00044   _latitude = lcp._latitude;
    00045   _height = lcp._height;
    00046   _orientation = lcp._orientation;
    00047 }
    00048
    00049
    00050 LocalCartesianParameters::~LocalCartesianParameters()
    00051 {
    00052   _longitude = 0;
    00053   _latitude = 0;
    00054   _height = 0;
    00055   _orientation = 0;
    00056 }
    00057
    00058
    00059 LocalCartesianParameters& LocalCartesianParameters::operator=( const LocalCartesianParameters &lcp )
    00060 {
    00061   if( this != &lcp )
    00062   {
    00063     _coordinateType = lcp._coordinateType;
    00064
    00065     _longitude = lcp._longitude;
    00066     _latitude = lcp._latitude;
    00067     _height = lcp._height;
    00068     _orientation = lcp._orientation;
    00069   }
    00070
    00071   return *this;
    00072 }
    00073
    00074
    00075 void LocalCartesianParameters::setLongitude( double __longitude )
    00076 {
    00077   _longitude = __longitude;
    00078 }
    00079
    00080
    00081 void LocalCartesianParameters::setLatitude( double __latitude )
    00082 {
    00083   _latitude = __latitude;
    00084 }
    00085
    00086
    00087 void LocalCartesianParameters::setHeight( double __height )
    00088 {
    00089   _height = __height;
    00090 }
    00091
    00092
    00093 void LocalCartesianParameters::setOrientation( double __orientation )
    00094 {
    00095   _orientation = __orientation;
    00096 }
    00097
    00098
    00099 double LocalCartesianParameters::longitude() const
    00100 {
    00101   return _longitude;
    00102 }
    00103
    00104
    00105 double LocalCartesianParameters::latitude() const
    00106 {
    00107   return _latitude;
    00108 }
    00109
    00110
    00111 double LocalCartesianParameters::height() const
    00112 {
    00113   return _height;
    00114 }
    00115
    00116
    00117 double LocalCartesianParameters::orientation() const
    00118 {
    00119   return _orientation;
    00120 }
    00121
    00122
    00123
    00124 // CLASSIFICATION: UNCLASSIFIED