描述由中心点、半长轴和半短轴定义的椭圆。
椭圆符合地球曲率,可以放置在表面或指定高度,
也可以选择挤压成体积。
中心点由包含的
Entity 决定。
| Name | Type | Description |
|---|---|---|
options |
EllipseGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Members
classificationType : Property|undefined
获取或设置指定当椭圆在地面上时,是否对地形、3D Tiles 或两者进行分类的
ClassificationType 属性。
-
Default Value:
ClassificationType.BOTH
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
获取或设置指定
HeightReference 的属性。
-
Default Value:
HeightReference.NONE
material : MaterialProperty|undefined
获取或设置指定用于填充椭圆的材质的属性。
-
Default Value:
Color.WHITE
numberOfVerticalLines : Property|undefined
获取或设置指定沿轮廓周长绘制垂直线数量的数值属性。
-
Default Value:
16
outline : Property|undefined
获取或设置指定椭圆是否有轮廓线的属性。
-
Default Value:
false
outlineColor : Property|undefined
获取或设置指定轮廓线
Color 的属性。
-
Default Value:
Color.BLACK
outlineWidth : Property|undefined
获取或设置指定轮廓线宽度的数值属性。
注意:在 Windows 平台的所有主流浏览器上,此属性将被忽略。详情请参见 (@link https://github.com/CesiumGS/cesium/issues/40}。
-
Default Value:
1.0
rotation : Property|undefined
获取或设置指定椭圆从北向逆时针旋转角度的数值属性。
-
Default Value:
0
semiMajorAxis : Property|undefined
获取或设置指定半长轴的数值属性。
semiMinorAxis : Property|undefined
获取或设置指定半短轴的数值属性。
shadows : Property|undefined
获取或设置指定椭圆是否从光源投射或接收阴影的枚举属性。
-
Default Value:
ShadowMode.DISABLED
show : Property|undefined
获取或设置指定椭圆可见性的布尔属性。
-
Default Value:
true
stRotation : Property|undefined
获取或设置指定椭圆纹理从北向逆时针旋转角度的数值属性。
-
Default Value:
0
zIndex : ConstantProperty|undefined
获取或设置指定椭圆排序的 zIndex 属性。仅在椭圆是常量且未指定 height 或 extrudedHeight 时才有效果
-
Default Value:
0
Methods
clone(result) → EllipseGraphics
复制此实例。
| Name | Type | Description |
|---|---|---|
result |
EllipseGraphics | optional 存储结果的对象。 |
Returns:
修改后的结果参数,如果未提供则返回新实例。
Assigns each unassigned property on this object to the value
of the same property on the provided source object.
| Name | Type | Description |
|---|---|---|
source |
EllipseGraphics | The object to be merged into this object. |
Type Definitions
EllipseGraphics 构造函数的初始化选项
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 一个布尔属性,指定椭圆的可见性。 |
semiMajorAxis |
Property | number |
<optional> |
一个数值属性,指定半长轴。 | |
semiMinorAxis |
Property | number |
<optional> |
一个数值属性,指定半短轴。 | |
height |
Property | number |
<optional> |
0 | 一个数值属性,指定椭圆相对于椭球体表面的高度。 |
heightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | 一个属性,指定高度的相对参考。 |
extrudedHeight |
Property | number |
<optional> |
一个数值属性,指定椭圆挤压面相对于椭球体表面的高度。 | |
extrudedHeightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | 一个属性,指定挤压高度的相对参考。 |
rotation |
Property | number |
<optional> |
0.0 | 一个数值属性,指定椭圆从北向逆时针旋转的角度。 |
stRotation |
Property | number |
<optional> |
0.0 | 一个数值属性,指定椭圆纹理从北向逆时针旋转的角度。 |
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 | 一个数值属性,指定轮廓线的宽度。 |
numberOfVerticalLines |
Property | number |
<optional> |
16 | 一个数值属性,指定沿轮廓周长绘制的垂直线数量。 |
shadows |
Property | ShadowMode |
<optional> |
ShadowMode.DISABLED | 一个枚举属性,指定椭圆是否从光源投射或接收阴影。 |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
一个属性,指定从相机多远的距离显示此椭圆。 | |
classificationType |
Property | ClassificationType |
<optional> |
ClassificationType.BOTH | 一个枚举属性,指定当椭圆在地面上时,是否对地形、3D Tiles 或两者进行分类。 |
zIndex |
ConstantProperty | number |
<optional> |
0 | 一个属性,指定椭圆的 zIndex,用于排序地面几何体。仅在椭圆是常量且未指定 height 或 extrudedHeight 时才有效果。 |
