Exemplo n.º 1
0
        public override void DisplayDetail(HWindow_Final window)//显示详细信息
        {
            try { ho_Shape.Dispose(); } catch (Exception) { }
            Circle circlePositioned = GetShapePositioned() as Circle;

            ho_Shape = Func_HalconFunction.GenCircle(circlePositioned);
            try
            {
                DP.SetPoint(circlePositioned);
            }
            catch (Exception)
            {
                DP = new Point(circlePositioned.hv_Column, circlePositioned.hv_Row);
            }
            base.DisplayDetail(window);
            HOperatorSet.GenRegionPoints(out HObject ho_Point, hv_Row, hv_Column);
            window.DispObj(ho_Point, "red", "fill");
            ho_Point.Dispose();
            window.DispString(DP.hv_Column - StringHeight, DP.hv_Row, name, "orange");
        }
Exemplo n.º 2
0
 public override void DisplayResult(HWindow_Final window)
 {
     try { ho_Shape.Dispose(); } catch (Exception) { }
     ho_Shape = Func_HalconFunction.GenCircle(this);
     window.DispObj(ho_Shape, shapeColor);//显示形状
 }
Exemplo n.º 3
0
 /// <summary>
 /// 测量
 /// </summary>
 /// <param name="ho_Image"></param>
 /// <returns></returns>
 public override int Measure(HObject ho_Image)
 {
     base.Measure(ho_Image);//调用基类的测量方法
     ho_Shape = Func_HalconFunction.GenCircle(GetShapePositioned() as Circle);
     return(1);
 }