geopolygon.h

来自「VC++开发广州市交通运输干线」· C头文件 代码 · 共 29 行

H
29
字号
// GeoPolygon.h: interface for the CGeoPolygon class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GEOPOLYGON_H__6D53BB5A_891C_4E8E_A6D8_36B8E7114A41__INCLUDED_)
#define AFX_GEOPOLYGON_H__6D53BB5A_891C_4E8E_A6D8_36B8E7114A41__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "GeoObject.h"

class CGeoPolygon : public CGeoObject  
{
public:
	CGeoRect m_rtMinRect;	//面对象的最小外接矩形
	void Draw(CDC *pDC,BOOL bDisplay);
	void SetPolygonXY(CGeoPointXY *ptXY,int pointNums);
	void GetPolygonXY(CGeoPointXY *ptXY,int &pointNums);
	CGeoPolygon();
	CGeoPolygon(CGeoPointXY *ptXY,int pointNums,int attriCode);//重载的CGeoPolygon构造函数
	virtual ~CGeoPolygon();
protected:
	vector<CGeoPointXY> m_vecPolyPoint;			//存储该折线一系列点
};

#endif // !defined(AFX_GEOPOLYGON_H__6D53BB5A_891C_4E8E_A6D8_36B8E7114A41__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?