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.
31 lines
540 B
C++
31 lines
540 B
C++
#include "StdAfx.h"
|
|
#include "SetPointMgr.h"
|
|
#include "SetPointMoveToCcd.h"
|
|
|
|
|
|
CSetPointMgr *gSetPointMgr = new CSetPointMgr;
|
|
CSetPointMgr::CSetPointMgr(void)
|
|
{
|
|
m_Tool = new CSetPointMoveToCcd;//µ±Ç°µÄÖ¸¶¨µã¹¤¾ß
|
|
}
|
|
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();
|
|
} |