?? geolayers.h
字號(hào):
// 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; //圖層是否可見(jiàn),1表示可見(jiàn),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);
//存儲(chǔ)的點(diǎn),線,面,注記
vector<CGeoPoint> m_vecPoint;
vector<CGeoPolyline> m_vecPolyline;
vector<CGeoPolygon> m_vecPolygon;
//該層上點(diǎn),線,面的繪制模式
protected:
//點(diǎn)
CGeoPen m_cPTPen;
CGeoBrush m_cPTBrush;
int m_nCircle; //畫(huà)成圓的半徑
//線
CGeoPen m_cPLPen;
//面
CGeoPen m_cPGPen;
CGeoBrush m_cPGBrush;
};
#endif // !defined(AFX_GEOLAYERS_H__C5239124_DC3A_49D7_907D_8CB854BCCB19__INCLUDED_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -