描述由圓心、半長(zhǎng)軸和半短軸定義的橢圓。橢圓符合球體的曲率,可以放置在表面或高度上,也可以隨意拉伸成一個(gè)體積。中心點(diǎn)由包含的
new EllipseGraphics(options)
Entity
確定。
Parameters:
options
(Object)
Name | Description |
---|---|
options.show
Property
default true
|
指定橢圓可見性的布爾屬性。 |
options.semiMajorAxis
Property
|
指定半長(zhǎng)軸的數(shù)值屬性。 |
options.semiMinorAxis
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.rotation
Property
default 0.0
|
指定橢圓從北逆時(shí)針旋轉(zhuǎn)的數(shù)值屬性。 |
options.stRotation
Property
default 0.0
|
指定橢圓紋理從北逆時(shí)針旋轉(zhuǎn)的數(shù)值屬性。 |
options.granularity
Property
default bmgl.Math.RADIANS_PER_DEGREE
|
指定橢圓上點(diǎn)之間的角度距離的數(shù)值屬性。 |
options.fill
Property
default true
|
一個(gè)布爾屬性,指定橢圓是否用提供的材料填充。 |
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.numberOfVerticalLines
Property
default 16
|
指定沿輪廓周長(zhǎng)繪制的垂直線數(shù)的數(shù)值屬性。 |
options.shadows
Property
default ShadowMode.DISABLED
|
指定橢圓是從每個(gè)光源投射還是接收陰影的枚舉屬性。 |
options.distanceDisplayCondition
Property
|
一個(gè)屬性,指定該橢圓將顯示在與相機(jī)的距離上。 |
options.classificationType
Property
default ClassificationType.BOTH
|
一個(gè)枚舉屬性,指定此橢圓在地面上時(shí)是將地形、三維瓦片分類還是將兩者都分類。 |
options.zIndex
ConstantProperty
default 0
|
指定橢圓的zindex的屬性。用于訂購(gòu)地面幾何圖形。僅當(dāng)橢圓為常量且未指定高度或ExturdedHeight時(shí)才有效。 |
Members
classificationType : Property
獲取或設(shè)置
ClassificationType
屬性,該屬性指定此橢圓在地面上時(shí)是將地形、三維瓦片分類還是將兩者都分類。
-
Default Value:
ClassificationType.BOTH
(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è)置指定橢圓上點(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è)置指定用于填充橢圓的材料的屬性。
-
Default Value:
Color.WHITE
numberOfVerticalLines : Property
獲取或設(shè)置數(shù)值屬性,該屬性指定要沿輪廓周長(zhǎng)繪制的垂直線數(shù)。
-
Default Value:
16
outline : Property
獲取或設(shè)置指定橢圓是否輪廓化的屬性。
-
Default Value:
false
outlineColor : Property
獲取或設(shè)置指定大綱的
Color
的屬性。
-
Default Value:
Color.BLACK
outlineWidth : Property
獲取或設(shè)置指定大綱寬度的數(shù)值屬性。
-
Default Value:
1.0
rotation : Property
獲取或設(shè)置指定橢圓從北順時(shí)針旋轉(zhuǎn)的數(shù)值屬性。
-
Default Value:
0
semiMajorAxis : Property
獲取或設(shè)置指定半長(zhǎng)軸的數(shù)值屬性。
semiMinorAxis : Property
獲取或設(shè)置指定半短軸的數(shù)值屬性。
shadows : Property
獲取或設(shè)置枚舉屬性,指定橢圓是投射還是接收來自每個(gè)光源的陰影。
-
Default Value:
ShadowMode.DISABLED
show : Property
獲取或設(shè)置用于指定橢圓可見性的布爾屬性。
-
Default Value:
true
stRotation : Property
獲取或設(shè)置指定橢圓紋理從北逆時(shí)針旋轉(zhuǎn)的數(shù)值屬性。
-
Default Value:
0
zIndex : ConstantProperty
獲取或設(shè)置指定橢圓順序的Zindex屬性。僅在橢圓為常量且未指定高度或拉伸高度時(shí)有效
-
Default Value:
0
Methods
clone(result) → {EllipseGraphics}
復(fù)制此實(shí)例。
Parameters:
將此對(duì)象上的每個(gè)未分配屬性分配給所提供源對(duì)象上相同屬性的值。