AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
ChartComponent.cs
1 /************************************************/
2 /* */
3 /* Copyright (c) 2018 - 2021 monitor1394 */
4 /* https://github.com/monitor1394 */
5 /* */
6 /************************************************/
7 
8 using System;
9 using UnityEngine;
10 
11 namespace XCharts
12 {
13  public class ChartComponent
14  {
15  [NonSerialized] protected bool m_VertsDirty;
16  [NonSerialized] protected bool m_ComponentDirty;
17  [NonSerialized] protected Painter m_Painter;
21  public virtual bool vertsDirty { get { return m_VertsDirty; } }
25  public virtual bool componentDirty { get { return m_ComponentDirty; } }
29  public bool anyDirty { get { return vertsDirty || componentDirty; } }
30  public Painter painter { get { return m_Painter; } set { m_Painter = value; } }
31  public Action refreshComponent { get; set; }
32  public GameObject gameObject { get; set; }
33 
34  public virtual void SetVerticesDirty()
35  {
36  m_VertsDirty = true;
37  }
38 
39  public virtual void ClearVerticesDirty()
40  {
41  m_VertsDirty = false;
42  }
43 
44  public virtual void SetComponentDirty()
45  {
46  m_ComponentDirty = true;
47  }
48 
49  public virtual void ClearComponentDirty()
50  {
51  m_ComponentDirty = false;
52  }
53 
54  public virtual void ClearDirty()
55  {
56  ClearVerticesDirty();
57  ClearComponentDirty();
58  }
59 
60  public virtual void SetAllDirty()
61  {
62  SetVerticesDirty();
63  SetComponentDirty();
64  }
65  }
66 
68  {
69  }
70 
72  {
73  }
74 }
XCharts.MainComponent
Definition: ChartComponent.cs:67
XCharts.ChartComponent.anyDirty
bool anyDirty
需要重绘图表或重新初始化组件。
Definition: ChartComponent.cs:29
XCharts.Painter
Definition: Painter.cs:15
XCharts.ChartComponent.componentDirty
virtual bool componentDirty
组件重新初始化标记。
Definition: ChartComponent.cs:25
XCharts.SubComponent
Definition: ChartComponent.cs:71
XCharts
Definition: RewardChart.cs:14
XCharts.ChartComponent
Definition: ChartComponent.cs:13
XCharts.ChartComponent.vertsDirty
virtual bool vertsDirty
图表重绘标记。
Definition: ChartComponent.cs:21