领胜LDS 键盘AOI检测项目
xcd
2020-06-27 998ad559883116280541553b761221bd8d486b9e
src/Bro.Common.Model/Model/CustomizedPoint.cs
@@ -15,10 +15,10 @@
    /// </summary>
    public class CustomizedPoint : IComplexDisplay, ICSVOutput, INotifyPropertyChanged
    {
        private float x = 0;
        private double x = 0;
        [Category("坐标设置")]
        [Description("X坐标")]
        public float X
        public double X
        {
            get => x;
            set
@@ -31,10 +31,10 @@
            }
        }
        private float y = 0;
        private double y = 0;
        [Category("坐标设置")]
        [Description("Y坐标")]
        public float Y
        public double Y
        {
            get => y;
            set
@@ -49,7 +49,7 @@
        public CustomizedPoint() { }
        public CustomizedPoint(float x, float y)
        public CustomizedPoint(double x, double y)
        {
            X = x;
            Y = y;
@@ -95,7 +95,7 @@
            List<CustomizedPoint> points = new List<CustomizedPoint>();
            for (int i = 0; i < Xs.Count && i < Ys.Count; i++)
            {
                points.Add(new CustomizedPoint((float)Xs[i], (float)Ys[i]));
                points.Add(new CustomizedPoint(Xs[i], Ys[i]));
            }
            return points;
@@ -333,19 +333,19 @@
    {
        [Category("标定坐标")]
        [Description("平台坐标-X")]
        public float X { get; set; }
        public double X { get; set; }
        [Category("标定坐标")]
        [Description("平台坐标-X")]
        public float Y { get; set; }
        public double Y { get; set; }
        [Category("像素坐标")]
        [Description("像素坐标-U")]
        public float U { get; set; }
        public double U { get; set; }
        [Category("像素坐标")]
        [Description("像素坐标-V")]
        public float V { get; set; }
        public double V { get; set; }
        private bool isBasePoint = false;
        [Category("快捷设置")]
@@ -419,7 +419,7 @@
        //    }
        //}
        public float MainAxisValue
        public double MainAxisValue
        {
            get => ((Direction ?? PriorityDirection.X) == PriorityDirection.X) ? X : Y;
            set
@@ -435,7 +435,7 @@
            }
        }
        public float MinorAxisValue
        public double MinorAxisValue
        {
            get => ((Direction ?? PriorityDirection.X) == PriorityDirection.X) ? Y : X;
            set