@JsType(isNative=true,
namespace="Cesium",
name="CzmlDataSource")
public class CzmlDataSource
extends Object
implements DataSource
| Modifier and Type | Field and Description |
|---|---|
Event |
changedEvent
Gets an event that will be raised when the underlying data changes.
|
DataSourceClock |
clock
Gets the clock settings defined by the loaded CZML.
|
EntityCluster |
clustering
Gets or sets the clustering options for this data source.
|
EntityCollection |
entities
Gets the collection of Entity instances.
|
Event |
errorEvent
Gets an event that will be raised if an error is encountered during processing.
|
Boolean |
isLoading
Gets a value indicating if the data source is currently loading data.
|
Event |
loadingEvent
Gets an event that will be raised when the data source either starts or stops loading.
|
String |
name
Gets a human-readable name for this instance.
|
Boolean |
show
Gets whether or not this data source should be displayed.
|
| Constructor and Description |
|---|
CzmlDataSource()
A
DataSource which processes CZML. |
CzmlDataSource(String name)
A
DataSource which processes CZML. |
| Modifier and Type | Method and Description |
|---|---|
static Promise<CzmlDataSource,Void> |
load(Object data)
Creates a Promise to a new instance loaded with the provided CZML data.
|
static Promise<CzmlDataSource,Void> |
load(Object data,
CzmlDataSourceOptions options)
Creates a Promise to a new instance loaded with the provided CZML data.
|
static Promise<CzmlDataSource,Void> |
load(String data)
Creates a Promise to a new instance loaded with the provided CZML data.
|
static Promise<CzmlDataSource,Void> |
load(String data,
CzmlDataSourceOptions options)
Creates a Promise to a new instance loaded with the provided CZML data.
|
Promise<CzmlDataSource,Void> |
process(Object czml)
Processes the provided url or CZML object without clearing any existing data.
|
Promise<CzmlDataSource,Void> |
process(Object czml,
CzmlDataSourceOptions options)
Processes the provided url or CZML object without clearing any existing data.
|
Promise<CzmlDataSource,Void> |
process(String czml)
Processes the provided url or CZML object without clearing any existing data.
|
Promise<CzmlDataSource,Void> |
process(String czml,
CzmlDataSourceOptions options)
Processes the provided url or CZML object without clearing any existing data.
|
boolean |
update(JulianDate time)
Updates the data source to the provided time.
|
@JsProperty public Event changedEvent
@JsProperty public DataSourceClock clock
@JsProperty public EntityCluster clustering
@JsProperty public EntityCollection entities
@JsProperty public Event errorEvent
@JsProperty public Boolean isLoading
@JsProperty public Event loadingEvent
@JsProperty public String name
@JsProperty public Boolean show
@JsConstructor public CzmlDataSource()
DataSource which processes CZML.@JsConstructor public CzmlDataSource(String name)
DataSource which processes CZML.name - An optional name for the data source. This value will be overwritten if a loaded document contains a name.@JsMethod public static Promise<CzmlDataSource,Void> load(String data)
data - A url to be processed.@JsMethod public static Promise<CzmlDataSource,Void> load(String data, CzmlDataSourceOptions options)
data - A url to be processed.options - Options.@JsMethod public static Promise<CzmlDataSource,Void> load(Object data)
data - CZML object to be processed.@JsMethod public static Promise<CzmlDataSource,Void> load(Object data, CzmlDataSourceOptions options)
data - CZML object to be processed.options - Options.@JsMethod public Promise<CzmlDataSource,Void> process(String czml)
czml - A url to be processed.@JsMethod public Promise<CzmlDataSource,Void> process(String czml, CzmlDataSourceOptions options)
czml - A url to be processed.options - CzmlDataSourceOptions@JsMethod public Promise<CzmlDataSource,Void> process(Object czml)
czml - CZML object to be processed.@JsMethod public Promise<CzmlDataSource,Void> process(Object czml, CzmlDataSourceOptions options)
czml - CZML object to be processed.options - CzmlDataSourceOptions@JsMethod @JsIgnore public boolean update(JulianDate time)
DataSourceupdate in interface DataSourcetime - The simulation time.Copyright © 2019. All rights reserved.