GeometryVisualizer

GeometryVisualizer

new

A general purpose visualizer for all graphics that can be represented by Primitive instances.

Parameters:
Name Type Argument Description
type GeometryUpdater The updater to be used for creating the geometry.
scene Scene The scene the primitives will be rendered in.
dynamicObjectCollection DynamicObjectCollection <optional>
The dynamicObjectCollection to visualize.
Source:

Methods

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.

Once an object is destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception. Therefore, assign the return value (undefined) to the object as done in the example.

Throws:
DeveloperError : This object was destroyed, i.e., destroy() was called.

Gets the DynamicObjectCollection being visualized.

Returns:
DynamicObjectCollection The DynamicObjectCollection being visualized.

Returns the scene being used by this visualizer.

Returns:
Scene The scene being used by this visualizer.

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

If this object was destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception.

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

Removes all primitives from the scene.

Sets the DynamicObjectCollection to visualize.

Parameters:
Name Type Description
dynamicObjectCollection DynamicObjectCollection The DynamicObjectCollection to visualizer.

Updates all of the primitives created by this visualizer to match their DynamicObject counterpart at the given time.

Parameters:
Name Type Description
time JulianDate The time to update to.