文件名从 WinFrmUI/Yw.WinFrmUI.Phart.Core/v2/02-pump/02-edit/PumpEditChart.cs 修改 |
| | |
| | | private XYDiagram _diagram; |
| | | private AxisX _axis_x_flow; |
| | | private AxisY _axis_y_head; |
| | | private SecondaryAxisY _axisYQE, _axisYQP; |
| | | private SecondaryAxisY _axis_y_eff, _axis_y_power; |
| | | |
| | | private Series _series_head, _series_eff, _series_power; |
| | | private Series _series_head_pt, _series_eff_pt, _series_power_pt; |
| | |
| | | _axis_x_flow.SetAxisXQDisplay(); |
| | | _axis_y_head = _diagram.AxisY; |
| | | _axis_y_head.SetAxisYQHDisplay(); |
| | | _axisYQE = _diagram.SecondaryAxesY.GetAxisByName("AxisYQE"); |
| | | _axisYQE.SetSecondaryAxisYQEDisplay(); |
| | | _axisYQP = _diagram.SecondaryAxesY.GetAxisByName("AxisYQP"); |
| | | _axisYQP.SetSecondaryAxisYQPDisplay(); |
| | | _axis_y_eff = _diagram.SecondaryAxesY.GetAxisByName("AxisYQE"); |
| | | _axis_y_eff.SetSecondaryAxisYQEDisplay(); |
| | | _axis_y_power = _diagram.SecondaryAxesY.GetAxisByName("AxisYQP"); |
| | | _axis_y_power.SetSecondaryAxisYQPDisplay(); |
| | | |
| | | |
| | | _series_head = this.chartControl1.GetSeriesByName("SeriesCurveQH"); |
| | |
| | | _axis_x_flow.GridLines.Visible = false; |
| | | _axis_y_head.Visibility = DefaultBoolean.False; |
| | | _axis_y_head.GridLines.Visible = false; |
| | | _axisYQE.Visibility = DefaultBoolean.False; |
| | | _axisYQE.GridLines.Visible = false; |
| | | _axisYQP.Visibility = DefaultBoolean.False; |
| | | _axisYQP.GridLines.Visible = false; |
| | | _axis_y_eff.Visibility = DefaultBoolean.False; |
| | | _axis_y_eff.GridLines.Visible = false; |
| | | _axis_y_power.Visibility = DefaultBoolean.False; |
| | | _axis_y_power.GridLines.Visible = false; |
| | | |
| | | |
| | | _series_head_pt.Visible = false; |
| | |
| | | _def_qh_pt_list = fit_point_list; |
| | | _qh_pt_list = fit_point_list.GetFitPointList(); |
| | | _axis_y_head.SetAxisYQHColorDisplay(_series_head, _series_head_pt, true); |
| | | _axisYQE.SetSecondaryAxisYQEColorDisplay(_series_eff, _series_eff_pt, false); |
| | | _axisYQP.SetSecondaryAxisYQPColorDisplay(_series_power, _series_power_pt, false); |
| | | _axis_y_eff.SetSecondaryAxisYQEColorDisplay(_series_eff, _series_eff_pt, false); |
| | | _axis_y_power.SetSecondaryAxisYQPColorDisplay(_series_power, _series_power_pt, false); |
| | | } |
| | | break; |
| | | case Yw.Pump.eCurveType.QE: |
| | |
| | | _def_qe_pt_list = fit_point_list; |
| | | _qe_pt_list = fit_point_list.GetFitPointList(); |
| | | _axis_y_head.SetAxisYQHColorDisplay(_series_head, _series_head_pt, false); |
| | | _axisYQE.SetSecondaryAxisYQEColorDisplay(_series_eff, _series_eff_pt, true); |
| | | _axisYQP.SetSecondaryAxisYQPColorDisplay(_series_power, _series_power_pt, false); |
| | | _axis_y_eff.SetSecondaryAxisYQEColorDisplay(_series_eff, _series_eff_pt, true); |
| | | _axis_y_power.SetSecondaryAxisYQPColorDisplay(_series_power, _series_power_pt, false); |
| | | } |
| | | break; |
| | | case Yw.Pump.eCurveType.QP: |
| | |
| | | _def_qp_pt_list = fit_point_list; |
| | | _qp_pt_list = fit_point_list.GetFitPointList(); |
| | | _axis_y_head.SetAxisYQHColorDisplay(_series_head, _series_head_pt, false); |
| | | _axisYQE.SetSecondaryAxisYQEColorDisplay(_series_eff, _series_eff_pt, false); |
| | | _axisYQP.SetSecondaryAxisYQPColorDisplay(_series_power, _series_power_pt, true); |
| | | _axis_y_eff.SetSecondaryAxisYQEColorDisplay(_series_eff, _series_eff_pt, false); |
| | | _axis_y_power.SetSecondaryAxisYQPColorDisplay(_series_power, _series_power_pt, true); |
| | | } |
| | | break; |
| | | default: |
| | |
| | | _axis_x_flow.GridLines.Visible = false; |
| | | _axis_y_head.Visibility = DefaultBoolean.False; |
| | | _axis_y_head.GridLines.Visible = false; |
| | | _axisYQE.Visibility = DefaultBoolean.False; |
| | | _axisYQE.GridLines.Visible = false; |
| | | _axisYQP.Visibility = DefaultBoolean.False; |
| | | _axisYQP.GridLines.Visible = false; |
| | | _axis_y_eff.Visibility = DefaultBoolean.False; |
| | | _axis_y_eff.GridLines.Visible = false; |
| | | _axis_y_power.Visibility = DefaultBoolean.False; |
| | | _axis_y_power.GridLines.Visible = false; |
| | | return; |
| | | } |
| | | |
| | |
| | | display_eff = display_eff + _coordinate.CoordSpaceE; |
| | | } |
| | | |
| | | _axisYQE.CustomLabels.Clear(); |
| | | _axisYQE.CustomLabels.AddRange(labels.ToArray()); |
| | | _axisYQE.Visibility = DefaultBoolean.True; |
| | | _axisYQE.GridLines.Visible = true; |
| | | _axis_y_eff.CustomLabels.Clear(); |
| | | _axis_y_eff.CustomLabels.AddRange(labels.ToArray()); |
| | | _axis_y_eff.Visibility = DefaultBoolean.True; |
| | | _axis_y_eff.GridLines.Visible = true; |
| | | } |
| | | |
| | | //鍔熺巼 |
| | |
| | | display_power = display_power + _coordinate.CoordSpaceP; |
| | | } |
| | | |
| | | _axisYQP.CustomLabels.Clear(); |
| | | _axisYQP.CustomLabels.AddRange(labels.ToArray()); |
| | | _axisYQP.Visibility = DefaultBoolean.True; |
| | | _axisYQP.GridLines.Visible = true; |
| | | _axis_y_power.CustomLabels.Clear(); |
| | | _axis_y_power.CustomLabels.AddRange(labels.ToArray()); |
| | | _axis_y_power.Visibility = DefaultBoolean.True; |
| | | _axis_y_power.GridLines.Visible = true; |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | _axis_y_head.SetAxisRange(_coordinate.CoordMinH, _coordinate.CoordMinH + _coordinate.GridNumberY * _coordinate.CoordSpaceH); |
| | | } |
| | | _axisYQE.SetAxisRange(_coordinate.CoordMinE, _coordinate.CoordMinE + _coordinate.GridNumberY * _coordinate.CoordSpaceE); |
| | | _axisYQP.SetAxisRange(_coordinate.CoordMinP, _coordinate.CoordMinP + _coordinate.GridNumberY * _coordinate.CoordSpaceP); |
| | | _axis_y_eff.SetAxisRange(_coordinate.CoordMinE, _coordinate.CoordMinE + _coordinate.GridNumberY * _coordinate.CoordSpaceE); |
| | | _axis_y_power.SetAxisRange(_coordinate.CoordMinP, _coordinate.CoordMinP + _coordinate.GridNumberY * _coordinate.CoordSpaceP); |
| | | //_axisYQE.SetAxisRange(_coordinate.CoordMinE-_coordinate.CoordMinP, _coordinate.CoordMinE + _coordinate.GridNumberY * _coordinate.CoordSpaceE); |
| | | //_axisYQP.SetAxisRange(_coordinate.DispMinP(), _coordinate.CoordMinP + _coordinate.GridNumberY * _coordinate.CoordSpaceP); |
| | | } |
| | |
| | | break; |
| | | case Yw.Pump.eCurveType.QE: |
| | | { |
| | | var axisValue = diagramCoordinates.GetAxisValue(_axisYQE); |
| | | var axisValue = diagramCoordinates.GetAxisValue(_axis_y_eff); |
| | | if (axisValue == null) |
| | | return; |
| | | _pickPoint.Values[0] = axisValue.NumericalValue; |
| | |
| | | break; |
| | | case Yw.Pump.eCurveType.QP: |
| | | { |
| | | var axisValue = diagramCoordinates.GetAxisValue(_axisYQP); |
| | | var axisValue = diagramCoordinates.GetAxisValue(_axis_y_power); |
| | | if (axisValue == null) |
| | | return; |
| | | _pickPoint.Values[0] = axisValue.NumericalValue; |
| | |
| | | { |
| | | _axis_x_flow.Title.Visibility = visible ? DefaultBoolean.True : DefaultBoolean.False; |
| | | _axis_y_head.Title.Visibility = visible ? DefaultBoolean.True : DefaultBoolean.False; |
| | | _axisYQE.Title.Visibility = visible ? DefaultBoolean.True : DefaultBoolean.False; |
| | | _axisYQP.Title.Visibility = visible ? DefaultBoolean.True : DefaultBoolean.False; |
| | | _axis_y_eff.Title.Visibility = visible ? DefaultBoolean.True : DefaultBoolean.False; |
| | | _axis_y_power.Title.Visibility = visible ? DefaultBoolean.True : DefaultBoolean.False; |
| | | } |
| | | |
| | | |