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

Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。 More...

Inheritance diagram for XCharts.Radar:
Collaboration diagram for XCharts.Radar:

Classes

class  Indicator
 Indicator of radar chart, which is used to assign multiple variables(dimensions) in radar chart. 雷达图的指示器,用来指定雷达图中的多个变量(维度)。 More...
 

Public Types

enum  Shape { Polygon, Circle }
 Radar render type, in which 'Polygon' and 'Circle' are supported. 雷达图绘制类型,支持 'Polygon' 和 'Circle'。 More...
 
enum  PositionType { PositionType.Vertice, PositionType.Between }
 The position type of radar. 显示位置。 More...
 

Public Member Functions

bool IsInIndicatorRange (int index, double value)
 
double GetIndicatorMin (int index)
 
double GetIndicatorMax (int index)
 
Vector3 GetIndicatorPosition (int index)
 
void AddIndicator (Radar.Indicator indicator)
 
Radar.Indicator AddIndicator (string name, float min, float max)
 
bool UpdateIndicator (int indicatorIndex, string name, float min, float max)
 
Radar.Indicator GetIndicator (int indicatorIndex)
 
- 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 ()
 

Public Attributes

Dictionary< int, List< Vector3 > > runtimeDataPosList = new Dictionary<int, List<Vector3>>()
 the data position list of radar. 雷达图的所有数据坐标点列表。 More...
 

Properties

bool show [get, set]
 [default:true] Set this to false to prevent the radar from showing. 是否显示雷达坐标系组件。 More...
 
Shape shape [get, set]
 Radar render type, in which 'Polygon' and 'Circle' are supported. 雷达图绘制类型,支持 'Polygon' 和 'Circle'。 More...
 
float radius [get, set]
 the radius of radar. 雷达图的半径。 More...
 
int splitNumber [get, set]
 Segments of indicator axis. 指示器轴的分割段数。 More...
 
float[] center [get, set]
 the center of radar chart. 雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。 More...
 
AxisLine axisLine [get, set]
 axis line. 轴线。 More...
 
AxisSplitLine splitLine [get, set]
 split line. 分割线。 More...
 
AxisSplitArea splitArea [get, set]
 Split area of axis in grid area. 分割区域。 More...
 
bool indicator [get, set]
 Whether to show indicator. 是否显示指示器。 More...
 
float indicatorGap [get, set]
 The gap of indicator and radar. 指示器和雷达的间距。 More...
 
int? ceilRate [get, set]
 The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. 最大最小值向上取整的倍率。默认为0时自动计算。 More...
 
bool isAxisTooltip [get, set]
 是否Tooltip显示轴线上的所有数据。 More...
 
PositionType positionType [get, set]
 The position type of indicator. 显示位置类型。 More...
 
Color32 outRangeColor [get, set]
 The color displayed when data out of range. 数值超出范围时显示的颜色。 More...
 
bool connectCenter [get, set]
 Whether serie data connect to radar center with line. 数值是否连线到中心点。 More...
 
bool lineGradient [get, set]
 Whether need gradient for data line. 数值线段是否需要渐变。 More...
 
List< IndicatorindicatorList [get]
 the indicator list. 指示器列表。 More...
 
int index [get, set]
 
Vector3 runtimeCenterPos [get, set]
 the center position of radar in container. 雷达图在容器中的具体中心点。 More...
 
float runtimeRadius [get, set]
 the true radius of radar. 雷达图的运行时实际半径。 More...
 
float runtimeDataRadius [get, set]
 
static Radar defaultRadar [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]
 

Additional Inherited Members

- Protected Attributes inherited from XCharts.ChartComponent
bool m_VertsDirty
 
bool m_ComponentDirty
 
Painter m_Painter
 

Detailed Description

Radar coordinate conponnet for radar charts. 雷达图坐标系组件,只适用于雷达图。

Definition at line 21 of file Radar.cs.

Member Enumeration Documentation

◆ PositionType

The position type of radar. 显示位置。

Enumerator
Vertice 

Display at the vertex. 显示在顶点处。

Between 

Display at the middle of line. 显示在两者之间。

Definition at line 36 of file Radar.cs.

37  {
42  Vertice,
47  Between,
48  }

◆ Shape

enum XCharts.Radar.Shape
strong

Radar render type, in which 'Polygon' and 'Circle' are supported. 雷达图绘制类型,支持 'Polygon' 和 'Circle'。

Definition at line 27 of file Radar.cs.

28  {
29  Polygon,
30  Circle
31  }

Member Data Documentation

◆ runtimeDataPosList

Dictionary<int, List<Vector3> > XCharts.Radar.runtimeDataPosList = new Dictionary<int, List<Vector3>>()

the data position list of radar. 雷达图的所有数据坐标点列表。

Definition at line 287 of file Radar.cs.

Property Documentation

◆ axisLine

AxisLine XCharts.Radar.axisLine
getset

axis line. 轴线。

Definition at line 172 of file Radar.cs.

172  {
173  get { return m_AxisLine; }
174  set { if (PropertyUtil.SetClass(ref m_AxisLine, value, true)) SetAllDirty(); }
175  }

◆ ceilRate

int? XCharts.Radar.ceilRate
getset

The ratio of maximum and minimum values rounded upward. The default is 0, which is automatically calculated. 最大最小值向上取整的倍率。默认为0时自动计算。

Definition at line 217 of file Radar.cs.

217  {
218  get { return m_CeilRate; }
219  set { if (PropertyUtil.SetStruct(ref m_CeilRate, value < 0 ? 0 : value)) SetAllDirty(); }
220  }

◆ center

float [] XCharts.Radar.center
getset

the center of radar chart. 雷达图的中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。

Definition at line 163 of file Radar.cs.

163  {
164  get { return m_Center; }
165  set { if (value != null) { m_Center = value; SetAllDirty(); } }
166  }

◆ connectCenter

bool XCharts.Radar.connectCenter
getset

Whether serie data connect to radar center with line. 数值是否连线到中心点。

Definition at line 252 of file Radar.cs.

252  {
253  get { return m_ConnectCenter; }
254  set { if (PropertyUtil.SetStruct(ref m_ConnectCenter, value)) SetAllDirty(); }
255  }

◆ indicator

bool XCharts.Radar.indicator
getset

Whether to show indicator. 是否显示指示器。

Definition at line 199 of file Radar.cs.

199  {
200  get { return m_Indicator; }
201  set { if (PropertyUtil.SetStruct(ref m_Indicator, value)) SetComponentDirty(); }
202  }

◆ indicatorGap

float XCharts.Radar.indicatorGap
getset

The gap of indicator and radar. 指示器和雷达的间距。

Definition at line 208 of file Radar.cs.

208  {
209  get { return m_IndicatorGap; }
210  set { if (PropertyUtil.SetStruct(ref m_IndicatorGap, value)) SetComponentDirty(); }
211  }

◆ indicatorList

List<Indicator> XCharts.Radar.indicatorList
get

the indicator list. 指示器列表。

Definition at line 269 of file Radar.cs.

269 { get { return m_IndicatorList; } }

◆ isAxisTooltip

bool XCharts.Radar.isAxisTooltip
getset

是否Tooltip显示轴线上的所有数据。

Definition at line 225 of file Radar.cs.

225  {
226  get { return m_IsAxisTooltip; }
227  set { if (PropertyUtil.SetStruct(ref m_IsAxisTooltip, value)) SetAllDirty(); }
228  }

◆ lineGradient

bool XCharts.Radar.lineGradient
getset

Whether need gradient for data line. 数值线段是否需要渐变。

Definition at line 261 of file Radar.cs.

261  {
262  get { return m_LineGradient; }
263  set { if (PropertyUtil.SetStruct(ref m_LineGradient, value)) SetAllDirty(); }
264  }

◆ outRangeColor

Color32 XCharts.Radar.outRangeColor
getset

The color displayed when data out of range. 数值超出范围时显示的颜色。

Definition at line 243 of file Radar.cs.

243  {
244  get { return m_OutRangeColor; }
245  set { if (PropertyUtil.SetStruct(ref m_OutRangeColor, value)) SetAllDirty(); }
246  }

◆ positionType

PositionType XCharts.Radar.positionType
getset

The position type of indicator. 显示位置类型。

Definition at line 234 of file Radar.cs.

234  {
235  get { return m_PositionType; }
236  set { if (PropertyUtil.SetStruct(ref m_PositionType, value)) SetAllDirty(); }
237  }

◆ radius

float XCharts.Radar.radius
getset

the radius of radar. 雷达图的半径。

Definition at line 144 of file Radar.cs.

144  {
145  get { return m_Radius; }
146  set { if (PropertyUtil.SetStruct(ref m_Radius, value)) SetAllDirty(); }
147  }

◆ runtimeCenterPos

Vector3 XCharts.Radar.runtimeCenterPos
getset

the center position of radar in container. 雷达图在容器中的具体中心点。

Definition at line 276 of file Radar.cs.

276 { get; internal set; }

◆ runtimeRadius

float XCharts.Radar.runtimeRadius
getset

the true radius of radar. 雷达图的运行时实际半径。

Definition at line 281 of file Radar.cs.

281 { get; internal set; }

◆ shape

Shape XCharts.Radar.shape
getset

Radar render type, in which 'Polygon' and 'Circle' are supported. 雷达图绘制类型,支持 'Polygon' 和 'Circle'。

Definition at line 135 of file Radar.cs.

135  {
136  get { return m_Shape; }
137  set { if (PropertyUtil.SetStruct(ref m_Shape, value)) SetAllDirty(); }
138  }

◆ show

bool XCharts.Radar.show
getset

[default:true] Set this to false to prevent the radar from showing. 是否显示雷达坐标系组件。

Definition at line 128 of file Radar.cs.

128 { get { return m_Show; } set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); } }

◆ splitArea

AxisSplitArea XCharts.Radar.splitArea
getset

Split area of axis in grid area. 分割区域。

Definition at line 190 of file Radar.cs.

190  {
191  get { return m_SplitArea; }
192  set { if (PropertyUtil.SetClass(ref m_SplitArea, value, true)) SetAllDirty(); }
193  }

◆ splitLine

AxisSplitLine XCharts.Radar.splitLine
getset

split line. 分割线。

Definition at line 181 of file Radar.cs.

181  {
182  get { return m_SplitLine; }
183  set { if (PropertyUtil.SetClass(ref m_SplitLine, value, true)) SetAllDirty(); }
184  }

◆ splitNumber

int XCharts.Radar.splitNumber
getset

Segments of indicator axis. 指示器轴的分割段数。

Definition at line 153 of file Radar.cs.

153  {
154  get { return m_SplitNumber; }
155  set { if (PropertyUtil.SetStruct(ref m_SplitNumber, value)) SetAllDirty(); }
156  }

The documentation for this class was generated from the following file:
XCharts.SerieSymbolType.Circle
@ Circle
圆形。