描述由长度、顶部半径和底部半径定义的圆柱体、截锥体或圆锥体。
中心位置和方向由包含的
Entity 决定。
| Name | Type | Description |
|---|---|---|
options |
CylinderGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Members
bottomRadius : Property|undefined
获取或设置指定圆柱体底部半径的数值属性。
readonly definitionChanged : Event
获取每当属性或子属性被更改或修改时引发的事件。
distanceDisplayCondition : Property|undefined
Gets or sets the
DistanceDisplayCondition Property specifying at what distance from the camera that this cylinder will be displayed.
fill : Property|undefined
获取或设置指定圆柱体是否使用提供的材质进行填充的布尔属性。
-
Default Value:
true
heightReference : Property|undefined
获取或设置指定
HeightReference 的属性。
-
Default Value:
HeightReference.NONE
length : Property|undefined
获取或设置指定圆柱体长度的数值属性。
material : MaterialProperty|undefined
获取或设置指定用于填充圆柱体的材质的属性。
-
Default Value:
Color.WHITE
numberOfVerticalLines : Property|undefined
获取或设置指定沿轮廓周长绘制的垂直线数量的属性。
-
Default Value:
16
outline : Property|undefined
获取或设置指定圆柱体是否有轮廓线的布尔属性。
-
Default Value:
false
outlineColor : Property|undefined
获取或设置指定轮廓线
Color 的属性。
-
Default Value:
Color.BLACK
outlineWidth : Property|undefined
获取或设置指定轮廓线宽度的数值属性。
注意:在 Windows 平台的所有主流浏览器上,此属性将被忽略。详情请参见 (@link https://github.com/CesiumGS/cesium/issues/40}。
-
Default Value:
1.0
shadows : Property|undefined
获取或设置指定圆柱体是否从光源投射或接收阴影的枚举属性。
-
Default Value:
ShadowMode.DISABLED
show : Property|undefined
获取或设置指定圆柱体可见性的布尔属性。
-
Default Value:
true
slices : Property|undefined
获取或设置指定圆柱体周长周围边缘数量的属性。
-
Default Value:
128
topRadius : Property|undefined
获取或设置指定圆柱体顶部半径的数值属性。
Methods
clone(result) → CylinderGraphics
复制此实例。
| Name | Type | Description |
|---|---|---|
result |
CylinderGraphics | optional 存储结果的对象。 |
Returns:
修改后的结果参数,如果未提供则返回新实例。
将此对象上每个未赋值的属性分配给
提供的源对象上相同属性的值。
| 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> |
一个属性,指定从相机多远的距离显示此圆柱体。 |
