Class: GeometryVisualizer

GeometryVisualizer

new GeometryVisualizer(type, scene, entityCollection)

A general purpose visualizer for geometry represented by Primitive instances.
Parameters:
Name Type Description
type GeometryUpdater The updater to be used for creating the geometry.
scene Scene The scene the primitives will be rendered in.
entityCollection EntityCollection The entityCollection to visualize.
Source:

Methods

destroy()

Removes and destroys all primitives created by this instance.
Source:

isDestroyed() → {Boolean}

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

update(time) → {Boolean}

Updates all of the primitives created by this visualizer to match their Entity counterpart at the given time.
Parameters:
Name Type Description
time JulianDate The time to update to.
Source:
Returns:
True if the visualizer successfully updated to the provided time, false if the visualizer is waiting for asynchronous primitives to be created.
Type
Boolean