You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#include "StdAfx.h"
|
|
|
|
|
#include "SetPointMgr.h"
|
|
|
|
|
#include "SetPointMoveToCcd.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CSetPointMgr *gSetPointMgr = new CSetPointMgr;
|
|
|
|
|
CSetPointMgr::CSetPointMgr(void)
|
|
|
|
|
{
|
|
|
|
|
m_Tool = new CSetPointMoveToCcd;//<2F><>ǰ<EFBFBD><C7B0>ָ<EFBFBD><D6B8><EFBFBD>㹤<EFBFBD><E3B9A4>
|
|
|
|
|
}
|
|
|
|
|
CSetPointMgr::~CSetPointMgr(void)
|
|
|
|
|
{
|
|
|
|
|
if (m_Tool!=NULL)
|
|
|
|
|
{
|
|
|
|
|
delete m_Tool;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
void CSetPointMgr::OnLButtonDown(Dbxy pt)
|
|
|
|
|
{
|
|
|
|
|
m_Tool->OnLButtonDown(pt);
|
|
|
|
|
}
|
|
|
|
|
void CSetPointMgr::SetTool(CSetPointTool *tool)
|
|
|
|
|
{
|
|
|
|
|
if(m_Tool)
|
|
|
|
|
delete m_Tool;
|
|
|
|
|
m_Tool = tool;
|
|
|
|
|
}
|
|
|
|
|
void CSetPointMgr::Reset()
|
|
|
|
|
{
|
|
|
|
|
m_Tool->Reset();
|
|
|
|
|
}
|