描述道路,该道路是由中心线和宽度定义的形状
符合地球的曲率。它可以放在地面或高空
可以选择挤出成一个体积。
Name | Type | Description |
---|---|---|
options |
CorridorGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Demo:
See:
Members
classificationType : Property|undefined
获取或设置
ClassificationType
属性,该属性指定此道路在地面时是否将对地形、三维地砖或两者进行分类。-
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
获取或设置指定挤出的
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
获取指定属性的6866165或。
-
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
获取或设置指定大纲宽度的数值属性。
-
Default Value:
1.0
positions : Property|undefined
获取或设置一个属性,该属性指定用于定义道路中心线的
Cartesian3
个位置的数组。shadows : Property|undefined
获取或设置指定道路
从光源投射或接收阴影。
-
Default Value:
ShadowMode.DISABLED
show : Property|undefined
获取或设置用于指定道路可见性的布尔属性。
-
Default Value:
true
width : Property|undefined
获取或设置指定道路宽度的数字属性。
zIndex : ConstantProperty|undefined
获取或设置指定道路顺序的zIndex属性。仅当coridor为静态且未指定高度或exturdedHeight时才有效。
-
Default Value:
0
Methods
clone(result) → CorridorGraphics
复制此实例。
Name | Type | Description |
---|---|---|
result |
CorridorGraphics | optional 要将结果存储到的对象。 |
Returns:
修改后的结果参数或新实例(如果未提供)。
将此对象上的每个未指定属性指定给值
在提供的源对象上具有相同的属性。
Name | Type | Description |
---|---|---|
source |
CorridorGraphics | 要合并到此对象中的对象。 |
Type Definitions
CorridorGraphics构造函数的初始化选项
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 指定道路可见性的布尔特性。 |
positions |
Property | 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 | 一个属性,指定拉伸高度的相对值。 |
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 | 一个枚举属性,指定此道路在地面时是否将对地形、三维瓷砖或两者进行分类。 |
zIndex |
ConstantProperty | number |
<optional> |
指定道路的zIndex的属性,用于排序。仅当“高度”和“拉伸高度”未定义且道路为静态时才有效。 |