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.

24 lines
744 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "ObjContainer.h"
#include "LabVecRang.h"
//每个模板有自己的obj 可以将obj 导入layer 编辑
class CTemplate
{
public:
CTemplate(void);
~CTemplate(void);
CObjContainer &GetObjContainer(){return m_ObjContainer;};
void WriteWorkFile(vector<CLab> &LabVec);
void ReadWorkFile(CLabVecRang &LabVecRang);
void ClearObj(){m_ObjContainer.Clear();};
void SetRect(DbRect &rect,bool bCircle);
void Draw(CDC* pDC,CPen&Pen);
void CollectWorkData(vector<vector<Dbxy>> &vec);
private:
CObjContainer m_ObjContainer;//模板内obj 的容器
DbRect m_Rect;//模板的边界范围
bool m_bCircle;
};