123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
-
- using OTSCLRINTERFACE;
- using System.Drawing;
- namespace OTSDataType
- {
- public class CHoleBSEImg : CBSEImgClr
- {
- //hole name
- //protected int m_nHoleID;
- //image position
- protected System.Drawing.Point m_poiPosition = new System.Drawing.Point();
- public CHoleBSEImg()
- {
- Init();
- }
- public CHoleBSEImg(Rectangle a_rectImage, System.Drawing.Point a_poiPosition) // constructor
- {
- Init();
- // set image rectangle and create memory for image data
- SetImageRect(a_rectImage);
- //m_nHoleID = a_nHoleID;
- m_poiPosition = a_poiPosition;
- }
- public CHoleBSEImg(CHoleBSEImg a_oSource)
- {
- if (a_oSource == null)
- {
- return;
- }
- // can't copy itself
- if (a_oSource == this)
- {
- return;
- }
- // copy data over
- Duplicate(a_oSource);
- }
- public bool Equals(CHoleBSEImg a_oSource)
- {
- //if(m_nHoleID!= a_oSource.m_nHoleID)
- //{
- // return false;
- //}
- if(m_poiPosition!= a_oSource.m_poiPosition)
- {
- return false;
- }
- return true;
- }
- // HoleID
- //public int GetHoleID()
- //{
- // return m_nHoleID;
- //}
- //public void SetHoleID(int a_nHoleID)
- //{
- // m_nHoleID = a_nHoleID;
- //}
- // position
- public System.Drawing.Point GetPosition()
- {
- return m_poiPosition;
- }
- public void SetPosition(System.Drawing.Point a_poiPosition)
- {
- m_poiPosition = a_poiPosition;
- }
- // Initialization
- protected void Init()
- {
- // base class initialization
- //base.Init();
- // initialization
- //m_nHoleID = 0;
- m_poiPosition = new System.Drawing.Point(0, 0);
- }
- // duplication
- protected void Duplicate(CHoleBSEImg a_oSource)
- {
- // copy data over
- //m_nHoleID = a_oSource.m_nHoleID;
- m_poiPosition = a_oSource.m_poiPosition;
- }
-
- }
- }
|