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.

32 lines
912 B
C++

#include "StdAfx.h"
#include "ObjGeometryPorp.h"
#define RADIUS 5//用于计算的矩形半径(大小是无所谓的)
CObjGeometryPorp::CObjGeometryPorp(void)
{
}
CObjGeometryPorp::~CObjGeometryPorp(void)
{
}
//初始化矩形点顺序如下
// 4---------3
// | |
// | |
// 1---------2
void CObjGeometryPorp::OnAppInitialize()
{
m_bMiirorH = false;//是否水平镜像
m_bMiirorV = false;//是否垂直镜像
//矩形只是用来判断相对值,所以没有必要和实际的obj 位置对应
m_IniRect.Creat(Dbxy(0,0),RADIUS);
m_PtContainer.DelAllPt();
m_PtContainer.AddDataPoint(Dbxy(m_IniRect.L,m_IniRect.B));
m_PtContainer.AddDataPoint(Dbxy(m_IniRect.R,m_IniRect.B));
m_PtContainer.AddDataPoint(Dbxy(m_IniRect.R,m_IniRect.T));
m_PtContainer.AddDataPoint(Dbxy(m_IniRect.L,m_IniRect.T));
}
void CObjGeometryPorp::Operate(SObjOperatePar &par)
{
}