用于更新几何实体的抽象类。 An abstract class for updating geometry entities.
| 名称 Name | 类型 Type | 说明 Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
具有以下属性的对象: An object with the following properties:
|
成员 Members
readonly classificationTypeProperty : Property
获取或设置 Gets or sets the
ClassificationType 属性指定该几何体在地面上是否会对地形、3D 切片或两者进行分类。 Property specifying if this geometry will classify terrain, 3D Tiles, or both when on the ground.
readonly distanceDisplayConditionProperty : Property
获取或设置 Gets or sets the
DistanceDisplayCondition 属性指定该几何图形将在距相机的距离处显示。 Property specifying at what distance from the camera that this geometry will be displayed.
readonly entity : Entity
获取与该几何图形关联的实体。 Gets the entity associated with this geometry.
获取一个值,该值指示几何图形是否具有填充组件。 Gets a value indicating if the geometry has a fill component.
readonly fillMaterialProperty : MaterialProperty
获取用于填充几何体的材质属性。 Gets the material property used to fill the geometry.
获取每当此更新程序的公共属性发生更改时引发的事件。 Gets an event that is raised whenever the public properties of this updater change.
获取一个值,该值指示填充可见性是否随模拟时间变化。 Gets a value indicating if fill visibility varies with simulation time.
获取一个值,该值指示几何图形是否具有轮廓组件。 Gets a value indicating if the geometry has an outline component.
获取与此更新程序关联的唯一 ID Gets the unique ID associated with this updater
获取一个指示几何图形是否闭合的值。该属性仅对静态几何体有效。 Gets a value indicating if the geometry is closed. This property is only valid for static geometry.
获取一个值,该值指示几何图形是否随时间变化。 Gets a value indicating if the geometry is time-varying.
readonly outlineColorProperty : Property
获取一个值,该值指示几何图形是否具有轮廓组件。 Gets a value indicating if the geometry has an outline component.
获取几何轮廓的常数,以像素为单位。仅当 isDynamic 为 false 时,该值才有效。 Gets the constant with of the geometry outline, in pixels. This value is only valid if isDynamic is false.
readonly shadowsProperty : Property
获取指定几何体是否投射或接收来自光源的阴影的属性。 Gets the property specifying whether the geometry casts or receives shadows from light sources.
方法 Methods
createFillGeometryInstance(time) → GeometryInstance
创建表示几何体填充的几何体实例。 Creates the geometry instance which represents the fill of the geometry.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
time |
JulianDate | 检索初始属性值时使用的时间。 The time to use when retrieving initial attribute values. |
返回: Returns:
表示几何体填充部分的几何体实例。 The geometry instance representing the filled portion of the geometry.
抛出: Throws:
-
DeveloperError : This instance does not represent a filled geometry.
createOutlineGeometryInstance(time) → GeometryInstance
创建表示几何轮廓的几何实例。 Creates the geometry instance which represents the outline of the geometry.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
time |
JulianDate | 检索初始属性值时使用的时间。 The time to use when retrieving initial attribute values. |
返回: Returns:
表示几何体轮廓部分的几何体实例。 The geometry instance representing the outline portion of the geometry.
抛出: Throws:
-
DeveloperError : This instance does not represent an outlined geometry.
销毁对象并使用其资源。一旦对象被销毁,就不应再使用。 Destroys and resources used by the object. Once an object is destroyed, it should not be used.
抛出: Throws:
-
DeveloperError : This object was destroyed, i.e., destroy() was called.
如果该对象被销毁则返回 true;否则为假。 Returns true if this object was destroyed; otherwise, false.
返回: Returns:
如果该对象被销毁,则为 True;否则为假。 True if this object was destroyed; otherwise, false.
检查几何图形是否在指定时间被填充。 Checks if the geometry is filled at the provided time.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
time |
JulianDate | 检索可见性的时间。 The time for which to retrieve visibility. |
返回: Returns:
如果在指定时间填充几何图形,则为 true,否则为 false。 true if geometry is filled at the provided time, false otherwise.
检查几何图形是否在指定时间勾勒出轮廓。 Checks if the geometry is outlined at the provided time.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
time |
JulianDate | 检索可见性的时间。 The time for which to retrieve visibility. |
返回: Returns:
如果在指定时间勾勒出几何图形,则为 true,否则为 false。 true if geometry is outlined at the provided time, false otherwise.
