예제 #1
0
 public void Copy(HPolygon hPolygon)
 {
     if (this.Column != null)
     {
         this.Column.Clear();
     }
     else
     {
         this.Column = new List <double> {
         };
     }
     if (this.Row != null)
     {
         this.Row.Clear();
     }
     else
     {
         this.Row = new List <double> {
         };
     }
     this.Column.AddRange(hPolygon.Column);
     this.Id         = hPolygon.Id;
     this.IsSelected = hPolygon.IsSelected;
     this.IsVisable  = hPolygon.IsVisable;
     this.Radius     = hPolygon.Radius;
     this.RectName   = hPolygon.RectName;
     this.Row.AddRange(hPolygon.Row);
     this.Type        = hPolygon.Type;
     this.Polygon_xld = hPolygon.Polygon_xld;
 }
예제 #2
0
        public void Copy(MeasureDefect measureDefect)
        {
            this.DefectAlgorithm.Copy(measureDefect.DefectAlgorithm);

            this.DefectName = measureDefect.DefectName;

            this.HRectList.Clear();
            foreach (var item in measureDefect.HRectList)
            {
                HRect hRect = new HRect();
                hRect.Copy(item);
                this.HRectList.Add(hRect);
            }

            this.HCircleList.Clear();
            foreach (var item in measureDefect.HCircleList)
            {
                HCircle hCircle = new HCircle();
                hCircle.Copy(item);
                this.HCircleList.Add(hCircle);
            }

            this.HPolygonList.Clear();
            foreach (var item in measureDefect.HPolygonList)
            {
                HPolygon hPolygon = new HPolygon();
                hPolygon.Copy(item);
                this.HPolygonList.Add(hPolygon);
            }

            this.Id = measureDefect.Id;
        }