A
GeometryUpdater
for boxes.
Clients do not normally create this class directly, but instead rely on DataSourceDisplay
.
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
An object with the following properties:
|
Members
-
readonlyclassificationTypeProperty : Property
-
Gets or sets the
ClassificationType
Property specifying if this geometry will classify terrain, 3D Tiles, or both when on the ground. -
Creates the geometry instance which represents the fill of the geometry.
-
Creates the geometry instance which represents the outline of the geometry.
-
readonlydistanceDisplayConditionProperty : Property
-
Gets or sets the
DistanceDisplayCondition
Property specifying at what distance from the camera that this geometry will be displayed. -
readonlyentity : Entity
-
Gets the entity associated with this geometry.
-
Gets a value indicating if the geometry has a fill component.
-
readonlyfillMaterialProperty : 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.
-
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. If true, all visualization is delegated to the
DynamicGeometryUpdater
returned by GeometryUpdater#createDynamicUpdater. -
readonlyoutlineColorProperty : Property
-
Gets the
Color
property for the geometry outline. -
Gets a value indicating if the geometry has an outline component.
-
Gets the constant with of the geometry outline, in pixels. This value is only valid if isDynamic is false.
-
readonlyshadowsProperty : Property
-
Gets the property specifying whether the geometry casts or receives shadows from each light source.
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 optional The primitive collection to use for ground primitives. Returns:
The dynamic updater used to update the geometry each frame.Throws:
-
DeveloperError : This instance does not represent dynamic 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.
Returns:
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 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 if geometry is outlined at the provided time, false otherwise.