public override void DisplayDetail(HWindow_Final window)//显示详细信息 { unit1.DisplayDetail(window); unit2.DisplayDetail(window); window.DispString(DP.hv_Column, DP.hv_Row, name, color); window.DispString(DP.hv_Column, DP.hv_Row - StringHeight, ((double)hv_RealDistance).ToString("f1") + "°", color);//显示字符 }
public override void DisplayDetail(HWindow_Final window)//显示详细信息 { try { ho_Shape.Dispose(); } catch (Exception) { } ho_Shape = Func_HalconFunction.GenRegionLine(GetShapePositioned() as Line); window.DispObj(ho_Shape, shapeColor); //显示形状 window.DispString(DP.hv_Column, DP.hv_Row, name, "orange"); //显示文字 }
public override void DisplayDetail(HWindow_Final window) //显示详细信息 { base.DisplayDetail(window); //调用基类的显示详细信息方法 if (lines != null) //?线组不为空 { lines.DisplayDetail(window); //显示线组详细信息 } window.DispString(DP.hv_Column, DP.hv_Row + StringHeight, ((double)hv_RealDistance).ToString("f3"), color); //显示结果 }
public override void DisplayDetail(HWindow_Final window)//显示详细信息 { window.DispObj(ho_ROI, "blue", "margin"); window.DispObj(ho_SelectedRegions, "green", "fill"); HObject ho_Line = Func_HalconFunction.GenRegionLine(this); window.DispObj(ho_Line, "red", "fill"); ho_Line.Dispose(); window.DispString(DP.hv_Column, DP.hv_Row, name, "orange");//显示文字 }
public override void DisplayDetail(HWindow_Final window)//显示详细信息 { if (unit1 != null) { unit1.DisplayDetail(window); //显示unit1形状的详细信息 } if (unit2 != null) { unit2.DisplayDetail(window); //显示unit2形状的详细信息 } window.DispString(DP.hv_Column, DP.hv_Row - StringHeight, name, color); //显示名称 window.DispString(DP.hv_Column, DP.hv_Row, ((double)hv_PxDistance).ToString("f3"), color); //显示像素距离 window.DispString(DP.hv_Column, DP.hv_Row + StringHeight, ((double)hv_RealDistance).ToString("f3"), color); //显示实际距离 Line line = new Line(pStart.hv_Column, pStart.hv_Row, pEnd.hv_Column, pEnd.hv_Row); //创建结果线 HObject ho_Line = Func_HalconFunction.GenRegionLine(line); //创建结果线 window.DispObj(ho_Line, color, "fill"); //显示结果线 ho_Line.Dispose(); //释放ho_Line }
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"); }
public override void DisplayResult(HWindow_Final window) //显示简单信息 { base.DisplayResult(window); //调用基类的显示简单信息方法 window.DispString(DP.hv_Column, DP.hv_Row + StringHeight, ((double)hv_RealDistance).ToString("f3"), color); //显示结果 }
public override void DisplayResult(HWindow_Final window) //显示简单信息 { window.DispString(DP.hv_Column, DP.hv_Row - StringHeight, ((double)hv_RealDistance).ToString("f1") + "°", color); //显示字符 }