GeometryVisualizer

external class GeometryVisualizer(scene: Scene, entityCollection: EntityCollection, primitives: PrimitiveCollection? = definedExternally, groundPrimitives: PrimitiveCollection? = definedExternally) : Visualizer(source)

A general purpose visualizer for geometry represented by Primitive instances.

Parameters

scene

The scene the primitives will be rendered in.

entityCollection

The entityCollection to visualize.

primitives

A collection to add primitives related to the entities Default value - scene.primitives

groundPrimitives

A collection to add ground primitives related to the entities Default value - scene.groundPrimitives

See also

Constructors

Link copied to clipboard
constructor(scene: Scene, entityCollection: EntityCollection, primitives: PrimitiveCollection? = definedExternally, groundPrimitives: PrimitiveCollection? = definedExternally)

Functions

Link copied to clipboard
open override fun destroy()

Removes and destroys all primitives created by this instance.

Link copied to clipboard
open override fun isDestroyed(): Boolean

Returns true if this object was destroyed; otherwise, false.

Link copied to clipboard
open override fun update(time: JulianDate): Boolean

Updates all of the primitives created by this visualizer to match their Entity counterpart at the given time.