| | |
| | | /// <summary> |
| | | /// to 存储字符串 |
| | | /// </summary> |
| | | public static string ToDbString(eGraphType graphType, Yw.Pump.eFeatType featType, List<Yw.Geometry.Point2d> pts) |
| | | public static string ToDbString(eGraphType graphType, Yw.Ahart.eFeatType featType, List<Yw.Geometry.Point2d> pts) |
| | | { |
| | | var dbString = string.Empty; |
| | | if (pts == null || pts.Count < 1) |
| | | { |
| | | return dbString; |
| | | } |
| | | Yw.Pump.IFeatCurve featCurve = null; |
| | | Yw.Ahart.IFeatCurve featCurve = null; |
| | | switch (featType) |
| | | { |
| | | case Yw.Pump.eFeatType.Polynomial: |
| | | case Yw.Ahart.eFeatType.Polynomial: |
| | | { |
| | | featCurve = new Yw.Pump.PolynomialCurve(pts); |
| | | featCurve = new Yw.Ahart.PolynomialCurve(pts); |
| | | } |
| | | break; |
| | | |
| | | case Yw.Pump.eFeatType.Cubic: |
| | | case Yw.Ahart.eFeatType.Cubic: |
| | | { |
| | | featCurve = new Yw.Pump.CubicCurve(pts); |
| | | featCurve = new Yw.Ahart.CubicCurve(pts); |
| | | } |
| | | break; |
| | | |