new Cesium.CorridorGraphics(options)

描述一个走廊,它是由中心线和宽度定义的形状 符合地球的曲率。 它可以放置在表面或高度 并且可以任意挤压成一卷.
Name Type Description
options CorridorGraphics.ConstructorOptions optional 描述初始化选项的对象
Demo:
See:

Members

classificationType : Property|undefined

Gets or sets the ClassificationType Property specifying whether this corridor will classify terrain, 3D Tiles, or both when on the ground.
Default Value: ClassificationType.BOTH

cornerType : Property|undefined

Gets or sets the CornerType Property specifying how corners are styled.
Default Value: CornerType.ROUNDED

readonly definitionChanged : Event

当财产或次级财产被改变或修改时,获取该事件.

distanceDisplayCondition : Property|undefined

Gets or sets the DistanceDisplayCondition Property specifying at what distance from the camera that this corridor will be displayed.

extrudedHeight : Property|undefined

获取或设置指定走廊外部高度的数值属性. 设置此属性可创建从高度开始到结束的走廊形状体积 在这个高度.

extrudedHeightReference : Property|undefined

Gets or sets the Property specifying the extruded HeightReference.
Default Value: HeightReference.NONE

fill : Property|undefined

获取或设置布尔属性,指定通道是否充满了所提供的材料.
Default Value: true

granularity : Property|undefined

获取或设置指定每个经纬点之间采样距离的数值属性.
Default Value: {CesiumMath.RADIANS_PER_DEGREE}

height : Property|undefined

获取或设置指定走廊高度的数值属性.
Default Value: 0.0

heightReference : Property|undefined

Gets or sets the Property specifying the HeightReference.
Default Value: HeightReference.NONE

material : MaterialProperty|undefined

获取或设置指定用于填充走廊的材料的属性.
Default Value: Color.WHITE

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

positions : Property|undefined

Gets or sets a Property specifying the array of Cartesian3 positions that define the centerline of the corridor.

shadows : Property|undefined

获取或设置 enum 属性, 指定通道是否 投影或接收来自光源的阴影.
Default Value: ShadowMode.DISABLED

show : Property|undefined

获取或设置指定走廊可见度的布尔属性 .
Default Value: true

width : Property|undefined

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

zIndex : ConstantProperty|undefined

获取或设置指定走廊命令的zIndex属性。 只有在对流器是静态的,且没有指定高度或突起的高度时才有效果.
Default Value: 0

Methods

clone(result)CorridorGraphics

重复这个例子.
Name Type Description
result CorridorGraphics optional 存储结果的对象 .
Returns:
未提供修改的结果参数或新实例 .

merge(source)

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

Type Definitions

Cesium.CorridorGraphics.ConstructorOptions

走廊构造器的初始化选项
Properties:
Name Type Attributes Default Description
show Property | boolean <optional>
true A boolean Property specifying the visibility of the corridor.
positions Property | Array.<Cartesian3> <optional>
A Property specifying the array of Cartesian3 positions that define the centerline of the corridor.
width Property | number <optional>
指定走廊边缘间距离的数值属性.
height Property | number <optional>
0 A numeric Property specifying the altitude of the corridor relative to the ellipsoid surface.
heightReference Property | HeightReference <optional>
HeightReference.NONE A Property specifying what the height is relative to.
extrudedHeight Property | number <optional>
指定走廊外凸面相对于椭圆表面高度的数值属性.
extrudedHeightReference Property | HeightReference <optional>
HeightReference.NONE A Property specifying what the extrudedHeight is relative to.
cornerType Property | CornerType <optional>
CornerType.ROUNDED A CornerType Property specifying the style of the corners.
granularity Property | number <optional>
Cesium.Math.RADIANS_PER_DEGREE A numeric Property specifying the distance between each latitude and longitude.
fill Property | boolean <optional>
true A boolean Property specifying whether the corridor is filled with the provided material.
material MaterialProperty | Color <optional>
Color.WHITE A Property specifying the material used to fill the corridor.
outline Property | boolean <optional>
false A boolean Property specifying whether the corridor is outlined.
outlineColor Property | Color <optional>
Color.BLACK A Property specifying the Color of the outline.
outlineWidth Property | number <optional>
1.0 指定大纲宽度的数值属性.
shadows Property | ShadowMode <optional>
ShadowMode.DISABLED An enum Property specifying whether the corridor casts or receives shadows from light sources.
distanceDisplayCondition Property | DistanceDisplayCondition <optional>
指定显示此走廊距离相机的属性 .
classificationType Property | ClassificationType <optional>
ClassificationType.BOTH An enum Property specifying whether this corridor will classify terrain, 3D Tiles, or both when on the ground.
zIndex ConstantProperty | number <optional>
一个指定走廊zIndex的属性,用于订购. 只有在高度和挤压Height没有被定义,而且走廊是静态的时才有效果.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.