DataSourceDisplay

DataSourceDisplay

new

Visualizes a collection of DataSource instances.

Parameters:
Name Type Argument Description
scene Scene The scene in which to display the data.
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.
Source:

Methods

<static>

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
dataSourceDisplay = dataSourceDisplay.destroy();
See:
  • DataSourceDisplay#isDestroyed

<static>

Gets the collection of data sources to be displayed.

Returns:
DataSourceCollection The collection of data sources.

<static>

Gets the scene being used for display.

Returns:
Scene The scene.

<static>

Gets the types of visualizers being used for display.

Returns:
Array A copy of the visualizer types being used for display.

<static>

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:
  • DataSourceDisplay#destroy

<static>

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.