VisualizerCollection

VisualizerCollection

new

A collection of visualizers which makes it easy to manage and update them in unison.

Parameters:
Name Type Description
The Object array of visualizers to use.
The DynamicObjectCollection objects to be visualized.
See:
  • CzmlDefaults#createVisualizers
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.
Returns:
Example
visualizerCollection = visualizerCollection && visualizerCollection.destroy();
See:

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

<static>

Creates a new VisualizerCollection which includes all standard visualizers.

Parameters:
Name Type Description
The Scene scene where visualization will take place.
The DynamicObjectCollection objects to be visualized.
Throws:
DeveloperError : scene is required.
See:
  • CzmlDefaults#createVisualizers

<static>

Gets the DynamicObjectCollection being visualized.

Returns:
the DynamicObjectCollection being visualized

<static>

Gets a copy of the array of visualizers in the collection.

Returns:
Array the array of visualizers in the collection.

<static>

Removes all primitives from visualization.

<static>

Sets the DynamicObjectCollection being visualized.

Parameters:
Name Type Description
dynamicObjectCollection DynamicObjectCollection the DynamicObjectCollection being visualized.

<static>

Sets the array of visualizers in the collection.

Parameters:
Name Type Description
visualizers Array The new array of visualizers. This array can partially overlap with visualizers currently in the collection.
destroyOldVisualizers Boolean If true, visualizers no longer in the collection will be destroyed.

<static>

Updates all visualizers to the provided time.

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