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