Appearance
KBE3D / KBCore / Cesium / DataSource
类: DataSource
Defines the interface for data sources, which turn arbitrary data into a EntityCollection for generic consumption. This object is an interface for documentation purposes and is not intended to be instantiated directly.
属性
name
name:
string
Gets a human-readable name for this instance.
clock
clock:
DataSourceClock
Gets the preferred clock settings for this data source.
entities
entities:
EntityCollection
Gets the collection of Entity instances.
isLoading
isLoading:
boolean
Gets a value indicating if the data source is currently loading data.
changedEvent
changedEvent:
Event
Gets an event that will be raised when the underlying data changes.
errorEvent
errorEvent:
Event<(arg0:this,arg1:RequestErrorEvent) =>void>
Gets an event that will be raised if an error is encountered during processing.
loadingEvent
loadingEvent:
Event<(arg0:this,arg1:boolean) =>void>
Gets an event that will be raised when the value of isLoading changes.
show
show:
boolean
Gets whether or not this data source should be displayed.
clustering
clustering:
EntityCluster
Gets or sets the clustering options for this data source. This object can be shared between multiple data sources.
方法
update()
update(
time:JulianDate):boolean
Updates the data source to the provided time. This function is optional and is not required to be implemented. It is provided for data sources which retrieve data based on the current animation time or scene state. If implemented, update will be called by DataSourceDisplay once a frame.
参数
time
The simulation time.
返回
boolean
True if this data source is ready to be displayed at the provided time, false otherwise.
构造函数
构造函数
new DataSource():
DataSource
返回
DataSource
