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.

35 lines
645 B
C++

#include "StdAfx.h"
#include "CommandRotato.h"
CCommandRotato::CCommandRotato(void)
{
}
CCommandRotato::~CCommandRotato(void)
{
}
CString CCommandRotato::GetStr()
{
CString str1 = "_rotato Ðýת-------- [½Ç¶È] : <";
double angle = m_Par.Angle;
if(angle>180)
{
angle = (360-angle)*(-1);
}
CString str2;
str2.Format("%lf",angle);
CString str3 = ">";
return str1+str2+str3;
}
void CCommandRotato::ExcuteExt()
{
m_ObjContainer.OperateObj(m_Par,false);
}
void CCommandRotato::UndoExt()
{
SObjOperatePar par = m_Par;
par.Angle = par.Angle*(-1);
m_ObjContainer.OperateObj(par,false);
}