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