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.

36 lines
779 B
C++

#include "StdAfx.h"
#include "Template.h"
#include "WorkFileLable.h"
#include "DrawSimpleShape.h"
CTemplate::CTemplate(void)
{
}
CTemplate::~CTemplate(void)
{
}
void CTemplate::WriteWorkFile(vector<CLab> &LabVec)
{
m_ObjContainer.WriteWorkFile(LabVec);
}
void CTemplate::ReadWorkFile(CLabVecRang &LabVecRang)
{
m_ObjContainer.ReadWorkFile(LabVecRang);
}
void CTemplate::Draw(CDC* pDC,CPen&Pen)
{
if(m_bCircle)
DrawCircle(pDC,Pen,m_Rect.GetCenterPt(),m_Rect.Width()/2,30);
else
DrawRect(pDC,Pen,m_Rect,false);
}
//ĘŐźŻš¤×÷ĘýžÝ
void CTemplate::CollectWorkData(vector<vector<Dbxy>> &vec)
{
m_ObjContainer.GetObjPtData(vec,false);
}
void CTemplate::SetRect(DbRect &rect,bool bCircle)
{
m_Rect = rect;
m_bCircle = bCircle;
}