MapPoint.h
上传用户:bjslfz
上传日期:2022-07-25
资源大小:4430k
文件大小:1k
- /************************************************************
- 文件名: MapPoint.h
-
- 作者: 谢婧 Version : 1.0 Date: 2008/05/26
-
- 类描述: 对单个点对象的管理
-
- 邮件地址:xiejing0707@163.com
- ***********************************************************/
- #ifndef _MAP_POINT_H_
- #define _MAP_POINT_H_
- class CMapPoint:public CObject {
- DECLARE_DYNAMIC(CMapPoint)
- public:
- CMapPoint();
- CMapPoint(CMapPoint& pt);
- virtual ~CMapPoint();
- public:
- void SetX(double& dbX ) { m_dbX = dbX;};
- void SetY(double& dbY ) { m_dbY = dbY;};
- void SetIndex(unsigned int uiIndex ) { m_uiIndex = uiIndex ; };
- unsigned int GetIndex() { return m_uiIndex; };
- void SetStatus(bool& bStatus) { m_bStatus = bStatus;};
- double GetX() { return m_dbX;};
- double GetY() { return m_dbY;};
- double Distance(CMapPoint& pt );
- bool GetStatus() { return m_bStatus;};
- bool IsEqual(CMapPoint& pt );
- bool IsPointInLine(CMapPoint& p1 , CMapPoint& p2 );
-
- private:
- bool m_bStatus; //0---非选中状态, 1---选中状态
-
- unsigned int m_uiIndex; //索引值
- double m_dbX;
- double m_dbY;
- CString m_csID;
- };
- #endif //_MAP_POINT_H_