描述一個走廊,它是一個由中心線和寬度定義的形狀,該形狀符合球體的曲率。它可以放置在表面或高度上,也可以隨意擠壓成一個體積。
new CorridorGraphics(options)
Parameters:
options
(Object)
Name | Description |
---|---|
options.show
Property
default true
|
指定道路可見性的布爾屬性。 |
options.positions
Property
|
指定定義道路中心線的Cartesian3 位置數組的屬性。
|
options.width
Property
|
指定道路邊緣之間的距離的數值屬性。 |
options.height
Property
default 0
|
指定走廊相對于橢球面的高度的數值屬性。 |
options.heightReference
Property
default HeightReference.NONE
|
指定高度相對高度的屬性。 |
options.extrudedHeight
Property
|
指定道路拉伸面相對于橢球面的高度的數值屬性。 |
options.extrudedHeightReference
Property
default HeightReference.NONE
|
一個屬性,指定extruddedheight相對于什么。 |
options.cornerType
Property
default CornerType.ROUNDED
|
指定角樣式的CornerType 屬性。
|
options.granularity
Property
default bmgl.Math.RADIANS_PER_DEGREE
|
指定每個緯度和經度之間的距離的數值屬性。 |
options.fill
Property
default true
|
一個布爾屬性,用于指定道路是否填充所提供的材質。 |
options.material
MaterialProperty
default Color.WHITE
|
指定用于填充道路的材質的屬性。 |
options.outline
Property
default false
|
指定道路是否輪廓的布爾屬性。 |
options.outlineColor
Property
default Color.BLACK
|
指定大綱的Color 的屬性。
|
options.outlineWidth
Property
default 1.0
|
指定輪廓寬度的數值屬性。 |
options.shadows
Property
default ShadowMode.DISABLED
|
指定道路是從每個光源投射還是接收陰影的枚舉屬性。 |
options.distanceDisplayCondition
Property
|
一個屬性,指定將顯示此走廊的距離。 |
options.classificationType
Property
default ClassificationType.BOTH
|
一個枚舉屬性,指定此道路在地面上時是將地形、三維瓦片還是兩者分類。 |
options.zIndex
ConstantProperty
|
指定走廊的zindex的屬性,用于排序。只有在未定義“高度”和“拉伸高度”以及“走廊”是靜態的情況下,才具有效果。 |
See:
Members
classificationType : Property
獲取或設置
ClassificationType
屬性,該屬性指定此道路在地面上時是將地形、三維瓦片分類還是將兩者都分類。
-
Default Value:
ClassificationType.BOTH
cornerType : Property
獲取或設置
CornerType
屬性,該屬性指定角的樣式。
-
Default Value:
CornerType.ROUNDED
(readonly) definitionChanged : Event
獲取每當屬性或子屬性更改或修改時引發的事件。
distanceDisplayCondition : Property
獲取或設置
DistanceDisplayCondition
屬性,該屬性指定將顯示此走廊的相機的距離。
extrudedHeight : Property
獲取或設置指定道路拉伸高度的數值屬性。設置此屬性將創建從高度開始到該高度結束的走廊形體積。
extrudedHeightReference : Property
獲取或設置指定拉伸
HeightReference
的屬性。
-
Default Value:
HeightReference.NONE
fill : Property
獲取或設置布爾屬性,該屬性指定走廊是否用提供的材料填充。
-
Default Value:
true
granularity : Property
獲取或設置指定每個緯度和經度點之間的采樣距離的數值屬性。
-
Default Value:
{BMMath.RADIANS_PER_DEGREE}
height : Property
獲取或設置指定走廊高度的數值屬性。
-
Default Value:
0.0
heightReference : Property
獲取或設置指定
HeightReference
的屬性。
-
Default Value:
HeightReference.NONE
material : MaterialProperty
獲取或設置指定用于填充走廊的材質的屬性。
-
Default Value:
Color.WHITE
outline : Property
獲取或設置用于指定是否概述走廊的屬性。
-
Default Value:
false
outlineColor : Property
獲取或設置指定大綱的
Color
的屬性。
-
Default Value:
Color.BLACK
outlineWidth : Property
獲取或設置指定大綱寬度的數值屬性。
-
Default Value:
1.0
positions : Property
獲取或設置一個屬性,該屬性指定定義道路中心線的
Cartesian3
位置數組。
shadows : Property
獲取或設置枚舉屬性,指定道路是投射還是接收來自每個光源的陰影。
-
Default Value:
ShadowMode.DISABLED
show : Property
獲取或設置用于指定道路可見性的布爾屬性。
-
Default Value:
true
width : Property
獲取或設置指定道路寬度的數值屬性。
zIndex : ConstantProperty
獲取或設置指定走廊順序的Zindex屬性。只有當Coridor是靜態的并且沒有指定高度或擴展高度時才有效果。
-
Default Value:
0
Methods
clone(result) → {CorridorGraphics}
復制此實例。
Parameters:
將此對象上的每個未分配屬性分配給所提供源對象上相同屬性的值。