描述由长度、顶部半径和底部半径定义的圆柱体、截头圆锥体或圆锥体。
中心位置和朝向由所包含的
Entity 决定。
| Name | Type | Description |
|---|---|---|
options |
CylinderGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Members
bottomRadius : Property|undefined
获取或设置指定圆柱体底部半径的数值型 Property。
readonly definitionChanged : Event
获取在属性或子属性发生更改或修改时触发的事件。
distanceDisplayCondition : Property|undefined
获取或设置
DistanceDisplayCondition Property,指定从相机多远处显示此圆柱体。
fill : Property|undefined
获取或设置布尔型 Property,指定圆柱体是否用所提供的材质填充。
-
Default Value:
true
heightReference : Property|undefined
获取或设置指定
HeightReference 的 Property。
-
Default Value:
HeightReference.NONE
length : Property|undefined
获取或设置指定圆柱体长度的数值型 Property。
material : MaterialProperty|undefined
获取或设置指定用于填充圆柱体的材质的 Property。
-
Default Value:
Color.WHITE
numberOfVerticalLines : Property|undefined
获取或设置指定沿轮廓周长绘制的垂直线条数量的 Property。
-
Default Value:
16
outline : Property|undefined
获取或设置布尔型 Property,指定圆柱体是否有轮廓。
-
Default Value:
false
outlineColor : Property|undefined
获取或设置指定轮廓
Color 的 Property。
-
Default Value:
Color.BLACK
outlineWidth : Property|undefined
Gets or sets the numeric Property specifying the width of the outline.
注意:在 Windows 平台上的所有主流浏览器中,此属性将被忽略。详情请参阅 (@link https://github.com/CesiumGS/cesium/issues/40}。
-
Default Value:
1.0
shadows : Property|undefined
获取或设置枚举型 Property,指定圆柱体
是否投射或接收来自光源的阴影。
-
Default Value:
ShadowMode.DISABLED
show : Property|undefined
获取或设置布尔型 Property,指定圆柱体的可见性。
-
Default Value:
true
slices : Property|undefined
获取或设置指定圆柱体周向边数量的 Property。
-
Default Value:
128
topRadius : Property|undefined
获取或设置指定圆柱体顶部半径的数值型 Property。
Methods
clone(result) → CylinderGraphics
复制此实例。
| Name | Type | Description |
|---|---|---|
result |
CylinderGraphics | optional 用于存储结果的对象。 |
Returns:
修改后的 result 参数,如果未提供则返回一个新实例。
将此对象上每个未赋值的属性赋值为
所提供源对象上相同属性的值。
| Name | Type | Description |
|---|---|---|
source |
CylinderGraphics | 要合并到此对象中的对象。 |
Type Definitions
CylinderGraphics 构造函数的初始化选项
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 指定圆柱体可见性的布尔型 Property。 |
length |
Property | number |
<optional> |
指定圆柱体长度的数值型 Property。 | |
topRadius |
Property | number |
<optional> |
指定圆柱体顶部半径的数值型 Property。 | |
bottomRadius |
Property | number |
<optional> |
指定圆柱体底部半径的数值型 Property。 | |
heightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | 指定高度相对于实体位置的参考方式的 Property。 |
fill |
Property | boolean |
<optional> |
true | 指定圆柱体是否用所提供的材质填充的布尔型 Property。 |
material |
MaterialProperty | Color |
<optional> |
Color.WHITE | 指定用于填充圆柱体的材质的 Property。 |
outline |
Property | boolean |
<optional> |
false | 指定圆柱体是否有轮廓的布尔型 Property。 |
outlineColor |
Property | Color |
<optional> |
Color.BLACK | 指定轮廓 Color 的 Property。 |
outlineWidth |
Property | number |
<optional> |
1.0 | 指定轮廓宽度的数值型 Property。 |
numberOfVerticalLines |
Property | number |
<optional> |
16 | 指定沿轮廓周长绘制的垂直线条数量的数值型 Property。 |
slices |
Property | number |
<optional> |
128 | 圆柱体周向上的边数量。 |
shadows |
Property | ShadowMode |
<optional> |
ShadowMode.DISABLED | 指定圆柱体是否投射或接收来自光源的阴影的枚举型 Property。 |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
指定从相机多远处显示此圆柱体的 Property。 |
