Dynamic plot path animation class
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
The object has the following properties:
|
Members
-
Animation duration in seconds
-
Animated name, unique identifier of the animation
-
Path line color
-
Path type
-
Path line width
-
Whether to repeat the loop play, the default is false
-
Whether to display the path line
-
Animation start time in seconds
-
Whether it is in the tangential direction
-
wayPoints : Array.<Cartesian3>
-
Path point
Methods
-
Destroy objects and free up resources.
-
getCurrentPt() → Cartesian3
-
Get the current position of the path animation
Returns:
current position -
getGOAnimationType() → GOAnimationType
-
Get the animation type
Returns:
Animation type -
Get the path line color
Returns:
Path line color -
getPathType() → WayPathType
-
Get path line type
Returns:
Path line type -
Get path line width
Returns:
Path line width -
getWayPoints() → Array.<Cartesian3>
-
Get path animation point array
Returns:
Path point array -
Pause animation
-
Play animation
-
Reset animation
-
Set the animation name
Name Type Description name
String Animation name Returns:
Whether the setting is successful -
Set the path line color
Name Type Description color
String Path line color raga -
Set the path line type
Name Type Description pathType
WayPathType Path line type -
Set the path line width
Name Type Description width
Number Path line width -
Set whether to display the animation path
Name Type Description value
Boolean Whether to display the path -
Stop animation