new VisualizerCollection
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. |
Methods
-
destroy
-
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 thanisDestroyed
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();
-
isDestroyed
-
Returns true if this object was destroyed; otherwise, false.
If this object was destroyed, it should not be used; calling any function other thanisDestroyed
will result in a DeveloperError exception.Returns:
Boolean True if this object was destroyed; otherwise, false. -
<static> prototype.getDynamicObjectCollection
-
Gets the DynamicObjectCollection being visualized.
Returns:
the DynamicObjectCollection being visualized -
<static> prototype.getVisualizers
-
Gets a copy of the array of visualizers in the collection.
Returns:
Array the array of visualizers in the collection. -
<static> prototype.removeAllPrimitives
-
Removes all primitives from visualization.
-
<static> prototype.setDynamicObjectCollection
-
Sets the DynamicObjectCollection being visualized.
Parameters:
Name Type Description dynamicObjectCollection
DynamicObjectCollection the DynamicObjectCollection being visualized. -
<static> prototype.setVisualizers
-
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> prototype.update
-
Updates all visualizers to the provided time.
Parameters:
Name Type Description time
JulianDate The time to updated to.