12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #pragma once
- #include "BSEImg.h"
- namespace OTSDATA {
- class __declspec(dllexport) CHoleBSEImg : public CBSEImg
- {
- protected:
- DECLARE_SERIAL(CHoleBSEImg)
- public:
- CHoleBSEImg();
- CHoleBSEImg(CRect,int,CPoint); // constructor
- CHoleBSEImg(const CHoleBSEImg&); // copy constructor
- CHoleBSEImg(CHoleBSEImg*); // copy constructor
- CHoleBSEImg& operator=(const CHoleBSEImg&); // =operator
- ~CHoleBSEImg();
- // sterilizations
- void Serialize(CArchive& ar);
- void Serialize(bool isStoring, tinyxml2::XMLDocument * classDoc, tinyxml2::XMLElement * rootNode);
- // HoleID
- int GetHoleID() { return m_nHoleID; }
- void SetHoleID(int a_nHoleID) { m_nHoleID = a_nHoleID; }
- // position
- CPoint GetPosition() { return m_poiPosition; }
- void SetPosition(CPoint a_poiPosition) { m_poiPosition = a_poiPosition; }
- protected:
- // cleanup
- void Cleanup();
- // Initialization
- void Init();
- // duplication
- void Duplicate(const CHoleBSEImg& a_oSource);
- protected:
- //hole name
- int m_nHoleID;
- //image position
- CPoint m_poiPosition;
- };
- typedef std::shared_ptr<CHoleBSEImg> __declspec(dllexport) CHoleBSEImgPtr;
- typedef std::vector<CHoleBSEImgPtr> __declspec(dllexport) CHoleBSEImgsList;
- }
|