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.
TwoLaserHead-PushJig/LaiPuLaser/CommandMove.cpp

33 lines
686 B
C++

#include "StdAfx.h"
#include "CommandMove.h"
CCommandMove::CCommandMove(void)
{
}
CCommandMove::~CCommandMove(void)
{
}
CString CCommandMove::GetStr()
{
CString str1 = "_move <20>ƶ<EFBFBD>--------[<5B><><EFBFBD><EFBFBD>x ] : <";
CString str2;
str2.Format("%lf",m_Par.MoveX);
CString str3 = "> [<5B><><EFBFBD><EFBFBD>y ] : <";
CString str4;
str4.Format("%lf",m_Par.MoveY);
CString str5 = ">";
return str1+str2+str3+str4+str5;
}
void CCommandMove::ExcuteExt()
{
m_ObjContainer.OperateObj(m_Par,false);
}
void CCommandMove::UndoExt()
{
//<2F><><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD>
SObjOperatePar par = m_Par;
par.MoveX = par.MoveX*(-1);
par.MoveY = par.MoveY*(-1);
m_ObjContainer.OperateObj(par,false);
}