You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/Controls/Mesnac.Controls.ChemicalWei.../HslCurve/HslCurveItem.cs

122 lines
4.4 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace Mesnac.Controls.ChemicalWeighing.HslCurve
{
/// <summary>
/// 曲线数据对象
/// </summary>
// Token: 0x0200001D RID: 29
public class HslCurveItem
{
/// <summary>
/// 实例化一个对象
/// </summary>
// Token: 0x060002A7 RID: 679 RVA: 0x00021704 File Offset: 0x0001F904
public HslCurveItem()
{
this.LineColor = Color.Red;
this.LineThickness = 1f;
this.ReferenceAxisIndex = 0;
this.Visible = true;
this.LineRenderVisiable = true;
this.TitleRegion = new RectangleF(0f, 0f, 0f, 0f);
this.Style = CurveStyle.LineSegment;
}
/// <summary>
/// 线条的宽度
/// </summary>
// Token: 0x170000DF RID: 223
// (get) Token: 0x060002A8 RID: 680 RVA: 0x00021791 File Offset: 0x0001F991
// (set) Token: 0x060002A9 RID: 681 RVA: 0x00021799 File Offset: 0x0001F999
public float LineThickness { get; set; }
/// <summary>
/// 曲线的样式选择,可选择线段,还是平滑曲线,还是虚线
/// </summary>
// Token: 0x170000E0 RID: 224
// (get) Token: 0x060002AA RID: 682 RVA: 0x000217A2 File Offset: 0x0001F9A2
// (set) Token: 0x060002AB RID: 683 RVA: 0x000217AA File Offset: 0x0001F9AA
public CurveStyle Style { get; set; }
/// <summary>
/// 曲线颜色
/// </summary>
// Token: 0x170000E1 RID: 225
// (get) Token: 0x060002AC RID: 684 RVA: 0x000217B3 File Offset: 0x0001F9B3
// (set) Token: 0x060002AD RID: 685 RVA: 0x000217BB File Offset: 0x0001F9BB
public Color LineColor { get; set; }
/// <summary>
/// 是否左侧参考系0为左侧1为右侧其他是辅助坐标轴
/// </summary>
// Token: 0x170000E2 RID: 226
// (get) Token: 0x060002AE RID: 686 RVA: 0x000217C4 File Offset: 0x0001F9C4
// (set) Token: 0x060002AF RID: 687 RVA: 0x000217CC File Offset: 0x0001F9CC
public int ReferenceAxisIndex { get; set; }
/// <summary>
/// 本曲线是否显示出来,默认为显示
/// </summary>
// Token: 0x170000E3 RID: 227
// (get) Token: 0x060002B0 RID: 688 RVA: 0x000217D5 File Offset: 0x0001F9D5
// (set) Token: 0x060002B1 RID: 689 RVA: 0x000217DD File Offset: 0x0001F9DD
public bool Visible { get; set; }
/// <summary>
/// 用于曲线自身选择是否显示的情况的判断
/// </summary>
// Token: 0x170000E4 RID: 228
// (get) Token: 0x060002B2 RID: 690 RVA: 0x000217E6 File Offset: 0x0001F9E6
// (set) Token: 0x060002B3 RID: 691 RVA: 0x000217EE File Offset: 0x0001F9EE
public bool LineRenderVisiable { get; set; }
/// <summary>
/// 标题实现的基本区域
/// </summary>
// Token: 0x170000E5 RID: 229
// (get) Token: 0x060002B4 RID: 692 RVA: 0x000217F7 File Offset: 0x0001F9F7
// (set) Token: 0x060002B5 RID: 693 RVA: 0x000217FF File Offset: 0x0001F9FF
public RectangleF TitleRegion { get; set; }
/// <summary>
/// 本曲线在图形上显示的格式化信息,对历史数据有效
/// </summary>
// Token: 0x170000E6 RID: 230
// (get) Token: 0x060002B6 RID: 694 RVA: 0x00021808 File Offset: 0x0001FA08
// (set) Token: 0x060002B7 RID: 695 RVA: 0x00021810 File Offset: 0x0001FA10
public string RenderFormat { get; set; } = "{0}";
// Token: 0x060002B8 RID: 696 RVA: 0x0002181C File Offset: 0x0001FA1C
public Brush GetLineBrush()
{
bool flag = this.lineBrush == null;
if (flag)
{
this.lineBrush = new SolidBrush(this.LineColor);
}
return this.lineBrush;
}
/// <summary>
/// 数据
/// </summary>
// Token: 0x0400013C RID: 316
public float[] Data = null;
/// <summary>
/// 标记文本
/// </summary>
// Token: 0x0400013D RID: 317
public string[] MarkText = null;
// Token: 0x04000146 RID: 326
private Brush lineBrush = null;
}
}