new Cesium.CylinderGraphics(options)

描述圆柱形,短锥形,或由长度,顶半径,底半径定义的圆锥形. The center position and orientation are determined by the containing 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

Gets or sets the Property specifying the 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

获取或设置指定大纲宽度的数字属性.

Note: This property will be ignored on all major browsers on Windows platforms. For details, see (@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:
未提供修改的结果参数或新实例 .

merge(source)

指定该对象上每个未指定属性的值 - 提供源对象上的同一财产.
Name Type Description
source CylinderGraphics 要合并成此天体的对象.

Type Definitions

Cesium.CylinderGraphics.ConstructorOptions

圆柱图形构造器的初始化选项
Properties:
Name Type Attributes Default Description
show Property | boolean <optional>
true A boolean Property specifying the visibility of the cylinder.
length Property | number <optional>
指定圆柱长度的数字属性.
topRadius Property | number <optional>
指定圆柱顶端半径的数值属性.
bottomRadius Property | number <optional>
指定圆柱底部半径的数字属性.
heightReference Property | HeightReference <optional>
HeightReference.NONE A Property specifying what the height from the entity position is relative to.
fill Property | boolean <optional>
true A boolean Property specifying whether the cylinder is filled with the provided material.
material MaterialProperty | Color <optional>
Color.WHITE A Property specifying the material used to fill the cylinder.
outline Property | boolean <optional>
false A boolean Property specifying whether the cylinder is outlined.
outlineColor Property | Color <optional>
Color.BLACK A Property specifying the Color of the outline.
outlineWidth Property | number <optional>
1.0 指定大纲宽度的数值属性.
numberOfVerticalLines Property | number <optional>
16 一个数字属性,指定了沿轮廓绘制的垂直线数.
slices Property | number <optional>
128 气瓶周边边缘数.
shadows Property | ShadowMode <optional>
ShadowMode.DISABLED An enum Property specifying whether the cylinder casts or receives shadows from light sources.
distanceDisplayCondition Property | DistanceDisplayCondition <optional>
指定显示此圆柱的相机距离的属性 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.