new DataSource()
定义数据源的接口,可将任意数据转换为EntityCollection供使用。
此对象是用于文档目的的接口,不能直接实例化。
- See:
Members
-
changedEventEvent
-
获取基础数据更改时引发的事件。
-
clockDataSourceClock
-
获取此数据源的首选时钟设置。
-
clusteringEntityCluster
-
获取或设置数据源的选项集,多个数据源对象共有属性。
-
entitiesEntityCollection
-
获取实例
Entity的集合。 -
errorEventEvent
-
获取处理过程中遇到错误时引发的事件。
-
isLoadingBoolean
-
获取一个值,指示数据源是否正在加载数据。
-
loadingEventEvent
-
获取isLoading值更改时引发的事件。
-
nameString
-
获取对象的可读名称。
-
showBoolean
-
获取是否显示此数据源。
Methods
-
update(time){Boolean}
-
将数据源更新至所提供的时间。此函数为可选函数,不强制要求实现。 它专为那些根据当前动画时间或场景状态检索数据的数据源而提供。 如果实现,则每帧将由
DataSourceDisplay调用一次update方法。Name Type Description timeJulianDate The simulation time.
Returns:
Type Description Boolean True if this data source is ready to be displayed at the provided time, false otherwise.