| | |
| | | /// </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 |
| | |
| | | } |
| | | } |
| | | |
| | | private float y = 0; |
| | | private double y = 0; |
| | | [Category("坐标设置")] |
| | | [Description("Y坐标")] |
| | | public float Y |
| | | public double Y |
| | | { |
| | | get => y; |
| | | set |
| | |
| | | |
| | | public CustomizedPoint() { } |
| | | |
| | | public CustomizedPoint(float x, float y) |
| | | public CustomizedPoint(double x, double y) |
| | | { |
| | | X = x; |
| | | Y = y; |
| | |
| | | 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; |
| | |
| | | { |
| | | [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("快捷设置")] |
| | |
| | | // } |
| | | //} |
| | | |
| | | public float MainAxisValue |
| | | public double MainAxisValue |
| | | { |
| | | get => ((Direction ?? PriorityDirection.X) == PriorityDirection.X) ? X : Y; |
| | | set |
| | |
| | | } |
| | | } |
| | | |
| | | public float MinorAxisValue |
| | | public double MinorAxisValue |
| | | { |
| | | get => ((Direction ?? PriorityDirection.X) == PriorityDirection.X) ? Y : X; |
| | | set |