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

📄 geomap.cpp

📁 VC++开发广州市交通运输干线
💻 CPP
字号:
// GeoMap.cpp: implementation of the CGeoMap class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "DigitalMap.h"
#include "GeoMap.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CGeoMap::CGeoMap()
{

}

CGeoMap::~CGeoMap()
{

}

void CGeoMap::Draw(CDC *pDC)
{
	//依次对每一个层进行绘制
	int nLyerNums = m_vecLayers.size();
	//画面
	for(int i=0;i<nLyerNums;i++)
	{
		CGeoLayers cGeoLayers = m_vecLayers.at(i);
		cGeoLayers.DrawPolygon(pDC);
	}
	//画线
	for(int i=0;i<nLyerNums;i++)
	{
		CGeoLayers cGeoLayers = m_vecLayers.at(i);
		cGeoLayers.DrawPolyline(pDC);
	}
	//画点
	for(int i=0;i<nLyerNums;i++)
	{
		CGeoLayers cGeoLayers = m_vecLayers.at(i);
		cGeoLayers.DrawPoint(pDC);
	}
}

⌨️ 快捷键说明

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