Skip to content

KBE3D / KBCore / Cesium / DataSourceDisplay

类: DataSourceDisplay

Visualizes a collection of DataSource instances.

参数

Object with the following properties:

参数

The scene in which to display the data.

参数

The data sources to display.

参数

A function which creates an array of visualizers used for visualization. If undefined, all standard visualizers are used.

属性

scene

scene: Scene

Gets the scene associated with this display.


dataSources

dataSources: DataSourceCollection

Gets the collection of data sources to display.


defaultDataSource

defaultDataSource: CustomDataSource

Gets the default data source instance which can be used to manually create and visualize entities not tied to a specific data source. This instance is always available and does not appear in the list dataSources collection.


ready

readonly ready: boolean

Gets a value indicating whether or not all entities in the data source are ready

方法

defaultVisualizersCallback()

static defaultVisualizersCallback(): void

Gets or sets the default function which creates an array of visualizers used for visualization. By default, this function uses all standard visualizers.

返回

void


isDestroyed()

isDestroyed(): boolean

Returns true if this object was destroyed; otherwise, false. <br /><br /> If this object was destroyed, it should not be used; calling any function other than <code>isDestroyed</code> will result in a DeveloperError exception.

返回

boolean

True if this object was destroyed; otherwise, false.


destroy()

destroy(): void

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. <br /><br /> Once an object is destroyed, it should not be used; calling any function other than <code>isDestroyed</code> will result in a DeveloperError exception. Therefore, assign the return value (<code>undefined</code>) to the object as done in the example.

返回

void

示例

ts
dataSourceDisplay = dataSourceDisplay.destroy();

update()

update(time: JulianDate): boolean

Updates the display to the provided time.

参数

time

JulianDate

The simulation time.

返回

boolean

True if all data sources are ready to be displayed, false otherwise.

构造函数

构造函数

new DataSourceDisplay(options: { scene: Scene; dataSourceCollection: DataSourceCollection; visualizersCallback?: VisualizersCallback; }): DataSourceDisplay

参数

options
scene

Scene

dataSourceCollection

DataSourceCollection

visualizersCallback?

VisualizersCallback

返回

DataSourceDisplay

KBE3D @3.0.0 Copyright © 2024-present KBE3D