| | |
| | | namespace HStation.WinFrmUI.Phart |
| | | namespace HStation.WinFrmUI.PhartRelation |
| | | { |
| | | /// <summary> |
| | | /// 特性曲线工具 |
| | |
| | | /// <param name="PointNumber">点数量</param> |
| | | /// <param name="MinSpace">最小间隔</param> |
| | | /// <returns></returns> |
| | | public static List<Yw.Geometry.Point2d> GetFeatPointList(HStation.eGraphType GraphType, string GeometryInfo, int? PointNumber, double? MinSpace) |
| | | public static List<Yw.Geometry.Point2d> GetFeatPointList(HStation.PhartRelation.eGraphType GraphType, string GeometryInfo, int? PointNumber, double? MinSpace) |
| | | { |
| | | var pointNumber = 12; |
| | | if (PointNumber.HasValue) |
| | |
| | | { |
| | | minSpace = MinSpace.Value; |
| | | } |
| | | var pts = HStation.Service.PerformCurveHelper.GetFeatPointList(GraphType, GeometryInfo, pointNumber, minSpace); |
| | | var pts = HStation.Service.PhartRelation.PerformCurveHelper.GetFeatPointList(GraphType, GeometryInfo, pointNumber, minSpace); |
| | | return pts?.ToList(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// To 存储字符串 |
| | | /// </summary> |
| | | public static string ToDbString(HStation.eGraphType GraphType, Yw.Pump.eFeatType FeatType,List<Yw.Geometry.Point2d> PointList) |
| | | public static string ToDbString(HStation.PhartRelation.eGraphType GraphType, Yw.Pump.eFeatType FeatType, List<Yw.Geometry.Point2d> PointList) |
| | | { |
| | | var pts = PointList?.Select(x => new Yw.Geometry.Point2d(x.X, x.Y)).ToList(); |
| | | var dbString = HStation.Service.PerformCurveHelper.ToDbString(GraphType, FeatType, pts); |
| | | var dbString = HStation.Service.PhartRelation.PerformCurveHelper.ToDbString(GraphType, FeatType, pts); |
| | | return dbString; |
| | | } |
| | | |