new DataSourceDisplay
Visualizes a collection of DataSource instances.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
scene |
Scene | The scene in which to display the data. | |
dataSourceCollection |
DataSourceCollection | The data sources to display. | |
visualizerTypes |
Array |
<optional> |
The array of visualizer constructor functions that will be created for each data source. If undefined, All standard visualizers will be used. |
Throws:
-
DeveloperError : scene is required.
-
DeveloperError : dataSourceCollection is required.
Methods
-
<static> prototype.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
dataSourceDisplay = dataSourceDisplay.destroy();
- DataSourceDisplay#isDestroyed
See:
-
<static> prototype.getDataSources
-
Gets the collection of data sources to be displayed.
Returns:
DataSourceCollection The collection of data sources. -
<static> prototype.getScene
-
Gets the scene being used for display.
Returns:
Scene The scene. -
<static> prototype.getVisualizerTypes
-
Gets the types of visualizers being used for display.
Returns:
Array A copy of the visualizer types being used for display. -
<static> prototype.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.- DataSourceDisplay#destroy
See:
-
<static> prototype.update
-
Updates time-varying data sources to the provided time and also updates static data sources that have changed since the last call to update.
Parameters:
Name Type Description time
JulianDate The simulation time. Throws:
DeveloperError : time is required.