Vessel component for liquid chart. There can be multiple vessels in a Chart, which can be matched by vesselIndex in Serie.  
 More...
|  | 
| 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] | 
|  | 
| 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] | 
|  | 
|  | 
| virtual void | SetVerticesDirty () | 
|  | 
| virtual void | ClearVerticesDirty () | 
|  | 
| virtual void | SetComponentDirty () | 
|  | 
| virtual void | ClearComponentDirty () | 
|  | 
| virtual void | ClearDirty () | 
|  | 
| virtual void | SetAllDirty () | 
|  | 
| bool | m_VertsDirty | 
|  | 
| bool | m_ComponentDirty | 
|  | 
| Painter | m_Painter | 
|  | 
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.
◆ Shape
| Enumerator | 
|---|
| Circle | 圆形  | 
| Rect | 正方形。  | 
| Triangle | 三角形。  | 
| Diamond | 菱形。  | 
| None | 不显示标记。  | 
Definition at line 23 of file Vessel.cs.
 
 
◆ 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.
  181             get { 
return m_AutoColor; }
 
  182             set { 
if (PropertyUtil.SetStruct(ref m_AutoColor, value)) SetVerticesDirty(); }
 
 
 
 
◆ 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.
  162             get { 
return m_BackgroundColor; }
 
  163             set { 
if (PropertyUtil.SetColor(ref m_BackgroundColor, value)) SetVerticesDirty(); }
 
 
 
 
◆ 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.
  109             get { 
return m_Center; }
 
  110             set { 
if (value != 
null) { m_Center = value; SetAllDirty(); } }
 
 
 
 
◆ color
  
  | 
        
          | Color32 XCharts.Vessel.color |  | getset | 
 
Vessel color. The default is consistent with Serie. 容器颜色。默认和serie一致。 
Definition at line 170 of file Vessel.cs.
  171             get { 
return m_Color; }
 
  172             set { 
if (PropertyUtil.SetColor(ref m_Color, value)) SetVerticesDirty(); }
 
 
 
 
◆ 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.
  190             get { 
return m_CornerRadius; }
 
  191             set { 
if (PropertyUtil.SetClass(ref m_CornerRadius, value, 
true)) SetVerticesDirty(); }
 
 
 
 
◆ gap
The gap between the vessel and the liquid. 间隙。容器和液体的间隙。 [defaut: 10f] 
Definition at line 96 of file Vessel.cs.
   98             set { 
if (PropertyUtil.SetStruct(ref m_Gap, value)) SetVerticesDirty(); }
 
 
 
 
◆ 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.
  142             get { 
return m_Height; }
 
  143             set { 
if (PropertyUtil.SetStruct(ref m_Height, value)) SetAllDirty(); }
 
 
 
 
◆ 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.
  120             get { 
return m_Radius; }
 
  121             set { 
if (PropertyUtil.SetStruct(ref m_Radius, value)) SetAllDirty(); }
 
 
 
 
◆ 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.
   77             get { 
return m_Shape; }
 
   78             set { 
if (PropertyUtil.SetStruct(ref m_Shape, value)) SetVerticesDirty(); }
 
 
 
 
◆ shapeWidth
  
  | 
        
          | float XCharts.Vessel.shapeWidth |  | getset | 
 
Thickness of vessel. 容器厚度。 [defaut: 5f] 
Definition at line 86 of file Vessel.cs.
   87             get { 
return m_ShapeWidth; }
 
   88             set { 
if (PropertyUtil.SetStruct(ref m_ShapeWidth, value)) SetVerticesDirty(); }
 
 
 
 
◆ show
Whether to show the vessel. 是否显示容器组件。 [defaut: true] 
Definition at line 66 of file Vessel.cs.
   67             get { 
return m_Show; }
 
   68             set { 
if (PropertyUtil.SetStruct(ref m_Show, value)) SetVerticesDirty(); }
 
 
 
 
◆ smoothness
  
  | 
        
          | float XCharts.Vessel.smoothness |  | getset | 
 
The smoothness of wave. 水波平滑度。 [default: 1f] 
Definition at line 151 of file Vessel.cs.
  152             get { 
return m_Smoothness; }
 
  153             set { 
if (PropertyUtil.SetStruct(ref m_Smoothness, value)) SetAllDirty(); }
 
 
 
 
◆ 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.
  131             get { 
return m_Width; }
 
  132             set { 
if (PropertyUtil.SetStruct(ref m_Width, value)) SetAllDirty(); }
 
 
 
 
The documentation for this class was generated from the following file: