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

Vessel component for liquid chart. There can be multiple vessels in a Chart, which can be matched by vesselIndex in Serie. More...

Inheritance diagram for XCharts.Vessel:
Collaboration diagram for XCharts.Vessel:

Public Types

enum  Shape {
  Shape.Circle, Shape.Rect, Shape.Triangle, Shape.Diamond,
  Shape.None
}
 

Properties

bool show [get, set]
 Whether to show the vessel. 是否显示容器组件。 [defaut: true] More...
 
Shape shape [get, set]
 The shape of vessel. 容器形状。 [default: Shape.Circle] More...
 
float shapeWidth [get, set]
 Thickness of vessel. 容器厚度。 [defaut: 5f] More...
 
float gap [get, set]
 The gap between the vessel and the liquid. 间隙。容器和液体的间隙。 [defaut: 10f] More...
 
float[] center [get, set]
 The center of vesselß. The center[0] is the x-coordinate, and the center[1] is the y-coordinate. When value between 0 and 1 represents a percentage relative to the chart. 中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时表示图表宽高最小值的百分比。 [default:[0.5f,0.45f]] More...
 
float radius [get, set]
 The radius of vessel. When value between 0 and 1 represents a percentage relative to the chart. 半径。 [default: 0.35f] More...
 
float width [get, set]
 The width of vessel. When value between 0 and 1 represents a percentage relative to the chart. 容器的宽。shape为Rect时有效。 [default: 0.35f] More...
 
float height [get, set]
 The height of vessel. When value between 0 and 1 represents a percentage relative to the chart. 容器的高。shape为Rect时有效。 [default: 0.35f] More...
 
float smoothness [get, set]
 The smoothness of wave. 水波平滑度。 [default: 1f] More...
 
Color32 backgroundColor [get, set]
 Background color of polar, which is transparent by default. 背景色,默认透明。 [default: Color.clear] More...
 
Color32 color [get, set]
 Vessel color. The default is consistent with Serie. 容器颜色。默认和serie一致。 More...
 
bool autoColor [get, set]
 Whether automatic color. If true, the color matches serie. 是否自动颜色。为true时颜色会和serie一致。 [default: true] More...
 
float[] cornerRadius [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个圆角半径(顺时针左上,右上,右下,左下)。shape为Rect时有效。 More...
 
int index [get, set]
 
Vector3 runtimeCenterPos [get, set]
 the runtime center position of vessel. 运行时中心点。 More...
 
float runtimeRadius [get, set]
 the runtime radius of vessel. 运行时半径。 More...
 
float runtimeInnerRadius [get, set]
 The actual radius after deducting shapeWidth and gap. 运行时内半径。扣除厚度和间隙后的实际半径。 More...
 
float runtimeWidth [get, set]
 
float runtimeHeight [get, set]
 
static Vessel defaultVessel [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

- 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 inherited from XCharts.ChartComponent
bool m_VertsDirty
 
bool m_ComponentDirty
 
Painter m_Painter
 

Detailed Description

Vessel component for liquid chart. There can be multiple vessels in a Chart, which can be matched by vesselIndex in Serie.

容器组件。 一般用于LiquidChart。一个Chart中可以有多个Vessel,Serie中用vesselIndex来对应。

Definition at line 21 of file Vessel.cs.

Member Enumeration Documentation

◆ Shape

enum XCharts.Vessel.Shape
strong
Enumerator
Circle 

圆形

Rect 

正方形。

Triangle 

三角形。

Diamond 

菱形。

None 

不显示标记。

Definition at line 23 of file Vessel.cs.

24  {
28  Circle,
32  Rect,
36  Triangle,
40  Diamond,
44  None,
45  }

Property Documentation

◆ autoColor

bool XCharts.Vessel.autoColor
getset

Whether automatic color. If true, the color matches serie. 是否自动颜色。为true时颜色会和serie一致。 [default: true]

Definition at line 180 of file Vessel.cs.

180  {
181  get { return m_AutoColor; }
182  set { if (PropertyUtil.SetStruct(ref m_AutoColor, value)) SetVerticesDirty(); }
183  }

◆ backgroundColor

Color32 XCharts.Vessel.backgroundColor
getset

Background color of polar, which is transparent by default. 背景色,默认透明。 [default: Color.clear]

Definition at line 161 of file Vessel.cs.

161  {
162  get { return m_BackgroundColor; }
163  set { if (PropertyUtil.SetColor(ref m_BackgroundColor, value)) SetVerticesDirty(); }
164  }

◆ center

float [] XCharts.Vessel.center
getset

The center of vesselß. The center[0] is the x-coordinate, and the center[1] is the y-coordinate. When value between 0 and 1 represents a percentage relative to the chart. 中心点。数组的第一项是横坐标,第二项是纵坐标。 当值为0-1之间时表示百分比,设置成百分比时表示图表宽高最小值的百分比。 [default:[0.5f,0.45f]]

Definition at line 108 of file Vessel.cs.

108  {
109  get { return m_Center; }
110  set { if (value != null) { m_Center = value; SetAllDirty(); } }
111  }

◆ color

Color32 XCharts.Vessel.color
getset

Vessel color. The default is consistent with Serie. 容器颜色。默认和serie一致。

Definition at line 170 of file Vessel.cs.

170  {
171  get { return m_Color; }
172  set { if (PropertyUtil.SetColor(ref m_Color, value)) SetVerticesDirty(); }
173  }

◆ cornerRadius

float [] XCharts.Vessel.cornerRadius
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个圆角半径(顺时针左上,右上,右下,左下)。shape为Rect时有效。

Definition at line 189 of file Vessel.cs.

189  {
190  get { return m_CornerRadius; }
191  set { if (PropertyUtil.SetClass(ref m_CornerRadius, value, true)) SetVerticesDirty(); }
192  }

◆ gap

float XCharts.Vessel.gap
getset

The gap between the vessel and the liquid. 间隙。容器和液体的间隙。 [defaut: 10f]

Definition at line 96 of file Vessel.cs.

96  {
97  get { return m_Gap; }
98  set { if (PropertyUtil.SetStruct(ref m_Gap, value)) SetVerticesDirty(); }
99  }

◆ height

float XCharts.Vessel.height
getset

The height of vessel. When value between 0 and 1 represents a percentage relative to the chart. 容器的高。shape为Rect时有效。 [default: 0.35f]

Definition at line 141 of file Vessel.cs.

141  {
142  get { return m_Height; }
143  set { if (PropertyUtil.SetStruct(ref m_Height, value)) SetAllDirty(); }
144  }

◆ radius

float XCharts.Vessel.radius
getset

The radius of vessel. When value between 0 and 1 represents a percentage relative to the chart. 半径。 [default: 0.35f]

Definition at line 119 of file Vessel.cs.

119  {
120  get { return m_Radius; }
121  set { if (PropertyUtil.SetStruct(ref m_Radius, value)) SetAllDirty(); }
122  }

◆ runtimeCenterPos

Vector3 XCharts.Vessel.runtimeCenterPos
getset

the runtime center position of vessel. 运行时中心点。

Definition at line 198 of file Vessel.cs.

198 { get; internal set; }

◆ runtimeInnerRadius

float XCharts.Vessel.runtimeInnerRadius
getset

The actual radius after deducting shapeWidth and gap. 运行时内半径。扣除厚度和间隙后的实际半径。

Definition at line 208 of file Vessel.cs.

208 { get; internal set; }

◆ runtimeRadius

float XCharts.Vessel.runtimeRadius
getset

the runtime radius of vessel. 运行时半径。

Definition at line 203 of file Vessel.cs.

203 { get; internal set; }

◆ shape

Shape XCharts.Vessel.shape
getset

The shape of vessel. 容器形状。 [default: Shape.Circle]

Definition at line 76 of file Vessel.cs.

76  {
77  get { return m_Shape; }
78  set { if (PropertyUtil.SetStruct(ref m_Shape, value)) SetVerticesDirty(); }
79  }

◆ shapeWidth

float XCharts.Vessel.shapeWidth
getset

Thickness of vessel. 容器厚度。 [defaut: 5f]

Definition at line 86 of file Vessel.cs.

86  {
87  get { return m_ShapeWidth; }
88  set { if (PropertyUtil.SetStruct(ref m_ShapeWidth, value)) SetVerticesDirty(); }
89  }

◆ show

bool XCharts.Vessel.show
getset

Whether to show the vessel. 是否显示容器组件。 [defaut: true]

Definition at line 66 of file Vessel.cs.

66  {
67  get { return m_Show; }
68  set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetVerticesDirty(); }
69  }

◆ smoothness

float XCharts.Vessel.smoothness
getset

The smoothness of wave. 水波平滑度。 [default: 1f]

Definition at line 151 of file Vessel.cs.

151  {
152  get { return m_Smoothness; }
153  set { if (PropertyUtil.SetStruct(ref m_Smoothness, value)) SetAllDirty(); }
154  }

◆ width

float XCharts.Vessel.width
getset

The width of vessel. When value between 0 and 1 represents a percentage relative to the chart. 容器的宽。shape为Rect时有效。 [default: 0.35f]

Definition at line 130 of file Vessel.cs.

130  {
131  get { return m_Width; }
132  set { if (PropertyUtil.SetStruct(ref m_Width, value)) SetAllDirty(); }
133  }

The documentation for this class was generated from the following file:
XCharts.SerieSymbolType.Circle
@ Circle
圆形。
XCharts.RoseType.None
@ None
Don't show as Nightingale chart.不展示成南丁格尔玫瑰图
XCharts.SerieSymbolType.Diamond
@ Diamond
菱形。
XCharts.SerieSymbolType.Triangle
@ Triangle
三角形。
XCharts.SerieSymbolType.Rect
@ Rect
正方形。可通过设置itemStyle的cornerRadius变成圆角矩形。