#ifndef _MESHWRP_POLYPOINT_HPP_ #define _MESHWRP_POLYPOINT_HPP_ #ifndef _COMMON_GDIPOINT_HPP_ #include #endif class PolyPoint { public: enum {MaxPoint=4}; PolyPoint(void); PolyPoint(const PolyPoint &somePolyPoint); virtual ~PolyPoint(); GDIPoint &operator[](unsigned point); private: GDIPoint mPolyPoint[MaxPoint]; }; inline PolyPoint::PolyPoint(void) { } inline PolyPoint::~PolyPoint() { } inline GDIPoint &PolyPoint::operator[](unsigned point) { if(point>=MaxPoint)return mPolyPoint[MaxPoint-1]; return mPolyPoint[point]; } #endif