new DynamicPathVisualizer
A DynamicObject visualizer which maps the DynamicPath instance in DynamicObject.path to a Polyline primitive.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
scene |
Scene | The scene the primitives will be rendered in. | |
dynamicObjectCollection |
DynamicObjectCollection |
<optional> |
The dynamicObjectCollection to visualize. |
Methods
-
destroy
-
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 thanisDestroyed
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();
-
isDestroyed
-
Returns true if this object was destroyed; otherwise, false.
If this object was destroyed, it should not be used; calling any function other thanisDestroyed
will result in a DeveloperError exception.Returns:
Boolean True if this object was destroyed; otherwise, false. -
<static> prototype.getDynamicObjectCollection
-
Gets the DynamicObjectCollection being visualized.
Returns:
DynamicObjectCollection The DynamicObjectCollection being visualized. -
<static> prototype.getScene
-
Returns the scene being used by this visualizer.
Returns:
Scene The scene being used by this visualizer. -
<static> prototype.removeAllPrimitives
-
Removes all primitives from the scene.
-
<static> prototype.setDynamicObjectCollection
-
Sets the DynamicObjectCollection to visualize.
Parameters:
Name Type Description dynamicObjectCollection
The DynamicObjectCollection to visualizer. -
<static> prototype.update
-
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.