a
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
// SptRecord.cpp: implementation of the CSptRecord class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "SptRecord.h"
|
||||
#include "Constant.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Construction/Destruction
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
CSptRecord::CSptRecord()
|
||||
{
|
||||
m_colorREF = RGB(255, 255, 255);
|
||||
|
||||
m_bIsSel = FALSE;
|
||||
|
||||
m_iTsn = (int)VAL_ZERO;
|
||||
m_iC1 = (int)VAL_ZERO;
|
||||
m_iC2 = (int)VAL_ZERO;
|
||||
m_iP1 = (int)VAL_ZERO;
|
||||
m_iP2 = (int)VAL_ZERO;
|
||||
|
||||
m_fA = (float)VAL_ZERO;
|
||||
m_fB = (float)VAL_ZERO;
|
||||
m_fX = (float)VAL_ZERO;
|
||||
m_fY = (float)VAL_ZERO;
|
||||
|
||||
m_fK = (float)VAL_ZERO;
|
||||
m_iN = (int)VAL_ZERO;
|
||||
|
||||
m_iLevel = (int)VAL_ZERO;
|
||||
m_iPtNum = (int)VAL_ZERO;
|
||||
m_fSptXPos = 0;
|
||||
}
|
||||
|
||||
CSptRecord::~CSptRecord()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool CSptRecord::PtInRegion(CPoint point)
|
||||
{
|
||||
float fDistance = (point.x-m_fPtCenterX)*(point.x-m_fPtCenterX) + (point.y-m_fPtCenterY)*(point.y-m_fPtCenterY);
|
||||
|
||||
if (fDistance <= (m_fPtRadius*m_fPtRadius))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user