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

📄 pline.h

📁 用于地理信息系统(GIS)行业程序。 完整的鼠标交互式地图点、线、面的绘制
💻 H
字号:
#ifndef PLINE_H
#define PLINE_H

#include "Draw.h"
#include "GlobeFile.h"

//typedef struct 
//{
//	float x;  //x坐标
//	float y; //y坐标
//	float z; //z坐标,备用,可能为高程等信息 
//}PointStruct;
extern BOOL IsRectCross(float minX, float minY, float maxX, float maxY);

class CPline:public CDraw
{
protected:

	DECLARE_SERIAL(CPline)

	int m_PointNum;
	PointStruct* m_PointArray; //在构造函数中new ,在析构函数中delete
	BOOL m_bFill;	//bool不能用<<符号串行化,BOOL则能

public:
	CPline(){m_PointNum=0;}
	CPline(short colorPen,short colorBrush,short lineWide,
		short lineType,short layer,int idOnly,BOOL bDelete,
		int pointNum,PointStruct* pointArray,BOOL bFill);
	~CPline();
	
	virtual	void Draw(CDC *pDC,int drawMode1,int drawMode2,short colorPen);

	virtual void GetBoundRect(float& x1, float& y1, float& x2, float& y2);

	virtual void Serialize(CArchive& ar);
};

#endif  //end of PLINE_H






















⌨️ 快捷键说明

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