?? geopoint.cpp
字號:
// GeoPoint.cpp: implementation of the CGeoPoint class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "DigitalMap.h"
#include "GeoPoint.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CGeoPoint::CGeoPoint()
{
}
CGeoPoint::CGeoPoint(CGeoPointXY cGeoPtXY,int attriCode)
{
m_ptXY.X = cGeoPtXY.X;
m_ptXY.Y = cGeoPtXY.Y;
m_attriCode = attriCode;
}
CGeoPoint::~CGeoPoint()
{
}
void CGeoPoint::SetPointXY(CGeoPointXY ptXY) //設置點位置
{
m_ptXY.X = ptXY.X;
m_ptXY.Y = ptXY.Y;
}
void CGeoPoint::GetPointXY(CGeoPointXY &ptXY) //取出點位置
{
ptXY.X = m_ptXY.X;
ptXY.Y = m_ptXY.Y;
}
void CGeoPoint::Draw(CDC *pDC,BOOL bDisplay,int nCircle) //畫點
{
CGeoPointXY cGeoPtXY;
GetPointXY(cGeoPtXY);
float x = cGeoPtXY.X;
float y = cGeoPtXY.Y;
if(bDisplay==0)//就是擦除圖像
return;//pDC->SetROP2(R2_NOTXORPEN);
pDC->Ellipse(x-nCircle,y-nCircle,x+nCircle,y+nCircle);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -