描述一个椭球体或球体。中心位置和方向由包含的元素决定 Describe an ellipsoid or sphere. The center position and orientation are determined by the containing
Entity.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
options |
EllipsoidGraphics.ConstructorOptions | 可选 optional 描述初始化选项的对象 Object describing initialization options |
成员 Members
readonly definitionChanged : Event
获取每当更改或修改属性或子属性时引发的事件。 Gets the event that is raised whenever a property or sub-property is changed or modified.
distanceDisplayCondition : Property|undefined
获取或设置 Gets or sets the
DistanceDisplayCondition 属性指定该椭球体将在距相机的距离处显示。 Property specifying at what distance from the camera that this ellipsoid will be displayed.
fill : Property|undefined
获取或设置布尔属性,指定椭球体是否填充有提供的材质。 Gets or sets the boolean Property specifying whether the ellipsoid is filled with the provided material.
-
默认值: Default Value:
true
heightReference : Property|undefined
获取或设置指定的属性 Gets or sets the Property specifying the
HeightReference.
-
默认值: Default Value:
HeightReference.NONE
innerRadii : Property|undefined
-
默认值: Default Value:
radii
获取或设置指定用于填充椭球体的材质的属性。 Gets or sets the Property specifying the material used to fill the ellipsoid.
-
默认值: Default Value:
Color.WHITE
maximumClock : Property|undefined
获取或设置指定椭球体最大时钟角的属性。 Gets or sets the Property specifying the maximum clock angle of the ellipsoid.
-
默认值: Default Value:
2*PI
maximumCone : Property|undefined
获取或设置指定椭球体最大锥角的属性。 Gets or sets the Property specifying the maximum cone angle of the ellipsoid.
-
默认值: Default Value:
PI
minimumClock : Property|undefined
获取或设置指定椭球体最小时钟角的属性。 Gets or sets the Property specifying the minimum clock angle of the ellipsoid.
-
默认值: Default Value:
0.0
minimumCone : Property|undefined
获取或设置指定椭球体最小锥角的属性。 Gets or sets the Property specifying the minimum cone angle of the ellipsoid.
-
默认值: Default Value:
0.0
outline : Property|undefined
获取或设置指定椭圆体是否有轮廓的属性。 Gets or sets the Property specifying whether the ellipsoid is outlined.
-
默认值: Default Value:
false
outlineColor : Property|undefined
-
默认值: Default Value:
Color.BLACK
outlineWidth : Property|undefined
获取或设置指定轮廓宽度的数字属性。 Gets or sets the numeric Property specifying the width of the outline.
注意:此属性在 Windows 平台上的所有主要浏览器上都将被忽略。有关详细信息,请参阅(@link https://github.com/CesiumGS/cesium/issues/40}。 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
radii : Property|undefined
shadows : Property|undefined
获取或设置枚举属性,指定椭球体是否投射或接收来自光源的阴影。 Get or sets the enum Property specifying whether the ellipsoid casts or receives shadows from light sources.
-
默认值: Default Value:
ShadowMode.DISABLED
show : Property|undefined
获取或设置指定椭球体可见性的布尔属性。 Gets or sets the boolean Property specifying the visibility of the ellipsoid.
-
默认值: Default Value:
true
slicePartitions : Property|undefined
获取或设置指定每 360 度径向切片数的属性。 Gets or sets the Property specifying the number of radial slices per 360 degrees.
-
默认值: Default Value:
64
stackPartitions : Property|undefined
获取或设置指定堆栈数的属性。 Gets or sets the Property specifying the number of stacks.
-
默认值: Default Value:
64
subdivisions : Property|undefined
获取或设置属性,指定每个轮廓环的样本数,确定曲率的粒度。 Gets or sets the Property specifying the number of samples per outline ring, determining the granularity of the curvature.
-
默认值: Default Value:
128
方法 Methods
clone(result) → EllipsoidGraphics
复制此实例。 Duplicates this instance.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
result |
EllipsoidGraphics | 可选 optional 用于存储结果的对象。 The object onto which to store the result. |
返回: Returns:
修改后的结果参数或新实例(如果未提供)。 The modified result parameter or a new instance if one was not provided.
将此对象上每个未分配的属性分配给所提供的源对象上相同属性的值。 Assigns each unassigned property on this object to the value of the same property on the provided source object.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
source |
EllipsoidGraphics | 要合并到此对象中的对象。 The object to be merged into this object. |
类型定义 Type Definitions
EllipsoidGraphics 构造函数的初始化选项 Initialization options for the EllipsoidGraphics constructor
属性: Properties:
| 名称 Name | 类型 Type | Attributes | 默认值 Default | 说明 Description |
|---|---|---|---|---|
show |
Property | boolean |
<可选> <optional> |
true | 指定椭球体可见性的布尔属性。 A boolean Property specifying the visibility of the ellipsoid. |
radii |
Property | Cartesian3 |
<可选> <optional> |
A Cartesian3 指定椭球体半径的属性。 Property specifying the radii of the ellipsoid. |
|
innerRadii |
Property | Cartesian3 |
<可选> <optional> |
A Cartesian3 指定椭球体内半径的属性。 Property specifying the inner radii of the ellipsoid. |
|
minimumClock |
Property | number |
<可选> <optional> |
0.0 | 指定椭球体最小时钟角的属性。 A Property specifying the minimum clock angle of the ellipsoid. |
maximumClock |
Property | number |
<可选> <optional> |
2*PI | 指定椭球体最大时钟角的属性。 A Property specifying the maximum clock angle of the ellipsoid. |
minimumCone |
Property | number |
<可选> <optional> |
0.0 | 指定椭球体最小锥角的属性。 A Property specifying the minimum cone angle of the ellipsoid. |
maximumCone |
Property | number |
<可选> <optional> |
PI | 指定椭球体最大锥角的属性。 A Property specifying the maximum cone angle of the ellipsoid. |
heightReference |
Property | HeightReference |
<可选> <optional> |
HeightReference.NONE | 指定相对于实体位置的高度的属性。 A Property specifying what the height from the entity position is relative to. |
fill |
Property | boolean |
<可选> <optional> |
true | 一个布尔属性,指定椭球体是否填充有提供的材料。 A boolean Property specifying whether the ellipsoid is filled with the provided material. |
material |
MaterialProperty | Color |
<可选> <optional> |
Color.WHITE | 指定用于填充椭球体的材质的属性。 A Property specifying the material used to fill the ellipsoid. |
outline |
Property | boolean |
<可选> <optional> |
false | 一个布尔属性,指定椭圆体是否有轮廓。 A boolean Property specifying whether the ellipsoid is outlined. |
outlineColor |
Property | Color |
<可选> <optional> |
Color.BLACK | 指定的属性 A Property specifying the Color 的轮廓。 of the outline. |
outlineWidth |
Property | number |
<可选> <optional> |
1.0 | 指定轮廓宽度的数字属性。 A numeric Property specifying the width of the outline. |
stackPartitions |
Property | number |
<可选> <optional> |
64 | 指定堆栈数量的属性。 A Property specifying the number of stacks. |
slicePartitions |
Property | number |
<可选> <optional> |
64 | 指定径向切片数量的属性。 A Property specifying the number of radial slices. |
subdivisions |
Property | number |
<可选> <optional> |
128 | 指定每个轮廓环的样本数量的属性,确定曲率的粒度。 A Property specifying the number of samples per outline ring, determining the granularity of the curvature. |
shadows |
Property | ShadowMode |
<可选> <optional> |
ShadowMode.DISABLED | 一个枚举属性,指定椭球是否投射或接收来自光源的阴影。 An enum Property specifying whether the ellipsoid casts or receives shadows from light sources. |
distanceDisplayCondition |
Property | DistanceDisplayCondition |
<可选> <optional> |
一个属性,指定该椭球体将在距相机的距离处显示。 A Property specifying at what distance from the camera that this ellipsoid will be displayed. |
