CurveCell.cs 2.41 KB
Newer Older
1
using System.ComponentModel;
潘栩锋's avatar
潘栩锋 committed
2 3 4

namespace FLY.Thick.Base.Common
{
潘栩锋's avatar
潘栩锋 committed
5 6 7
    /// <summary>
    /// 
    /// </summary>
8
    public class CurveCell : INotifyPropertyChanged
潘栩锋's avatar
潘栩锋 committed
9
    {
潘栩锋's avatar
潘栩锋 committed
10 11 12 13
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
潘栩锋's avatar
潘栩锋 committed
14 15 16 17
        public override string ToString()
        {
            return "value=" + Value.ToString() + " ad=" + AD.ToString() + " revisedad=" + RevisedAD.ToString();
        }
18

潘栩锋's avatar
潘栩锋 committed
19 20 21
        /// <summary>
        /// 面密度
        /// </summary>
22
        public double Value { get; set; }
潘栩锋's avatar
潘栩锋 committed
23 24 25
        /// <summary>
        /// 
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
26
        public int AD { get; set; }
潘栩锋's avatar
潘栩锋 committed
27 28 29 30

        /// <summary>
        /// 校正后的AD值
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
31 32
        public int RevisedAD { get; set; }

潘栩锋's avatar
潘栩锋 committed
33 34 35 36 37
        #region INotifyPropertyChanged 成员
        public event PropertyChangedEventHandler PropertyChanged;

        #endregion
    }
潘栩锋's avatar
潘栩锋 committed
38 39 40
    /// <summary>
    /// 
    /// </summary>
41 42
    public class CurveCell2 : INotifyPropertyChanged
    {
潘栩锋's avatar
潘栩锋 committed
43 44 45 46
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
47 48 49 50 51 52 53 54
        public override string ToString()
        {
            return $"ad={AD},value={Value:F2}";
        }
        /// <summary>
        /// 面密度
        /// </summary>
        public double Value { get; set; }
潘栩锋's avatar
潘栩锋 committed
55 56 57
        /// <summary>
        /// 
        /// </summary>
58 59 60 61 62 63
        public int AD { get; set; }

        #region INotifyPropertyChanged 成员
        public event PropertyChangedEventHandler PropertyChanged;
        #endregion
    }
潘栩锋's avatar
潘栩锋 committed
64 65 66
    /// <summary>
    /// 
    /// </summary>
潘栩锋's avatar
潘栩锋 committed
67 68 69 70 71 72 73 74 75 76 77 78 79 80
    public enum AD2ValueFlag
    {
        /// <summary>
        /// 修正后的曲线
        /// </summary>
        Revised,
        /// <summary>
        /// 原始曲线
        /// </summary>
        NoRevised
    }
    /// <summary>
    /// 曲线类型
    /// </summary>
81
    public enum CurveType
潘栩锋's avatar
潘栩锋 committed
82 83 84 85 86 87 88 89 90 91 92 93 94 95
    {
        /// <summary>
        /// 自然对数
        /// </summary>
        E,
        /// <summary>
        /// 直线拟合
        /// </summary>
        Line,
        /// <summary>
        /// 二次拟合
        /// </summary>
        X2
    }
潘栩锋's avatar
潘栩锋 committed
96 97 98
    /// <summary>
    /// 
    /// </summary>
99
    public enum CurveCorrectWay
潘栩锋's avatar
潘栩锋 committed
100 101 102 103 104 105 106 107 108 109 110
    {
        /// <summary>
        /// 单点校正时,比例放大
        /// </summary>
        OnePointIsScale,
        /// <summary>
        /// 单点校正时,平移
        /// </summary>
        OnePointIsOffset
    }
}