可视化集合 Visualizes a collection of
DataSource instances.
| 名称 Name | 类型 Type | 说明 Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
具有以下属性的对象: Object with the following properties:
|
成员 Members
获取要显示的数据源的集合。 Gets the collection of data sources to display.
defaultDataSource : CustomDataSource
获取默认数据源实例,该实例可用于手动创建和可视化未绑定到特定数据源的实体。该实例始终可用,并且不会出现在列表 dataSources 集合中。 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.
获取一个值,该值指示数据源中的所有实体是否已准备就绪 Gets a value indicating whether or not all entities in the data source are ready
获取与此显示关联的场景。 Gets the scene associated with this display.
方法 Methods
获取或设置创建用于可视化的可视化器数组的默认函数。默认情况下,此函数使用所有标准可视化工具。 Gets or sets the default function which creates an array of visualizers used for visualization. By default, this function uses all standard visualizers.
销毁该对象持有的 WebGL 资源。销毁对象可以确定性地释放 WebGL 资源,而不是依赖垃圾收集器来销毁该对象。 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
一旦对象被销毁,就不应再使用;调用除 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.
示例: Example:
dataSourceDisplay = dataSourceDisplay.destroy();
另见: See:
如果该对象被销毁则返回 true;否则为假。 Returns true if this object was destroyed; otherwise, false.
如果该对象被破坏,则不应使用它;调用除 If this object was destroyed, it should not be used; calling any function other than
如果该对象被破坏,则不应使用它;调用除 If this object was destroyed, it should not be used; calling any function other than
isDestroyed 将导致 will result in a DeveloperError exception.
返回: Returns:
如果该对象被销毁,则为 True;否则为假。 True if this object was destroyed; otherwise, false.
另见: See:
将显示更新为提供的时间。 Updates the display to the provided time.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
time |
JulianDate | 模拟时间。 The simulation time. |
返回: Returns:
如果所有数据源都已准备好显示,则为 true,否则为 false。 True if all data sources are ready to be displayed, false otherwise.
类型定义 Type Definitions
Cesium.DataSourceDisplay.VisualizersCallback(scene, entityCluster, dataSource) → Array.<Visualizer>
创建用于可视化的可视化器数组的函数。 A function which creates an array of visualizers used for visualization.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
scene |
Scene | 为其创建可视化工具的场景。 The scene to create visualizers for. |
entityCluster |
EntityCluster | 要为其创建可视化工具的实体集群。 The entity cluster to create visualizers for. |
dataSource |
DataSource | 用于创建可视化工具的数据源。 The data source to create visualizers for. |
返回: Returns:
用于可视化的一系列可视化工具。 An array of visualizers used for visualization.
示例: Example:
function createVisualizers(scene, entityCluster, dataSource) {
return [new Cesium.BillboardVisualizer(entityCluster, dataSource.entities)];
}
