new DataSourceDisplay
Visualizes a collection of DataSource instances.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
scene |
Scene | The scene in which to display the data. | ||
dataSourceCollection |
DataSourceCollection | The data sources to display. | ||
visualizersCallback |
Function |
<optional> |
DataSourceDisplay.defaultVisualizersCallback | A function which takes a scene and dataSource and returns the array of visualizers used for visualization. If undefined, all standard visualizers are used. |
Source:
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
dataSourceDisplay = dataSourceDisplay.destroy();
-
getDataSources
-
Gets the collection of data sources to be displayed.
Returns:
DataSourceCollection The collection of data sources. -
getScene
-
Gets the scene being used for display.
Returns:
Scene The scene. -
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. -
update
-
Updates the display to the provided time.
Parameters:
Name Type Description time
JulianDate The simulation time. Returns:
Boolean True if all data sources are ready to be displayed, false otherwise. -
<static> 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.