using OTSCLRINTERFACE; using System.Drawing; namespace OTSDataType { public class CHoleBSEImg : CBSEImgClr { 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_poiPosition!= a_oSource.m_poiPosition) { return false; } return true; } // 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() { m_poiPosition = new System.Drawing.Point(0, 0); } // duplication protected void Duplicate(CHoleBSEImg a_oSource) { m_poiPosition = a_oSource.m_poiPosition; } } }