描述道路,该道路是由中心线和宽度定义的造型,该宽度
符合地球的曲率。它可以放置在表面或高处
中,并且可以选择将其拉伸到体积块中。
Name | Type | Description |
---|---|---|
options |
CorridorGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Demo:
See:
Members
classificationType : Property|undefined
获取或设置
ClassificationType
指定此走廊在地面上时是分类地形、3D 瓦片还是两者兼而有之的属性。
-
Default Value:
ClassificationType.BOTH
cornerType : Property|undefined
获取或设置
CornerType
指定如何设置拐角样式的属性。
-
Default Value:
CornerType.ROUNDED
readonly definitionChanged : Event
获取在更改或修改属性或子属性时引发的事件。
distanceDisplayCondition : Property|undefined
获取或设置
DistanceDisplayCondition
指定在距摄像机多远处显示此走廊的属性。
extrudedHeight : Property|undefined
获取或设置指定道路拉伸高度的属性。
设置此属性将创建从高度开始到结束的走廊形状体积
在此高度。
extrudedHeightReference : Property|undefined
获取或设置指定 extruded 的属性
HeightReference
.
-
Default Value:
HeightReference.NONE
fill : Property|undefined
获取或设置boolean 属性,用于指定是否使用提供的材质填充走廊。
-
Default Value:
true
granularity : Property|undefined
获取或设置指定每个纬度和经度点之间的采样距离的属性。
-
Default Value:
{CesiumMath.RADIANS_PER_DEGREE}
height : Property|undefined
获取或设置指定走廊高度的属性。
-
Default Value:
0.0
heightReference : Property|undefined
获取或设置指定
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
获取或设置numeric 指定轮廓宽度的属性。
Note: 在 Windows 平台上的所有主要浏览器上都将忽略此属性。了解详情, see (@link https://github.com/CesiumGS/cesium/issues/40}.
-
Default Value:
1.0
positions : Property|undefined
获取或设置一个 Property,指定定义走廊中心线的
Cartesian3
位置的数组。
shadows : Property|undefined
获取或设置枚举属性,指定 corridor
从光源投射或接收阴影。
-
Default Value:
ShadowMode.DISABLED
show : Property|undefined
获取或设置boolean 指定道路可见性的属性。
-
Default Value:
true
width : Property|undefined
获取或设置指定轮廓宽度的属性。
zIndex : ConstantProperty|undefined
获取或设置指定走廊顺序的 zIndex 属性。 仅当 coridor 是 static 且未指定 height 或 exturdedHeight 时才有效。
-
Default Value:
0
Methods
clone(result) → CorridorGraphics
复制实例。
Name | Type | Description |
---|---|---|
result |
CorridorGraphics | optional 要在其上存储结果的对象。 |
Returns:
修改后的结果参数 or a new instance if one was not provided.
将此对象上每个未分配的属性分配给值
的 API 值。
Name | Type | Description |
---|---|---|
source |
CorridorGraphics | 要合并到此对象中的对象。 |
Type Definitions
CorridorGraphics 构造函数的初始化选项
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 指定走廊可见性的布尔属性。 |
positions |
Property | Array.<Cartesian3> |
<optional> |
一个属性,用于指定定义走廊中心线的 Cartesian3 位置数组。 |
|
width |
Property | number |
<optional> |
一个数字属性,用于指定廊道边缘之间的距离。 | |
height |
Property | number |
<optional> |
0 | 一个数字属性,用于指定走廊相对于椭球体表面的高度。 |
heightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | 指定高度相对于什么的属性。 |
extrudedHeight |
Property | number |
<optional> |
一个数字属性,用于指定道路的拉伸面相对于椭球体表面的高度。 | |
extrudedHeightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | 指定 extrudedHeight 相对于什么的属性。 |
cornerType |
Property | CornerType |
<optional> |
CornerType.ROUNDED | 一个 CornerType 属性,用于指定角的样式。 |
granularity |
Property | number |
<optional> |
Cesium.Math.RADIANS_PER_DEGREE | 一个数字属性,用于指定每个纬度和经度之间的距离。 |
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 | 指定轮廓宽度的数字属性。 |
shadows |
Property | ShadowMode |
<optional> |
ShadowMode.DISABLED | 一个枚举属性,用于指定走廊是否从光源投射或接收阴影。 |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
一个属性,指定在距摄像头多远处显示此走廊。 | |
classificationType |
Property | ClassificationType |
<optional> |
ClassificationType.BOTH | 一个枚举属性,指定此走廊在地面上时是分类地形、3D 瓦片,还是两者兼而有之。 |
zIndex |
ConstantProperty | number |
<optional> |
指定走廊的 zIndex 的属性,用于排序。 仅当 height 和 extrudedHeight 未定义且道路是静态的时,才有效。 |