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

📄 geolayers.h

📁 VC++开发广州市交通运输干线
💻 H
字号:
// GeoLayers.h: interface for the CGeoLayers class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GEOLAYERS_H__C5239124_DC3A_49D7_907D_8CB854BCCB19__INCLUDED_)
#define AFX_GEOLAYERS_H__C5239124_DC3A_49D7_907D_8CB854BCCB19__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "IncluGeoH.h"
class CGeoLayers
{
public:
	void SetDisplay(BOOL bDisplay);
	void GetLayerName(CString &strName);
	void SetLayerName(CString strName);
	CGeoLayers();
	virtual ~CGeoLayers();
protected:
	CString m_strName;	//图层名称
	BOOL m_bDisplay;	//图层是否可见,1表示可见,0表示隐藏
public:
	void DrawPolygon(CDC *pDC);
	void DrawPolyline(CDC *pDC);
	void DrawPoint(CDC *pDC);
	BOOL GetDisplay();
	void SetPGPenBrush(CString strLyerName,CPen &pen,CBrush &brush);
	void SetPLPen(CString strLyerName,CPen &pen);
	void SetPTPenBrush(CString strLyerName,CPen &pen,CBrush &brush,int &nCircle);
	void Draw(CDC *pDC);
	//存储的点,线,面,注记
	vector<CGeoPoint> m_vecPoint;
	vector<CGeoPolyline> m_vecPolyline;
	vector<CGeoPolygon> m_vecPolygon;

	//该层上点,线,面的绘制模式
protected:
	//点
	CGeoPen m_cPTPen;
	CGeoBrush m_cPTBrush;
	int m_nCircle;	//画成圆的半径
	//线
	CGeoPen m_cPLPen;
	//面
	CGeoPen m_cPGPen;
	CGeoBrush m_cPGBrush;
};

#endif // !defined(AFX_GEOLAYERS_H__C5239124_DC3A_49D7_907D_8CB854BCCB19__INCLUDED_)

⌨️ 快捷键说明

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