| | |
| | | private List<Yw.Geometry.Point2d> _pt_qe_list; |
| | | private List<Yw.Geometry.Point2d> _pt_qp_list; |
| | | |
| | | private PumpPerformCoordinate _coordinate_paras; |
| | | private PumpCoordinate _coordinate_paras; |
| | | private bool _initial_data = false; |
| | | |
| | | private Yw.Pump.eCurveType _edit_curve_type = Yw.Pump.eCurveType.QH; |
| | |
| | | |
| | | #region Public Evnet |
| | | |
| | | public event Action<PumpPerformCoordinate> OnCurveCoordinateChanged; |
| | | public event Action<PumpCoordinate> OnCurveCoordinateChanged; |
| | | |
| | | public event Action<Yw.Pump.eCurveType, List<Yw.Geometry.Point2d>> OnDefinePointChanged; |
| | | |
| | |
| | | _def_pt_qe_list = def_pt_qe_list; |
| | | _def_pt_qp_list = def_pt_qp_list; |
| | | |
| | | _coordinate_paras = PumpPerformCoordinate.ToModel(coordinate_paras); |
| | | _coordinate_paras = PumpCoordinate.ToModel(coordinate_paras); |
| | | |
| | | UpdateChart(calc_coordinate); |
| | | } |
| | |
| | | if (_pt_qh_list == null || _pt_qh_list.Count < 4) |
| | | { |
| | | //设置成白板坐标 |
| | | _coordinate_paras = new PumpPerformCoordinate(); |
| | | _coordinate_paras = new PumpCoordinate(); |
| | | _coordinate_paras.GridNumberX = 30; |
| | | _coordinate_paras.GridNumberY = 16; |
| | | //显示的坐标线号 |
| | |
| | | return; |
| | | } |
| | | |
| | | _coordinate_paras = PumpPerformCoordinate.CalcCoordinate(_pt_qh_list, _pt_qe_list, _pt_qp_list); |
| | | _coordinate_paras = PumpCoordinate.CalcCoordinate(_pt_qh_list, _pt_qe_list, _pt_qp_list); |
| | | } |
| | | |
| | | /// <summary> |