AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
Emphasis.cs
1 /************************************************/
2 /* */
3 /* Copyright (c) 2018 - 2021 monitor1394 */
4 /* https://github.com/monitor1394 */
5 /* */
6 /************************************************/
7 
8 
9 using UnityEngine;
10 
11 namespace XCharts
12 {
16  [System.Serializable]
17  public class Emphasis : SubComponent
18  {
19  [SerializeField] private bool m_Show;
20  [SerializeField] private SerieLabel m_Label = new SerieLabel();
21  [SerializeField] private ItemStyle m_ItemStyle = new ItemStyle();
22 
23  public void Reset()
24  {
25  m_Show = false;
26  m_Label.Reset();
27  m_ItemStyle.Reset();
28  }
29 
33  public bool show
34  {
35  get { return m_Show; }
36  set { m_Show = value; }
37  }
41  public SerieLabel label
42  {
43  get { return m_Label; }
44  set { if (PropertyUtil.SetClass(ref m_Label, value, true)) SetAllDirty(); }
45  }
49  public ItemStyle itemStyle
50  {
51  get { return m_ItemStyle; }
52  set { if (PropertyUtil.SetClass(ref m_ItemStyle, value, true)) SetVerticesDirty(); }
53  }
54 
55  public override bool vertsDirty { get { return m_VertsDirty || label.vertsDirty || itemStyle.vertsDirty; } }
56 
57  public override bool componentDirty { get { return m_ComponentDirty || label.componentDirty; } }
58 
59  public override void ClearVerticesDirty()
60  {
61  base.ClearVerticesDirty();
62  label.ClearVerticesDirty();
63  itemStyle.ClearVerticesDirty();
64  }
65 
66  public override void ClearComponentDirty()
67  {
68  base.ClearComponentDirty();
69  label.ClearComponentDirty();
70  }
71  }
72 }
XCharts.Emphasis.itemStyle
ItemStyle itemStyle
图形样式。
Definition: Emphasis.cs:50
XCharts.Emphasis.show
bool show
是否启用高亮样式。
Definition: Emphasis.cs:34
XCharts.ChartComponent.componentDirty
virtual bool componentDirty
组件重新初始化标记。
Definition: ChartComponent.cs:25
XCharts.SubComponent
Definition: ChartComponent.cs:71
XCharts
Definition: RewardChart.cs:14
XCharts.Emphasis.label
SerieLabel label
图形文本标签。
Definition: Emphasis.cs:42
XCharts.Emphasis
高亮的图形样式和文本标签样式。
Definition: Emphasis.cs:17
XCharts.SerieLabel
Text label of chart, to explain some data information about graphic item like value,...
Definition: SerieLabel.cs:18
XCharts.ChartComponent.vertsDirty
virtual bool vertsDirty
图表重绘标记。
Definition: ChartComponent.cs:21
XCharts.ItemStyle
图形样式。
Definition: ItemStyle.cs:18