| | |
| | | for (int i = 0; i < _vm.Items.Count; i++) |
| | | { |
| | | var vm = _vm.Items[i]; |
| | | CreateCurrentLineSeries(vm.Id, vm.Color, vm.CurveName, vm.CurveQH, vm.CurveQE, vm.CurveQP); |
| | | Yw.Geometry.Point2d run_pt = new Geometry.Point2d(vm.Q , vm.H); |
| | | |
| | | CreateCurrentLineSeries(vm.Id, vm.Color, vm.CurveName, vm.CurveQH, vm.CurveQE, vm.CurveQP, run_pt); |
| | | } |
| | | } |
| | | } |
| | |
| | | /// <summary> |
| | | /// 创建线系列 |
| | | /// </summary> |
| | | private void CreateLineSeries(string id, Color color, string curve_name, Yw.Geometry.CubicSpline2d qh, Yw.Geometry.CubicSpline2d qe, Yw.Geometry.CubicSpline2d qp) |
| | | private void CreateLineSeries(string id, Color color, string curve_name, Yw.Geometry.CubicSpline2d qh, Yw.Geometry.CubicSpline2d qe, Yw.Geometry.CubicSpline2d qp,Yw.Geometry.Point2d run_pt=null) |
| | | { |
| | | var series_qh = new DevExpress.XtraCharts.Series(); |
| | | series_qh.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Numerical; |
| | |
| | | var point_qh = pt_qh_list[pt_qh_list.Count - 1]; |
| | | var anchor_qh_pt = new DevExpress.XtraCharts.PaneAnchorPoint(); |
| | | anchor_qh_pt.Pane = _default_pane; |
| | | anchor_qh_pt.AxisXCoordinate.AxisValue = point_qh.X.ToString(); |
| | | anchor_qh_pt.AxisYCoordinate.AxisValue = point_qh.Y.ToString(); |
| | | if (run_pt!=null) |
| | | { |
| | | anchor_qh_pt.AxisXCoordinate.AxisValue = run_pt.X.ToString(); |
| | | anchor_qh_pt.AxisYCoordinate.AxisValue = run_pt.Y.ToString(); |
| | | } |
| | | else |
| | | { |
| | | anchor_qh_pt.AxisXCoordinate.AxisValue = point_qh.X.ToString(); |
| | | anchor_qh_pt.AxisYCoordinate.AxisValue = point_qh.Y.ToString(); |
| | | } |
| | | |
| | | |
| | | var position_qh = new DevExpress.XtraCharts.RelativePosition(); |
| | | position_qh.Angle = -50; |
| | |
| | | /// <summary> |
| | | /// 创建线系列 |
| | | /// </summary> |
| | | private void CreateCurrentLineSeries(string id, Color color, string curve_name, Yw.Geometry.CubicSpline2d qh, Yw.Geometry.CubicSpline2d qe, Yw.Geometry.CubicSpline2d qp) |
| | | private void CreateCurrentLineSeries(string id, Color color, string curve_name, Yw.Geometry.CubicSpline2d qh, Yw.Geometry.CubicSpline2d qe, Yw.Geometry.CubicSpline2d qp,Yw.Geometry.Point2d run_pt=null) |
| | | { |
| | | var series_qh = new DevExpress.XtraCharts.Series(); |
| | | series_qh.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Numerical; |
| | |
| | | var point_qh = pt_qh_list[pt_qh_list.Count() - 1]; |
| | | var anchor_qh_pt = new DevExpress.XtraCharts.PaneAnchorPoint(); |
| | | anchor_qh_pt.Pane = _default_pane; |
| | | anchor_qh_pt.AxisXCoordinate.AxisValue = point_qh.X.ToString(); |
| | | anchor_qh_pt.AxisYCoordinate.AxisValue = point_qh.Y.ToString(); |
| | | if (run_pt!=null) |
| | | { |
| | | anchor_qh_pt.AxisXCoordinate.AxisValue = run_pt.X.ToString(); |
| | | anchor_qh_pt.AxisYCoordinate.AxisValue = run_pt.Y.ToString(); |
| | | } |
| | | else |
| | | { |
| | | |
| | | anchor_qh_pt.AxisXCoordinate.AxisValue = point_qh.X.ToString(); |
| | | anchor_qh_pt.AxisYCoordinate.AxisValue = point_qh.Y.ToString(); |
| | | } |
| | | |
| | | var position_qh = new DevExpress.XtraCharts.RelativePosition(); |
| | | position_qh.Angle = -50; |