Initial
This commit is contained in:
35
meshwrp/polypnt.hpp
Normal file
35
meshwrp/polypnt.hpp
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef _MESHWRP_POLYPOINT_HPP_
|
||||
#define _MESHWRP_POLYPOINT_HPP_
|
||||
#ifndef _COMMON_GDIPOINT_HPP_
|
||||
#include <common/gdipoint.hpp>
|
||||
#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
|
||||
Reference in New Issue
Block a user