描述由长度、顶部半径和底部半径定义的圆柱体、截断圆锥体或圆锥体。
中心位置和方向由包含的
Entity
确定。
Name | Type | Description |
---|---|---|
options |
CylinderGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Members
bottomRadius : Property|undefined
获取或设置numeric 指定圆柱体底部半径的属性。
readonly definitionChanged : Event
获取在更改或修改属性或子属性时引发的事件。
distanceDisplayCondition : Property|undefined
获取或设置
DistanceDisplayCondition
指定在距摄像机多远处显示此圆柱体的属性。
fill : Property|undefined
获取或设置boolean 属性,指定是否使用提供的材质填充圆柱体。
-
Default Value:
true
heightReference : Property|undefined
获取或设置指定
HeightReference
的属性。
-
Default Value:
HeightReference.NONE
length : Property|undefined
获取或设置numeric 指定圆柱体长度的属性。
material : MaterialProperty|undefined
获取或设置指定用于填充圆柱体的材料的属性。
-
Default Value:
Color.WHITE
numberOfVerticalLines : Property|undefined
获取或设置指定要沿轮廓周长绘制的垂直线数的属性。
-
Default Value:
16
outline : Property|undefined
获取或设置boolean 指定是否对圆柱体进行轮廓划分的属性。
-
Default Value:
false
outlineColor : Property|undefined
获取或设置Property 指定轮廓的
Color
。
-
Default Value:
Color.BLACK
outlineWidth : Property|undefined
获取或设置numeric 指定轮廓宽度的属性。
Note: 在 Windows 平台上的所有主要浏览器上都将忽略此属性。了解详情, see (@link https://github.com/CesiumGS/cesium/issues/40}.
-
Default Value:
1.0
shadows : Property|undefined
获取或设置枚举 Property 指定圆柱体是否
从光源投射或接收阴影。
-
Default Value:
ShadowMode.DISABLED
show : Property|undefined
获取或设置boolean 指定圆柱体可见性的属性。
-
Default Value:
true
slices : Property|undefined
获取或设置指定圆柱体周长周围的边数的属性。
-
Default Value:
128
topRadius : Property|undefined
获取或设置numeric 指定圆柱体顶部半径的属性。
Methods
clone(result) → CylinderGraphics
复制实例。
Name | Type | Description |
---|---|---|
result |
CylinderGraphics | optional 要在其上存储结果的对象。 |
Returns:
修改后的结果参数或者一个新实例(如果未提供)。
将此对象上每个未分配的属性分配给值
的 API 值。
Name | Type | Description |
---|---|---|
source |
CylinderGraphics | 要合并到此对象中的对象。 |
Type Definitions
CylinderGraphics 构造函数的初始化选项
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 一个布尔属性,指定圆柱体的可见性。 |
length |
Property | number |
<optional> |
指定圆柱体长度的数字属性。 | |
topRadius |
Property | number |
<optional> |
一个数字属性,用于指定圆柱体顶部的半径。 | |
bottomRadius |
Property | number |
<optional> |
一个数字属性,用于指定圆柱体底部的半径。 | |
heightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | 一个属性,用于指定从实体位置开始的高度相对于什么。 |
fill |
Property | boolean |
<optional> |
true | 一个布尔属性,指定是否使用提供的材质填充圆柱体。 |
material |
MaterialProperty | Color |
<optional> |
Color.WHITE | 指定用于填充圆柱体的材质的属性。 |
outline |
Property | boolean |
<optional> |
false | 一个布尔属性,指定是否对圆柱体进行轮廓划分。 |
outlineColor |
Property | Color |
<optional> |
Color.BLACK | 指定轮廓的 Color 的属性。 |
outlineWidth |
Property | number |
<optional> |
1.0 | 指定轮廓宽度的数字属性。 |
numberOfVerticalLines |
Property | number |
<optional> |
16 | 一个数字属性,指定要沿轮廓的周长绘制的垂直线数。 |
slices |
Property | number |
<optional> |
128 | 圆柱体周边的边数。 |
shadows |
Property | ShadowMode |
<optional> |
ShadowMode.DISABLED | 一个枚举属性,指定圆柱体是投射还是接收来自光源的阴影。 |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
一个属性,指定在距摄像机多远处显示此圆柱体。 |