PolylineGeometryUpdater

new Cesium.PolylineGeometryUpdater(entity, scene)

A GeometryUpdater for polylines. Clients do not normally create this class directly, but instead rely on DataSourceDisplay.
Name Type Description
entity Entity The entity containing the geometry to be visualized.
scene Scene The scene where visualization is taking place.

Members

Gets a value indicating if the path of the line.

readonlyclampToGround : Boolean

Gets a value indicating if the geometry is clamped to the ground. Returns false if polylines on terrain is not supported.

readonlyclassificationTypeProperty : Property

Gets or sets the ClassificationType Property specifying if this geometry will classify terrain, 3D Tiles, or both when on the ground.

readonlydepthFailMaterialProperty : MaterialProperty

Gets the material property used to fill the geometry when it fails the depth test.

readonlydistanceDisplayConditionProperty : 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.

readonlyfillEnabled : Boolean

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

readonlygeometryChanged : Boolean

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

readonlyhasConstantFill : Boolean

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

readonlyhasConstantOutline : Boolean

Gets a value indicating if outline visibility varies with simulation time.
Gets the unique ID associated with this updater

readonlyisClosed : Boolean

Gets a value indicating if the geometry is closed. This property is only valid for static geometry.

readonlyisDynamic : Boolean

Gets a value indicating if the geometry is time-varying. If true, all visualization is delegated to the DynamicGeometryUpdater returned by GeometryUpdater#createDynamicUpdater.

readonlyoutlineColorProperty : Property

Gets the Color property for the geometry outline.

readonlyoutlineEnabled : Boolean

Gets a value indicating if the geometry has an outline component.
Gets the property specifying whether the geometry casts or receives shadows from each light source.
Gets the zindex

Methods

createDynamicUpdater(primitives, groundPrimitives)DynamicGeometryUpdater

Creates the dynamic updater to be used when GeometryUpdater#isDynamic is true.
Name Type Description
primitives PrimitiveCollection The primitive collection to use.
groundPrimitives PrimitiveCollection | OrderedGroundPrimitiveCollection The primitive collection to use for ordered ground primitives.
Returns:
The dynamic updater used to update the geometry each frame.
Throws:

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.

isDestroyed()Boolean

Returns true if this object was destroyed; otherwise, false.
Returns:
True if this object was destroyed; otherwise, false.

isFilled(time)Boolean

Checks if the geometry is filled at the provided time.
Name Type Description
time JulianDate The time for which to retrieve visibility.
Returns:
true if geometry is filled at the provided time, false otherwise.

isOutlineVisible(time)Boolean

Checks if the geometry is outlined at the provided time.
Name Type Description
time JulianDate The time for which to retrieve visibility.
Returns:
true if geometry is outlined at the provided time, false otherwise.