Dynamic drawing path animation class
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
The object has the following properties:
|
Members
-
Animation duration, in seconds
-
Animation name, unique identification of animation
-
Path color
-
Path type
-
Path width
-
Whether to repeat the loop playback, the default is false
-
Show path line
-
Animation start time, in seconds
-
Along the tangent direction
-
wayPoints : Array.<PlotPoint3D>
-
Waypoint
Methods
-
Destroy objects and release resources.
-
getCurrentPt() → PlotPoint3D
-
Get the current position of the path animation
Returns:
current position -
getGOAnimationType() → GOAnimationType
-
Get animation type
Returns:
Animation type -
Get path line color
Returns:
Path line color -
getPathType() → WayPathType
-
Get route line type
Returns:
Path line type -
Get path width
Returns:
Path line width -
getWayPoints() → Array.<PlotPoint3D>
-
Get path animation point array
Returns:
Path point array -
Pause animation
-
Play animation
-
Reset animation
-
Set animation name
Name Type Description name
String Animation name Returns:
Settings successful or not. -
Set path line color
Name Type Description color
String Path line color raga -
Set path line type
Name Type Description pathType
WayPathType Path line type -
Set path line width
Name Type Description width
Number Path line width -
Set whether to display the animation path
Name Type Description value
Boolean Show path or not. -
Stop animation