描述由中心点和半长轴和半短轴定义的椭圆。
椭圆符合地球仪的曲率,可以放置在表面上或
在高度处,并且可以选择将其拉伸到体积中。
中心点由包含的
Entity
确定。
Name | Type | Description |
---|---|---|
options |
EllipseGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Members
classificationType : Property|undefined
获取或设置
ClassificationType
指定此椭圆在地面上时是分类地形、3D 瓦片还是两者的属性。
-
Default Value:
ClassificationType.BOTH
readonly definitionChanged : Event
获取在更改或修改属性或子属性时引发的事件。
distanceDisplayCondition : Property|undefined
获取或设置
DistanceDisplayCondition
指定此椭圆将在距相机多远处显示的属性。
extrudedHeight : Property|undefined
获取或设置numeric 指定椭圆拉伸高度的属性。
设置此属性将创建从高度开始到此高度结束的体积。
extrudedHeightReference : Property|undefined
获取或设置指定拉伸
HeightReference
的属性。
-
Default Value:
HeightReference.NONE
fill : Property|undefined
获取或设置boolean 指定是否使用提供的材质填充椭圆的属性。
-
Default Value:
true
granularity : Property|undefined
获取或设置numeric 属性,用于指定椭圆上点之间的角度距离。
-
Default Value:
{CesiumMath.RADIANS_PER_DEGREE}
height : Property|undefined
获取或设置numeric 指定椭圆高度的属性。
-
Default Value:
0.0
heightReference : Property|undefined
获取或设置指定
HeightReference
的属性。
-
Default Value:
HeightReference.NONE
material : MaterialProperty|undefined
获取或设置指定用于填充椭圆的材料的属性。
-
Default Value:
Color.WHITE
numberOfVerticalLines : Property|undefined
获取或设置numeric 指定要沿轮廓周长绘制的垂直线数的属性。
-
Default Value:
16
outline : Property|undefined
获取或设置指定是否为椭圆添加轮廓的属性。
-
Default Value:
false
outlineColor : Property|undefined
获取或设置指定轮廓的
Color
的属性。
-
Default Value:
Color.BLACK
outlineWidth : Property|undefined
获取或设置numeric 指定轮廓宽度的属性。
Note: 在 Windows 平台上的所有主要浏览器上都将忽略此属性。了解详情, see (@link https://github.com/CesiumGS/cesium/issues/40}.
-
Default Value:
1.0
rotation : Property|undefined
获取或设置numeric 属性指定椭圆从北逆时针旋转。
-
Default Value:
0
semiMajorAxis : Property|undefined
获取或设置numeric 属性指定半长轴。
semiMinorAxis : Property|undefined
获取或设置numeric 指定半短轴的属性。
shadows : Property|undefined
获取或设置枚举属性,指定椭圆是否
从光源投射或接收阴影。
-
Default Value:
ShadowMode.DISABLED
show : Property|undefined
获取或设置boolean 指定椭圆可见性的属性。
-
Default Value:
true
stRotation : Property|undefined
获取或设置numeric 属性指定椭圆纹理从北逆时针旋转。
-
Default Value:
0
zIndex : ConstantProperty|undefined
获取或设置指定椭圆排序的 zIndex 属性。 仅当椭圆为常量且未指定 height 或 extrudedHeight 时才有效
-
Default Value:
0
Methods
clone(result) → EllipseGraphics
复制instance.
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 | 指定 extrudedHeight 相对于什么的属性。 |
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 瓦片进行分类,还是对两者进行分类。 |
zIndex |
ConstantProperty | number |
<optional> |
0 | 指定椭圆的 zIndex 的属性。 用于对地面几何图形进行排序。 仅当椭圆为常量且未指定 height 或 exturdedHeight 时才有效。 |