| | |
| | | private XYDiagram _diagram; |
| | | private AxisX _axis_x_flow; |
| | | private AxisY _axis_y_ql; |
| | | private ConstantLine _const_line_flow; |
| | | private ConstantLine _const_line_x; |
| | | private ConstantLine _work_l_line; |
| | | |
| | | private Series _series_cubic_spline_ql; |
| | |
| | | _axis_y_ql = _diagram.AxisY; |
| | | _axis_y_ql.SetAxisYQLDisplay(); |
| | | |
| | | _const_line_flow = (ConstantLine)_diagram.AxisX.ConstantLines.GetElementByName("WorkPointLine"); |
| | | _const_line_flow.SetWorkPointLineDisplay(); |
| | | _const_line_x = (ConstantLine)_diagram.AxisX.ConstantLines.GetElementByName("WorkPointLine"); |
| | | _const_line_x.SetWorkPointLineDisplay(); |
| | | |
| | | _work_l_line = (ConstantLine)_diagram.AxisY.ConstantLines.GetElementByName("WorkLLine"); |
| | | _work_l_line.SetWorkHLineDisplay(); |
| | |
| | | _axis_y_ql.Visibility = DefaultBoolean.False; |
| | | _axis_y_ql.GridLines.Visible = false; |
| | | |
| | | _const_line_flow.Visible = false; |
| | | _const_line_x.Visible = false; |
| | | _work_l_line.Visible = false; |
| | | _anno_txt_query_info.Visible = false; |
| | | |
| | |
| | | _axis_y_ql.Visibility = DefaultBoolean.False; |
| | | _axis_y_ql.GridLines.Visible = false; |
| | | |
| | | _const_line_flow.Visible = false; |
| | | _const_line_x.Visible = false; |
| | | _work_l_line.Visible = false; |
| | | _anno_txt_query_info.Visible = false; |
| | | return; |
| | |
| | | { |
| | | _series_cubic_spline_ql.Points.Clear(); |
| | | _series_cubic_spline_ql.Visible = false; |
| | | _const_line_flow.Visible = false; |
| | | _const_line_x.Visible = false; |
| | | _work_l_line.Visible = false; |
| | | _anno_txt_query_info.Visible = false; |
| | | } |
| | |
| | | { |
| | | if (!_line_visible) |
| | | { |
| | | _const_line_flow.Visible = false; |
| | | _const_line_flow.Title.Visible = false; |
| | | _const_line_x.Visible = false; |
| | | _const_line_x.Title.Visible = false; |
| | | _work_l_line.Visible = false; |
| | | _work_l_line.Title.Visible = false; |
| | | _anno_txt_query_info.Visible = false; |
| | |
| | | } |
| | | else |
| | | { |
| | | _const_line_flow.Visible = true; |
| | | _const_line_flow.Title.Visible = true; |
| | | _const_line_x.Visible = true; |
| | | _const_line_x.Title.Visible = true; |
| | | _work_l_line.Visible = true; |
| | | _work_l_line.Title.Visible = true; |
| | | _anno_txt_query_info.Visible = true; |
| | |
| | | workInfoStringBuilder.AppendLine($"流量:{_work_point.Q.ToString("N1")} "); |
| | | workInfoStringBuilder.AppendLine($"水损:{_work_point.L.ToString("N1")} "); |
| | | |
| | | _const_line_flow.AxisValue = _work_point.Q; |
| | | _const_line_flow.Title.Text = _work_point.Q.ToString("N1"); |
| | | _const_line_x.AxisValue = _work_point.Q; |
| | | _const_line_x.Title.Text = _work_point.Q.ToString("N1"); |
| | | |
| | | _work_l_line.AxisValue = _work_point.L; |
| | | _work_l_line.Title.Text = _work_point.L.ToString("N1"); |
| | |
| | | } |
| | | else if (hitInfo.InConstantLine) |
| | | { |
| | | if (hitInfo.ConstantLine == _const_line_flow) |
| | | if (hitInfo.ConstantLine == _const_line_x) |
| | | { |
| | | _onMoveWorkPointLine = true; |
| | | } |