MapPoints.h
上传用户:bjslfz
上传日期:2022-07-25
资源大小:4430k
文件大小:1k
- /************************************************************
- 文件名: MapPoints.h
-
- 作者: 谢婧 Version : 1.0 Date: 2008/05/26
-
- 类描述: 点集合对象的管理
-
- 邮件地址:xiejing0707@163.com
- ***********************************************************/
- #ifndef _MAP_POINTS_H_
- #define _MAP_POINTS_H_
- #include "stdafx.h"
- #include "MapPoint.h"
- #include "MapRectangle.h"
- class CMapPoints:public CObject {
- DECLARE_DYNAMIC(CMapPoints)
- public:
- CMapPoints();
- CMapPoints(CMapPoints& points);
- ~CMapPoints();
- //Attribute
- public:
- long GetCount();
- CMapRectangle GetExtent();
- void SetExtent(CMapRectangle& exent);
- //operations
- public:
- CMapPoint* Get(long lIndex);
- void Add(CMapPoint* pPoint);
- void Set(long lIndex , CMapPoint* pPoint);
- void Remove(long lIndex);
- void Insert(long lndex , CMapPoint* pPoint);
- void Clear();
- CArray<CMapPoint*,CMapPoint*> m_Points; //存储点对象
- private:
- CMapRectangle m_Rectangle;
-
- };
- #endif //_MAP_POINTS_H_