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. | |
visualizersCallback |
Visualizer[] |
<optional> |
A function which takes a scene and dataSource and returns the array of visualizers used for visualization. If left undefined, all standard visualizers are used. |
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.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.