⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 geopolygon.h

📁 软件参考Windows操作系统下的画图程序
💻 H
字号:
// GeoPolygon.h: interface for the GeoPolygon class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GEOPOLYGON_H__D5977F5E_9183_11D7_908B_00A00CC807C7__INCLUDED_)
#define AFX_GEOPOLYGON_H__D5977F5E_9183_11D7_908B_00A00CC807C7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//
//多边形类
//
#include "GeoObject.h"
#include <vector>   //STL
#include <iostream>
using namespace std;

typedef vector<CPoint> PointVector;
typedef PointVector::iterator PointVectItor;

class GeoPolygon : public GeoObject  
{
public:
	void UndoAdd();
	void SetClose();
	void UndoSetClose();
	int  GetSize() { return point.size(); }
	BOOL IsClose();
	GeoPolygon();
	GeoPolygon(PointVector pt);
	virtual ~GeoPolygon();
	void Draw(CDC &dc);
	PointVector &GetPolygonPoint()
	{
		return point;
	}
	void SetPolygonPoint( PointVector pt) { point = pt; }
	void AddPoint(CPoint pt);
	void Reset();
private:
	PointVector point;
};

#endif // !defined(AFX_GEOPOLYGON_H__D5977F5E_9183_11D7_908B_00A00CC807C7__INCLUDED_)

⌨️ 快捷键说明

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