#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(); }