@JsType(isNative=true, namespace="Cesium", name="CustomDataSource") public class CustomDataSource 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 or sets the clock for this instance.
|
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 or sets whether 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 or sets a human-readable name for this instance.
|
boolean |
show
Gets whether or not this data source should be displayed.
|
Constructor and Description |
---|
CustomDataSource()
A
DataSource implementation which can be used to manually manage a group of entities. |
CustomDataSource(String name)
A
DataSource implementation which can be used to manually manage a group of entities. |
Modifier and Type | Method and Description |
---|---|
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 CustomDataSource()
DataSource
implementation which can be used to manually manage a group of entities.
Example:
DataSource dataSource = new CustomDataSource("myData");
BillboardGraphicsOptions options = new BillboardGraphicsOptions();
options.image = "image.png";
EntityOptions entityOptions = new EntityOptions();
entityOptions.billboard = new BillboardGraphics(options);
Entity entity = dataSource.entities().add(new Entity(entityOptions));
viewer.dataSources.add(dataSource);
@JsConstructor public CustomDataSource(String name)
DataSource
implementation which can be used to manually manage a group of entities.
Example:
DataSource dataSource = new CustomDataSource("myData");
BillboardGraphicsOptions options = new BillboardGraphicsOptions();
options.image = "image.png";
EntityOptions entityOptions = new EntityOptions();
entityOptions.billboard = new BillboardGraphics(options);
Entity entity = dataSource.entities().add(new Entity(entityOptions));
viewer.dataSources.add(dataSource);
name
- A human-readable name for this instance.@JsMethod @JsIgnore public boolean update(JulianDate time)
DataSource
update
in interface DataSource
time
- The simulation time.Copyright © 2019. All rights reserved.