| | |
| | | |
| | | namespace Bro.M141.Process |
| | | { |
| | | public class CheckPoint : IComplexDisplay |
| | | { |
| | | [Browsable(false)] |
| | | public string Id { get; set; } = Guid.NewGuid().ToString(); |
| | | |
| | | [Category("检测点位")] |
| | | [Description("点位名称")] |
| | | [DisplayName("点位名称")] |
| | | public string Name { get; set; } = ""; |
| | | |
| | | [Category("检测点位")] |
| | | [Description("点位坐标,检测点位的运动坐标")] |
| | | [DisplayName("点位坐标")] |
| | | [TypeConverter(typeof(ExpandableObjectConverter))] |
| | | public CustomizedPoint PointPosition { get; set; } = new CustomizedPoint(); |
| | | |
| | | [Category("检测点位")] |
| | | [Description("点位坐标,检测点位的Z轴坐标")] |
| | | [DisplayName("点位坐标Z")] |
| | | public double PointZ { get; set; } |
| | | |
| | | [Category("标定设置")] |
| | | [Description("该检测点位的标定矩阵,图像UV坐标转换为大板坐标系XY的标定矩阵")] |
| | | [DisplayName("点位标定矩阵")] |
| | | [TypeConverter(typeof(SimpleCollectionConvert<double>))] |
| | | [Editor(typeof(SimpleCollectionEditor<double>), typeof(UITypeEditor))] |
| | | public List<double> Matrix { get; set; } = new List<double>(); |
| | | |
| | | [Category("启用配置")] |
| | | [Description("true:启用该点位 false:禁用该点位")] |
| | | [DisplayName("点位启用标志")] |
| | | public bool IsEnabled { get; set; } = true; |
| | | |
| | | public string GetDisplayText() |
| | | { |
| | | return $"{(IsEnabled ? "" : "禁用 ")}{Name} {PointPosition.GetDisplayText()}"; |
| | | } |
| | | } |
| | | |
| | | public enum ContourEdge |
| | | { |