namespace HStation.WinFrmUI.PhartRelation { /// /// 特性曲线工具 /// public class PhartPerformCurveHelper { /// /// 获取性能点列表 /// /// 图形类型 /// 几何信息 /// 点数量 /// 最小间隔 /// public static List GetFeatPointList(HStation.PhartRelation.eGraphType GraphType, string GeometryInfo, int? PointNumber, double? MinSpace) { var pointNumber = 12; if (PointNumber.HasValue) { pointNumber = PointNumber.Value; } var minSpace = 0.0001; if (MinSpace.HasValue) { minSpace = MinSpace.Value; } var pts = HStation.Service.PhartRelation.PerformCurveHelper.GetFeatPointList(GraphType, GeometryInfo, pointNumber, minSpace); return pts?.ToList(); } /// /// To 存储字符串 /// public static string ToDbString(HStation.PhartRelation.eGraphType GraphType, Yw.Ahart.eFeatType FeatType, List PointList) { var pts = PointList?.Select(x => new Yw.Geometry.Point2d(x.X, x.Y)).ToList(); var dbString = HStation.Service.PhartRelation.PerformCurveHelper.ToDbString(GraphType, FeatType, pts); return dbString; } } }