geopolygon.h
来自「软件参考Windows操作系统下的画图程序」· C头文件 代码 · 共 46 行
H
46 行
// 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 + =
减小字号Ctrl + -
显示快捷键?