GOAnimationWay

Path animation(old) class

new SuperMap3D.GOAnimationWay(options)

Name Type Description
options Object optional Objects have the following properties:
Name Type Default Description
startTime Number 0 optional Animation start time, in seconds
duration Number 0 optional Animation duration,in seconds
name String "" optional Animation name, the unique identifier of the animation
repeat Boolean false optional Whether to repeat the loop play, the default is false
showPath Boolean false optional Whether to display the path, the default is false
tangentDirection Boolean false optional Whether in the tangent direction, the default is false
pathWidth Number 3 optional Path line width, default is 3
pathColor Color Color.RED optional Path line color, the default is red
pathType WayPathType WayPathType.POLYLINE optional Path type, default is WayPathType. POLYLINE
wayPoints Array [] optional Array of path points, default to []

Members

pathColor : Color

path line color

pathType : WayPathType

path type

pathWidth : Number

path line width

rotateOffset : MPoint3D

Offset of model rotation

scaneColor : Color

Scan cone color

showPath : Boolean

Whether to display the path line

showScane : Boolean

Whether to display the scan cone

tangentDirection : Boolean

Is it tangential?

wayPoints : AlgoSymbol

Path points

wayPoints : Array.<MPoint3D>

Path points

Methods

createScane(options)

Create Animated Object Scan Effect Entities
Name Type Description
options Object Scan entity configuration items
Name Type Description
point MPoint3D Position points
length Number Scan body length,in meter
radius Number Base radius of the scanned body,in meter
rotate MPoint3D Rotation angle of the scanned body, in degrees
offsetRotate MPoint3D Rotation offset angle of the scanned body,in degrees
color Color Color of the scanned body

getCurrentPt()MPoint3D

Get the current position of the path animation
Returns:
current location

getGOAnimationType()GOAnimationType

Get animation type
Returns:
Animation type

getPathColor()string

Get the path line color
Returns:
Path line color

getPathType()WayPathType

Get the path line type
Returns:
Path line type

getPathWidth()Number

Get the width of the path line
Returns:
Width of the path line

getWayPoints()Array.<MPoint3D>

Get array of path points for path animation
Returns:
Array of path points

removeScane()

Remove animation scanning effects

setCameraFollow(isFollow, followType, distance, height)

Set the camera to follow
Name Type Description
isFollow Boolean Whether to follow
followType Number Follow angle
distance Number Distance to target
height Number Relative camera height
Returns:
Is the setting successful?

setPathColor(color)

Set the path line color
Name Type Description
color Color path line color with raga

setPathType(pathType)

Set the path line type
Name Type Description
pathType WayPathType Path line type

setPathWidth(width)

Set the path line width
Name Type Description
width Number Path line width

setScaneColor(color)

Set the animation scan effect color
Name Type Description
color Color Scan color

setScaneVisible(show)

Set visibility of animation scan effects
Name Type Description
show Boolean Scan display

setShowPath(value)

Set whether to display the animation path
Name Type Description
value Boolean Whether to show the path