| | |
| | | |
| | | private TextAnnotation _work_pt_txt_annot; |
| | | |
| | | private PumpPerformCoordinate _coordinate_paras; |
| | | private PumpCoordinate _coordinate_paras; |
| | | |
| | | public bool _cubic_spline_qh_visible = true; |
| | | public bool _cubic_spline_qe_visible = true; |
| | |
| | | |
| | | #region Public Evnet |
| | | |
| | | public event Action<PumpPerformCoordinate> OnCurveCoordinateChanged; |
| | | public event Action<PumpCoordinate> OnCurveCoordinateChanged; |
| | | |
| | | public event Action<string, PumpPerformGroupPoint> OnCalcQueryPoint = null; |
| | | public event Action<string, PumpGroupPt> OnCalcQueryPoint = null; |
| | | |
| | | #endregion |
| | | |
| | |
| | | if (_vm_list == null || !_vm_list.Any()) |
| | | { |
| | | //设置成白板坐标 |
| | | _coordinate_paras = new PumpPerformCoordinate(); |
| | | _coordinate_paras = new PumpCoordinate(); |
| | | _coordinate_paras.GridNumberX = 30; |
| | | _coordinate_paras.GridNumberY = 16; |
| | | //显示的坐标线号 |
| | |
| | | _maxP = Math.Max(_maxP, yyy.Max()); |
| | | } |
| | | |
| | | _coordinate_paras = PumpPerformCoordinate.CalcCoordinate(_minQ, |
| | | _coordinate_paras = PumpCoordinate.CalcCoordinate(_minQ, |
| | | _maxQ, |
| | | _minH * _scaleMinH, |
| | | _maxH * _scaleMaxH, |
| | |
| | | var curveMinQ = curve.QH.MinX; |
| | | var curveMaxQ = curve.QH.MaxX; |
| | | |
| | | var workPoint = new PumpPerformGroupPoint(0, 0, 0, 0, 0); |
| | | var workPoint = new PumpGroupPt(0, 0, 0, 0, 0); |
| | | if (curveMinQ > workQ.Value || workQ.Value > curveMaxQ) |
| | | { |
| | | if (OnCalcQueryPoint != null) |
| | |
| | | if (curve.QP != null) |
| | | { |
| | | workPoint.P = curve.QP.GetPointY(workPoint.Q); |
| | | workPoint.E = PumpPerform2dCalcHelper.CalculateE(workPoint.Q, workPoint.H, workPoint.P); |
| | | workPoint.E = PumpCalcHelper.CalculateE(workPoint.Q, workPoint.H, workPoint.P); |
| | | } |
| | | else |
| | | { |