@JsType(isNative=true, namespace="Cesium", name="ModelVisualizer") public class ModelVisualizer extends Object implements Visualizer
Constructor and Description |
---|
ModelVisualizer(EntityCluster entityCluster,
EntityCollection entityCollection)
A
Visualizer which maps Entity.model to a Model. |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Removes and destroys all primitives created by this instance.
|
boolean |
isDestroyed()
Returns true if this object was destroyed; otherwise, false.
|
boolean |
update(JulianDate time)
Updates the primitives created by this visualizer to match their Entity counterpart at the given time.
|
@JsConstructor public ModelVisualizer(EntityCluster entityCluster, EntityCollection entityCollection)
Visualizer
which maps Entity.model
to a Model.entityCluster
- The entity cluster to manage the collection of billboards and optionally cluster with other entities.entityCollection
- The entityCollection to visualize.@JsMethod public void destroy()
@JsMethod public boolean isDestroyed()
@JsMethod public boolean update(JulianDate time)
time
- The time to update to.Copyright © 2019. All rights reserved.