描述由中心点和半长轴、半短轴定义的椭圆。
椭圆符合地球的曲率,可以放置在表面或海拔高度上,并且可以被选择性地挤出成一个体积。
中心点由包含的
Entity 确定。
| Name | Type | Description |
|---|---|---|
options |
EllipseGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Members
classificationType : Property|undefined
获取或设置
ClassificationType 属性,指定当在地面时此椭圆将分类地形、3D Tiles或两者。
-
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 属性,指定椭圆的排序。 仅在椭圆是常量且未指定高度或挤出高度时有效。
-
Default Value:
0
Methods
clone(result) → EllipseGraphics
复制此实例。
| Name | Type | Description |
|---|---|---|
result |
EllipseGraphics | optional 存储结果的对象。 |
Returns:
修改后的结果参数,或者如果未提供,则返回一个新实例。
将此对象上每个未分配的属性分配为提供的源对象上相同属性的值。
| Name | Type | Description |
|---|---|---|
source |
EllipseGraphics | 要合并到此对象中的对象。 |
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 | 指定轮廓颜色的属性。 |
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 属性。用于排序地面几何体。仅当椭圆是常数且未指定高度或挤出高度时有效。 |
