GeometryUpdater

new Cesium.GeometryUpdater(options)

An abstract class for updating geometry entities.
参数名称 类型 描述信息
options object An object with the following properties:
参数名称 类型 描述信息
entity Entity The entity containing the geometry to be visualized.
scene Scene The scene where visualization is taking place.
geometryOptions object Options for the geometry
geometryPropertyName string The geometry property name
observedPropertyNames Array.<string> The entity properties this geometry cares about

成员(属性)

readonly classificationTypeProperty : Property

Gets or sets the ClassificationType 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.
Gets the entity associated with this geometry.

readonly fillEnabled : boolean

Gets a value indicating if the geometry has a fill component.
Gets the material property used to fill the geometry.

readonly geometryChanged : boolean

Gets an event that is raised whenever the public properties of this updater change.

readonly hasConstantFill : boolean

Gets a value indicating if fill visibility varies with simulation time.

readonly hasConstantOutline : boolean

Gets a value indicating if the geometry has an outline component.
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.
Gets the Color property for the geometry outline.

readonly outlineEnabled : boolean

Gets a value indicating if the geometry has an outline component.

readonly outlineWidth : number

Gets the constant with of the geometry outline, in pixels. This value is only valid if isDynamic is false.
Gets the property specifying whether the geometry casts or receives shadows from light sources.

方法

Creates the geometry instance which represents the fill of the geometry.
参数名称 类型 描述信息
time JulianDate The time to use when retrieving initial attribute values.
返回值:
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.
参数名称 类型 描述信息
time JulianDate The time to use when retrieving initial attribute values.
返回值:
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.
Returns true if this object was destroyed; otherwise, false.
返回值:
True if this object was destroyed; otherwise, false.
Checks if the geometry is filled at the provided time.
参数名称 类型 描述信息
time JulianDate The time for which to retrieve visibility.
返回值:
true if geometry is filled at the provided time, false otherwise.

isOutlineVisible(time)boolean

Checks if the geometry is outlined at the provided time.
参数名称 类型 描述信息
time JulianDate The time for which to retrieve visibility.
返回值:
true if geometry is outlined at the provided time, false otherwise.