描述一个椭球体或球体。中心位置和方向由包含该
Entity 决定。
| Name | Type | Description |
|---|---|---|
options |
EllipsoidGraphics.ConstructorOptions | optional 描述初始化选项的对象。 |
Members
readonly definitionChanged : Event
获取在属性或子属性更改或修改时引发的事件。
distanceDisplayCondition : Property|undefined
获取或设置
DistanceDisplayCondition 属性,指定距离相机多远时显示该椭球体。
fill : Property|undefined
获取或设置布尔属性,指定椭球体是否使用提供的材质填充。
-
Default Value:
true
heightReference : Property|undefined
获取或设置属性,指定
HeightReference。
-
Default Value:
HeightReference.NONE
innerRadii : Property|undefined
获取或设置
Cartesian3 Property,指定椭球体的内半径。
-
Default Value:
radii
获取或设置属性,指定用于填充椭球体的材质。
-
Default Value:
Color.WHITE
maximumClock : Property|undefined
获取或设置属性,指定椭球体的最大时钟角。
-
Default Value:
2*PI
maximumCone : Property|undefined
获取或设置属性,指定椭球体的最大锥角。
-
Default Value:
PI
minimumClock : Property|undefined
获取或设置属性,指定椭球体的最小时钟角。
-
Default Value:
0.0
minimumCone : Property|undefined
获取或设置属性,指定椭球体的最小锥角。
-
Default Value:
0.0
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
radii : Property|undefined
获取或设置
Cartesian3 Property,指定椭球体的半径。
shadows : Property|undefined
获取或设置枚举属性,指定椭球体是否投射或接收光源的阴影。
-
Default Value:
ShadowMode.DISABLED
show : Property|undefined
获取或设置布尔属性,指定椭球体的可见性。
-
Default Value:
true
slicePartitions : Property|undefined
获取或设置属性,指定每 360 度的径向切片数量。
-
Default Value:
64
stackPartitions : Property|undefined
获取或设置属性,指定堆的数量。
-
Default Value:
64
subdivisions : Property|undefined
获取或设置属性,指定每个轮廓环的样本数量,决定曲率的细分程度。
-
Default Value:
128
Methods
clone(result) → EllipsoidGraphics
复制此实例。
| Name | Type | Description |
|---|---|---|
result |
EllipsoidGraphics | optional 存储结果的对象。 |
Returns:
修改后的结果参数,或者如果未提供,则返回一个新的实例。
将此对象上每个未分配的属性分配为提供的源对象上相同属性的值。
| Name | Type | Description |
|---|---|---|
source |
EllipsoidGraphics | 要合并到此对象中的对象。 |
Type Definitions
EllipsoidGraphics 构造函数的初始化选项
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
show |
Property | boolean |
<optional> |
true | 指定椭球体可见性的布尔属性。 |
radii |
Property | Cartesian3 |
<optional> |
一个 Cartesian3 属性,指定椭球体的半径。 |
|
innerRadii |
Property | Cartesian3 |
<optional> |
一个 Cartesian3 属性,指定椭球体的内半径。 |
|
minimumClock |
Property | number |
<optional> |
0.0 | 一个属性,指定椭球体的最小时钟角度。 |
maximumClock |
Property | number |
<optional> |
2*PI | 一个属性,指定椭球体的最大时钟角度。 |
minimumCone |
Property | number |
<optional> |
0.0 | 一个属性,指定椭球体的最小锥角。 |
maximumCone |
Property | number |
<optional> |
PI | 一个属性,指定椭球体的最大锥角。 |
heightReference |
Property | HeightReference |
<optional> |
HeightReference.NONE | 一个属性,指定实体位置的高度参考。 |
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 | 一个数值属性,指定轮廓的宽度。 |
stackPartitions |
Property | number |
<optional> |
64 | 一个属性,指定堆的数量。 |
slicePartitions |
Property | number |
<optional> |
64 | 一个属性,指定径向切片的数量。 |
subdivisions |
Property | number |
<optional> |
128 | 一个属性,指定每个轮廓环的样本数量,决定曲率的细分程度。 |
shadows |
Property | ShadowMode |
<optional> |
ShadowMode.DISABLED | 一个枚举属性,指定椭球体是否投射或接收光源的阴影。 |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<optional> |
一个属性,指定距离相机多远时显示该椭球体。 |
