描述由中心点和半主轴和半小轴定义的椭圆.
椭圆符合地球的曲面,可以放置在表面或
在高度上,可以选择挤出一个卷.
The center point is determined by the containing
Entity.
| Name | Type | Description |
|---|---|---|
options |
EllipseGraphics.ConstructorOptions | optional 描述初始化选项的对象 |
Members
classificationType : Property|undefined
Gets or sets the
ClassificationType Property specifying whether this ellipse will classify terrain, 3D Tiles, or both when on the ground.
-
Default Value:
ClassificationType.BOTH
readonly definitionChanged : Event
当财产或次级财产被改变或修改时,获取该事件.
distanceDisplayCondition : Property|undefined
Gets or sets the
DistanceDisplayCondition Property specifying at what distance from the camera that this ellipse will be displayed.
extrudedHeight : Property|undefined
获取或设置指定椭圆外部高度的数值属性.
设置此属性将生成从高度开始到在此高度结束的体积 .
extrudedHeightReference : Property|undefined
Gets or sets the Property specifying the extruded
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
Gets or sets the Property specifying the
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
获取或设置指定大纲宽度的数字属性.
Note: This property will be ignored on all major browsers on Windows platforms. For details, see (@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
椭圆图形构造器的初始化选项
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | A boolean Property specifying the visibility of the ellipse. |
semiMajorAxis |
Property | number |
<optional> |
指定半主轴的数值属性. | |
semiMinorAxis |
Property | number |
<optional> |
指定半小轴的数值属性. | |
height |
Property | number |
<optional> |
0 | A numeric Property specifying the altitude of the ellipse relative to the ellipsoid surface. |
heightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | A Property specifying what the height is relative to. |
extrudedHeight |
Property | number |
<optional> |
一个数字属性,指定椭圆外观相对于椭圆表面的高度. | |
extrudedHeightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | A Property specifying what the extrudedHeight is relative to. |
rotation |
Property | number |
<optional> |
0.0 | 数字属性指定椭圆逆时针自北旋转. |
stRotation |
Property | number |
<optional> |
0.0 | 数字属性,指定椭圆纹理逆时针从北旋转. |
granularity |
Property | number |
<optional> |
Cesium.Math.RADIANS_PER_DEGREE | A numeric Property specifying the angular distance between points on the ellipse. |
fill |
Property | boolean |
<optional> |
true | A boolean Property specifying whether the ellipse is filled with the provided material. |
material |
MaterialProperty | Color |
<optional> |
Color.WHITE | A Property specifying the material used to fill the ellipse. |
outline |
Property | boolean |
<optional> |
false | A boolean Property specifying whether the ellipse is outlined. |
outlineColor |
Property | Color |
<optional> |
Color.BLACK | A Property specifying the Color of the outline. |
outlineWidth |
Property | number |
<optional> |
1.0 | 指定大纲宽度的数值属性. |
numberOfVerticalLines |
Property | number |
<optional> |
16 | 一个数字属性,指定了沿轮廓绘制的垂直线数. |
shadows |
Property | ShadowMode |
<optional> |
ShadowMode.DISABLED | An enum Property specifying whether the ellipse casts or receives shadows from light sources. |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
指定此椭圆显示距离的属性 . | |
classificationType |
Property | ClassificationType |
<optional> |
ClassificationType.BOTH | An enum Property specifying whether this ellipse will classify terrain, 3D Tiles, or both when on the ground. |
zIndex |
ConstantProperty | number |
<optional> |
0 | A property specifying the zIndex of the Ellipse. Used for ordering ground geometry. Only has an effect if the ellipse is constant and neither height or exturdedHeight are specified. |