AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
XCharts.Settings Class Reference

Global parameter setting component. The default value can be used in general, and can be adjusted when necessary. 全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。 More...

Inheritance diagram for XCharts.Settings:
Collaboration diagram for XCharts.Settings:

Public Member Functions

void Copy (Settings settings)
 
void Reset ()
 
- Public Member Functions inherited from XCharts.ChartComponent
virtual void SetVerticesDirty ()
 
virtual void ClearVerticesDirty ()
 
virtual void SetComponentDirty ()
 
virtual void ClearComponentDirty ()
 
virtual void ClearDirty ()
 
virtual void SetAllDirty ()
 

Protected Attributes

int m_MaxPainter = 10
 
bool m_ReversePainter = false
 
Material m_BasePainterMaterial
 
Material m_SeriePainterMaterial
 
Material m_TopPainterMaterial
 
float m_LineSmoothStyle = 3f
 
float m_LineSmoothness = 2f
 
float m_LineSegmentDistance = 3f
 
float m_CicleSmoothness = 2f
 
float m_LegendIconLineWidth = 2
 
- Protected Attributes inherited from XCharts.ChartComponent
bool m_VertsDirty
 
bool m_ComponentDirty
 
Painter m_Painter
 

Properties

int? maxPainter [get, set]
 max painter. 设定的painter数量。 More...
 
bool reversePainter [get, set]
 Painter是否逆序。逆序时index大的serie最先绘制。 More...
 
Material basePainterMaterial [get, set]
 Base Pointer 材质球,设置后会影响Axis等。 More...
 
Material seriePainterMaterial [get, set]
 Serie Pointer 材质球,设置后会影响所有Serie。 More...
 
Material topPainterMaterial [get, set]
 Top Pointer 材质球,设置后会影响Tooltip等。 More...
 
float? lineSmoothStyle [get, set]
 Curve smoothing factor. By adjusting the smoothing coefficient, the curvature of the curve can be changed, and different curves with slightly different appearance can be obtained. 曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。 More...
 
float? lineSmoothness [get, set]
 Smoothness of curve. The smaller the value, the smoother the curve, but the number of vertices will increase. When the area with gradient is filled, the larger the value, the worse the transition effect. 曲线平滑度。值越小曲线越平滑,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。 More...
 
float? lineSegmentDistance [get, set]
 The partition distance of a line segment. A line in a normal line chart is made up of many segments, the number of which is determined by the change in value. The smaller the number of segments, the higher the number of vertices. When the area with gradient is filled, the larger the value, the worse the transition effect. 线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。 More...
 
float? cicleSmoothness [get, set]
 the smoothess of cricle. 圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。 More...
 
float legendIconLineWidth [get, set]
 the width of line serie legend. Line类型图例图标的线条宽度。 More...
 
float[] legendIconCornerRadius [get, set]
 The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). 图例圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。 More...
 
static Settings DefaultSettings [get]
 
- Properties inherited from XCharts.ChartComponent
virtual bool vertsDirty [get]
 图表重绘标记。 More...
 
virtual bool componentDirty [get]
 组件重新初始化标记。 More...
 
bool anyDirty [get]
 需要重绘图表或重新初始化组件。 More...
 
Painter painter [get, set]
 
Action refreshComponent [get, set]
 
GameObject gameObject [get, set]
 

Detailed Description

Global parameter setting component. The default value can be used in general, and can be adjusted when necessary. 全局参数设置组件。一般情况下可使用默认值,当有需要时可进行调整。

Definition at line 18 of file Settings.cs.

Property Documentation

◆ basePainterMaterial

Material XCharts.Settings.basePainterMaterial
getset

Base Pointer 材质球,设置后会影响Axis等。

Definition at line 53 of file Settings.cs.

53  {
54  get { return m_BasePainterMaterial; }
55  set { if (PropertyUtil.SetClass(ref m_BasePainterMaterial, value)) SetComponentDirty(); }
56  }

◆ cicleSmoothness

float? XCharts.Settings.cicleSmoothness
getset

the smoothess of cricle. 圆形的平滑度。数越小圆越平滑,但顶点数也会随之增加。

Definition at line 111 of file Settings.cs.

111  {
112  get { return m_CicleSmoothness; }
113  set { if (PropertyUtil.SetStruct(ref m_CicleSmoothness, value < 0 ? 1f : value)) SetVerticesDirty(); }
114  }

◆ legendIconCornerRadius

float [] XCharts.Settings.legendIconCornerRadius
getset

The radius of rounded corner. Its unit is px. Use array to respectively specify the 4 corner radiuses((clockwise upper left, upper right, bottom right and bottom left)). 图例圆角半径。用数组分别指定4个圆角半径(顺时针左上,右上,右下,左下)。

Definition at line 131 of file Settings.cs.

131  {
132  get { return m_LegendIconCornerRadius; }
133  set { if (PropertyUtil.SetClass(ref m_LegendIconCornerRadius, value, true)) SetVerticesDirty(); }
134  }

◆ legendIconLineWidth

float XCharts.Settings.legendIconLineWidth
getset

the width of line serie legend. Line类型图例图标的线条宽度。

Definition at line 121 of file Settings.cs.

121  {
122  get { return m_LegendIconLineWidth; }
123  set { if (PropertyUtil.SetStruct(ref m_LegendIconLineWidth, value)) SetVerticesDirty(); }
124  }

◆ lineSegmentDistance

float? XCharts.Settings.lineSegmentDistance
getset

The partition distance of a line segment. A line in a normal line chart is made up of many segments, the number of which is determined by the change in value. The smaller the number of segments, the higher the number of vertices. When the area with gradient is filled, the larger the value, the worse the transition effect. 线段的分割距离。普通折线图的线是由很多线段组成,段数由该数值决定。值越小段数越多,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。

Definition at line 102 of file Settings.cs.

102  {
103  get { return m_LineSegmentDistance; }
104  set { if (PropertyUtil.SetStruct(ref m_LineSegmentDistance, value < 0 ? 1f : value)) SetVerticesDirty(); }
105  }

◆ lineSmoothness

float? XCharts.Settings.lineSmoothness
getset

Smoothness of curve. The smaller the value, the smoother the curve, but the number of vertices will increase. When the area with gradient is filled, the larger the value, the worse the transition effect. 曲线平滑度。值越小曲线越平滑,但顶点数也会随之增加。当开启有渐变的区域填充时,数值越大渐变过渡效果越差。

Definition at line 90 of file Settings.cs.

90  {
91  get { return m_LineSmoothness; }
92  set { if (PropertyUtil.SetStruct(ref m_LineSmoothStyle, value < 0 ? 1f : value)) SetVerticesDirty(); }
93  }

◆ lineSmoothStyle

float? XCharts.Settings.lineSmoothStyle
getset

Curve smoothing factor. By adjusting the smoothing coefficient, the curvature of the curve can be changed, and different curves with slightly different appearance can be obtained. 曲线平滑系数。通过调整平滑系数可以改变曲线的曲率,得到外观稍微有变化的不同曲线。

Definition at line 79 of file Settings.cs.

79  {
80  get { return m_LineSmoothStyle; }
81  set { if (PropertyUtil.SetStruct(ref m_LineSmoothStyle, value < 0 ? 1f : value)) SetVerticesDirty(); }
82  }

◆ maxPainter

int? XCharts.Settings.maxPainter
getset

max painter. 设定的painter数量。

Definition at line 37 of file Settings.cs.

37  {
38  get { return m_MaxPainter; }
39  set { if (PropertyUtil.SetStruct(ref m_MaxPainter, value < 0 ? 1 : value)) SetVerticesDirty(); }
40  }

◆ reversePainter

bool XCharts.Settings.reversePainter
getset

Painter是否逆序。逆序时index大的serie最先绘制。

Definition at line 45 of file Settings.cs.

45  {
46  get { return m_ReversePainter; }
47  set { if (PropertyUtil.SetStruct(ref m_ReversePainter, value)) SetVerticesDirty(); }
48  }

◆ seriePainterMaterial

Material XCharts.Settings.seriePainterMaterial
getset

Serie Pointer 材质球,设置后会影响所有Serie。

Definition at line 61 of file Settings.cs.

61  {
62  get { return m_SeriePainterMaterial; }
63  set { if (PropertyUtil.SetClass(ref m_SeriePainterMaterial, value)) SetComponentDirty(); }
64  }

◆ topPainterMaterial

Material XCharts.Settings.topPainterMaterial
getset

Top Pointer 材质球,设置后会影响Tooltip等。

Definition at line 69 of file Settings.cs.

69  {
70  get { return m_TopPainterMaterial; }
71  set { if (PropertyUtil.SetClass(ref m_TopPainterMaterial, value)) SetComponentDirty(); }
72  }

The documentation for this class was generated from the following file: