00001 #ifndef POINT_2D_HPP
00002 #define POINT_2D_HPP
00003
00004 #include "jmath/jblas.hpp"
00005 #include <iostream>
00006
00007 namespace jafar {
00009 namespace model3d {
00010
00015 class Point2D
00016 {
00017 public:
00018 enum STATE {BAD_POINT=0, GOOD_POINT=1};
00019
00020
00021 Point2D();
00022 virtual ~Point2D(){};
00024 Point2D(const Point2D&);
00026 Point2D(int x, int y);
00028 Point2D& operator=(const Point2D&);
00029
00033 inline bool isGoodPoint(){ return state==GOOD_POINT;}
00034
00035 inline int x() const {return m_x;}
00036 inline int y() const {return m_y;}
00037
00038
00040 void setCoord(int x, int y);
00041
00043 virtual void clear();
00044
00046 int m_x, m_y;
00047
00051 Point2D::STATE state;
00052 };
00053
00054 }
00055 }
00056
00057 #endif // POINT_2D_HPP