DynamicPointVisualizer

DynamicPointVisualizer

new

A DynamicObject visualizer which maps the DynamicPoint instance in DynamicObject.point to a Billboard primitive with a point texture.

Parameters:
Name Type Argument Description
scene Scene The scene the primitives will be rendered in.
dynamicObjectCollection DynamicObjectCollection <optional>
The dynamicObjectCollection to visualize.
Throws:
DeveloperError : scene is required.
See:
Source:

Methods

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.

Once an object is destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception. Therefore, assign the return value (undefined) to the object as done in the example.

Throws:
DeveloperError : This object was destroyed, i.e., destroy() was called.
Returns:
Example
visualizer = visualizer && visualizer.destroy();
See:

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

If this object was destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception.

Returns:
Boolean True if this object was destroyed; otherwise, false.
See:

<static>

Gets the DynamicObjectCollection being visualized.

Returns:
DynamicObjectCollection The DynamicObjectCollection being visualized.

<static>

Returns the scene being used by this visualizer.

Returns:
Scene The scene being used by this visualizer.

<static>

Removes all primitives from the scene.

<static>

Sets the DynamicObjectCollection to visualize.

Parameters:
Name Type Description
dynamicObjectCollection The DynamicObjectCollection to visualizer.

<static>

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

Parameters:
Name Type Description
time JulianDate The time to update to.
Throws:
DeveloperError : time is required.