Class: PolygonGeometryUpdater

PolygonGeometryUpdater

new PolygonGeometryUpdater(entity, scene)

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

Members

(static) materialAppearanceType :Appearance

Gets the type of Appearance to use for material-based geometry.
Type:
Source:

(static) perInstanceColorAppearanceType :Appearance

Gets the type of Appearance to use for simple color-based geometry.
Type:
Source:

(readonly) distanceDisplayConditionProperty :Property

Gets or sets the DistanceDisplayCondition Property specifying at what distance from the camera that this geometry will be displayed.
Type:
Source:

(readonly) entity :Entity

Gets the entity associated with this geometry.
Type:
Source:

(readonly) fillEnabled :Boolean

Gets a value indicating if the geometry has a fill component.
Type:
  • Boolean
Source:

(readonly) fillMaterialProperty :MaterialProperty

Gets the material property used to fill the geometry.
Type:
Source:

(readonly) geometryChanged :Boolean

Gets an event that is raised whenever the public properties of this updater change.
Type:
  • Boolean
Source:

(readonly) hasConstantFill :Boolean

Gets a value indicating if fill visibility varies with simulation time.
Type:
  • Boolean
Source:

(readonly) hasConstantOutline :Boolean

Gets a value indicating if the geometry has an outline component.
Type:
  • Boolean
Source:

(readonly) isClosed :Boolean

Gets a value indicating if the geometry is closed. This property is only valid for static geometry.
Type:
  • Boolean
Source:

(readonly) isDynamic :Boolean

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

(readonly) onTerrain :Boolean

Gets a value indicating if the geometry should be drawn on terrain.
Type:
  • Boolean
Source:

(readonly) outlineColorProperty :Property

Gets the Color property for the geometry outline.
Type:
Source:

(readonly) outlineEnabled :Boolean

Gets a value indicating if the geometry has an outline component.
Type:
  • Boolean
Source:

(readonly) outlineWidth :Number

Gets the constant with of the geometry outline, in pixels. This value is only valid if isDynamic is false.
Type:
  • Number
Source:

(readonly) shadowsProperty :Property

Gets the property specifying whether the geometry casts or receives shadows from each light source.
Type:
Source:

Methods

createDynamicUpdater(primitives) → {DynamicGeometryUpdater}

Creates the dynamic updater to be used when GeometryUpdater#isDynamic is true.
Parameters:
Name Type Description
primitives PrimitiveCollection The primitive collection to use.
Source:
Throws:
This instance does not represent dynamic geometry.
Type
DeveloperError
Returns:
The dynamic updater used to update the geometry each frame.
Type
DynamicGeometryUpdater

createFillGeometryInstance(time) → {GeometryInstance}

Creates the geometry instance which represents the fill of the geometry.
Parameters:
Name Type Description
time JulianDate The time to use when retrieving initial attribute values.
Source:
Throws:
This instance does not represent a filled geometry.
Type
DeveloperError
Returns:
The geometry instance representing the filled portion of the geometry.
Type
GeometryInstance

createOutlineGeometryInstance(time) → {GeometryInstance}

Creates the geometry instance which represents the outline of the geometry.
Parameters:
Name Type Description
time JulianDate The time to use when retrieving initial attribute values.
Source:
Throws:
This instance does not represent an outlined geometry.
Type
DeveloperError
Returns:
The geometry instance representing the outline portion of the geometry.
Type
GeometryInstance

destroy()

Destroys and resources used by the object. Once an object is destroyed, it should not be used.
Source:
Throws:
This object was destroyed, i.e., destroy() was called.
Type
DeveloperError

isDestroyed() → {Boolean}

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

isFilled(time) → {Boolean}

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

isOutlineVisible(time) → {Boolean}

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