00001 00021 #ifndef INC_GRE_VIEWPLACE_H 00022 #define INC_GRE_VIEWPLACE_H 00023 00024 #ifndef INC_MI32_SPATREF_H 00025 #include <mi32/spatref.h> 00026 #endif 00027 00028 #ifndef INC_MI32_POINT_H 00029 #include <mi32/point.h> 00030 #endif 00031 00032 00033 namespace GRE { 00034 //=================================================================================================================== 00035 00039 class VIEWPLACE { 00040 public: 00041 00042 VIEWPLACE (); 00043 00044 ~VIEWPLACE (); 00045 00047 const SPATREF::COORDREFSYS& GetCoordRefSys ( 00048 ) const { return (m_CRS); } 00049 00051 const DPOINT2D& GetPoint ( 00052 ) const { return (m_Point); } 00053 00055 double GetSize ( 00056 ) const { return (m_Size); } 00057 00059 const UOM::UNIT GetSizeUnit ( 00060 ) const { return (m_SizeUnit); } 00061 00063 bool IsEqual ( 00064 const VIEWPLACE& rhs 00065 ) const; 00066 00068 void SetPoint ( 00069 const SPATREF::COORDREFSYS& CoordRefSys, 00070 const DPOINT2D& Point 00071 ) { m_CRS = CoordRefSys; m_Point = Point; } 00072 00074 void SetPoint ( 00075 const DPOINT2D& Point 00076 ) { m_Point = Point; } 00077 00079 void SetSize ( 00080 UOM::UNIT& SizeUnit, 00081 double Size 00082 ) { m_SizeUnit = SizeUnit; m_Size = Size; } 00083 00085 void SetSize ( 00086 double Size 00087 ) { m_Size = Size; } 00088 00089 private: 00090 #ifndef GENERATING_DOXYGEN_OUTPUT 00091 SPATREF::COORDREFSYS m_CRS; 00092 DPOINT2D m_Point; 00093 UOM::UNIT m_SizeUnit; 00094 double m_Size; 00095 #endif 00096 }; 00097 00098 inline bool operator== ( 00099 const VIEWPLACE& lhs, 00100 const VIEWPLACE& rhs 00101 ) { 00102 return (lhs.IsEqual(rhs)); 00103 } 00104 00105 inline bool operator!= ( 00106 const VIEWPLACE& lhs, 00107 const VIEWPLACE& rhs 00108 ) { 00109 return (!lhs.IsEqual(rhs)); 00110 } 00111 00112 //=================================================================================================================== 00113 } // End namespace GRE 00114 00115 #endif // INC_GRE_VIEWPLACE_H
1.6.1