/// <summary> /// 覆盖 /// </summary> public void Cover(int index, double px, double py, double qx, double qy) { if ((index >= 0) && (index < CalibPointList.Count)) { CalibPointList[index] = new CalibPointData(px, py, qx, qy); OnCalibrationPointListChanged(CalibPointList); } }
/// <summary> /// 创建CalibrationPointSelectionChangedEventArgs新实例 /// </summary> /// <param name="calibPointList">标定点列表</param> /// <param name="index">点位索引</param> /// <param name="calibPointData">标定点点位数据</param> public CalibrationPointSelectionChangedEventArgs(ObservableCollection <CalibrationPoint> calibPointList, int index, CalibPointData calibPointData) { CalibPointList = calibPointList; Index = index; CalibPointData = calibPointData; }
/// <summary> /// 触发标定点选择项改变事件 /// </summary> /// <param name="calibPointList">标定点列表</param> /// <param name="index">点位索引</param> /// <param name="calibPointData">标定点点位数据</param> protected void OnCalibrationPointSelectionChanged(ObservableCollection <CalibPointData> calibPointList, int index, CalibPointData calibPointData) { CalibrationPointSelectionChanged?.Invoke(this, new CalibrationPointSelectionChangedEventArgs(calibPointList, index, calibPointData)); }
/// <summary> /// 创建CalibrationPoint新实例 /// </summary> /// <param name="calibPointData">标定点数据</param> public CalibrationPoint(CalibPointData calibPointData) : base(calibPointData.Px, calibPointData.Py, calibPointData.Qx, calibPointData.Qy) { }