@JsType(isNative=true, namespace="Cesium", name="GeometryVisualizer") public class GeometryVisualizer extends Object implements Visualizer
Constructor and Description |
---|
GeometryVisualizer(Scene scene,
EntityCollection entityCollection)
A general purpose visualizer for geometry represented by
Primitive instances. |
GeometryVisualizer(Scene scene,
EntityCollection entityCollection,
PrimitiveCollection primitives)
A general purpose visualizer for geometry represented by
Primitive instances. |
GeometryVisualizer(Scene scene,
EntityCollection entityCollection,
PrimitiveCollection primitives,
PrimitiveCollection groundPrimitives)
A general purpose visualizer for geometry represented by
Primitive instances. |
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 GeometryVisualizer(Scene scene, EntityCollection entityCollection)
Primitive
instances.scene
- The scene the primitives will be rendered in.entityCollection
- The entityCollection to visualize.@JsConstructor public GeometryVisualizer(Scene scene, EntityCollection entityCollection, PrimitiveCollection primitives)
Primitive
instances.scene
- The scene the primitives will be rendered in.entityCollection
- The entityCollection to visualize.primitives
- A collection to add primitives related to the entities@JsConstructor public GeometryVisualizer(Scene scene, EntityCollection entityCollection, PrimitiveCollection primitives, PrimitiveCollection groundPrimitives)
Primitive
instances.scene
- The scene the primitives will be rendered in.entityCollection
- The entityCollection to visualize.primitives
- A collection to add primitives related to the entitiesgroundPrimitives
- A collection to add ground primitives related to the entities@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.