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;
|
|
}
|
}
|