RectangleGeometryUpdater

new Cesium.RectangleGeometryUpdater(entity, scene)

用于更新矩形的 GeometryUpdater。 Clients do not normally create this class directly, but instead rely on DataSourceDisplay.
Name Type Description
entity Entity 矩形几何型实体、
scene Scene 场景。

Methods

createFillGeometryInstance(time) → GeometryInstance

创建表示几何图形填充的几何图形实例。
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

创建表示几何图形边框的几何图形实例。
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.