DataSourceDisplay

new DataSourceDisplay(scene, dataSourceCollection, visualizersCallback)

Visualizes a collection of DataSource instances.
Name Type Default Description
scene Scene The scene in which to display the data.
dataSourceCollection DataSourceCollection The data sources to display.
visualizersCallback function DataSourceDisplay.defaultVisualizersCallback optional A function which takes a scene and dataSource and returns the array of visualizers used for visualization. If undefined, all standard visualizers are used.

Methods

staticDataSourceDisplay.defaultVisualizersCallback()

Gets or sets the default function which takes a scene and dataSource and returns the array of visualizers used for visualization. By default, this function uses all standard visualizers.

destroy()undefined

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.
Returns:
Throws:
  • DeveloperError : This object was destroyed, i.e., destroy() was called.
Example:
dataSourceDisplay = dataSourceDisplay.destroy();
See:

getDataSources()DataSourceCollection

Gets the collection of data sources to be displayed.
Returns:
The collection of data sources.

getScene()Scene

Gets the scene being used for display.
Returns:
The scene.

isDestroyed()Boolean

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:
True if this object was destroyed; otherwise, false.
See:

update(time)Boolean

Updates the display to the provided time.
Name Type Description
time JulianDate The simulation time.
Returns:
True if all data sources are ready to be displayed, false otherwise.