コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 /// <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));
 }
コード例 #4
0
 /// <summary>
 /// 创建CalibrationPoint新实例
 /// </summary>
 /// <param name="calibPointData">标定点数据</param>
 public CalibrationPoint(CalibPointData calibPointData) : base(calibPointData.Px, calibPointData.Py, calibPointData.Qx, calibPointData.Qy)
 {
 }