geoobject.cpp

来自「VC++开发广州市交通运输干线」· C++ 代码 · 共 46 行

CPP
46
字号
// GeoObject.cpp: implementation of the CGeoObject class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "DigitalMap.h"
#include "GeoObject.h"

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

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

CGeoObject::CGeoObject()
{

}

CGeoObject::~CGeoObject()
{

}


void CGeoObject::SetAttriCode(int attriCode)
{
	m_attriCode = attriCode;
}

void CGeoObject::GetAttriCode(int &attriCode)
{
	attriCode = m_attriCode;
}

BOOL CGeoRect::PtInGeoRect(POINT mousepoint)
{
	if((mousepoint.x>left)&&(mousepoint.x<right)&&(mousepoint.y>bottom)&&(mousepoint.y<top))
		return true;
	return false;
}

⌨️ 快捷键说明

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