tangxu
2024-04-24 1c5fa983ae3506c2edaa88c51a959d46685c1ba1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
 
namespace IStation.WinFrmUI.ViewModel
{
    /// <summary>
    /// 离心泵  频谱形状
    /// </summary>
    [Serializable]
    public class LxpSpectrumShape
    {
        public LxpSpectrumShape()
        {
        }
 
        public LxpSpectrumShape(LxpSpectrumShape rhs)
        {
            if (rhs != null)
            {
                BasePoints = rhs.BasePoints.ToList();
                SimularPoints = rhs.SimularPoints.ToList();
                LeftParabolaPoints = rhs.LeftParabolaPoints.ToList();
                RightParabolaPoints = rhs.RightParabolaPoints.ToList();
                BackColor = rhs.BackColor;
                BoudaryColor = rhs.BoudaryColor;
                BoudaryWidth = rhs.BoudaryWidth;
                SpectrumDispStyle = rhs.SpectrumDispStyle;
            }
        }
 
        public void ResetPointInfo(LxpSpectrumShape rhs)
        {
            if (rhs != null)
            {
                BasePoints = rhs.BasePoints.ToList();
                SimularPoints = rhs.SimularPoints.ToList();
                LeftParabolaPoints = rhs.LeftParabolaPoints.ToList();
                RightParabolaPoints = rhs.RightParabolaPoints.ToList();
            }
        }
 
        public List<Model.CurvePoint> BasePoints;
 
        public List<Model.CurvePoint> SimularPoints;
 
        public List<Model.CurvePoint> LeftParabolaPoints;
 
        public List<Model.CurvePoint> RightParabolaPoints;
 
        public eSpectrumDispStyle SpectrumDispStyle = eSpectrumDispStyle.Solid;
 
        public Color BackColor = Color.White;
 
        public Color BoudaryColor = Color.Yellow;
 
        public float BoudaryWidth = 2f;
 
    }
}