GOAnimationWay_ModelGroup

Model group path animation class

new SuperMap3D.GOAnimationWay_ModelGroup(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 0.5 optional ath line width, default is 0.5
pathColor Color "#FF0000" optional Path line color, the default is "#FF0000"
pathType WayPathType WayPathType.POLYLINE optional Path type, default is WayPathType. POLYLINE
wayPoints Array [] optional Array of path points, default to []

Members

pathColor : Number

path line color

pathType : Number

path type

pathWidth : Number

path line width

showPath : Boolean

Whether to display the path line

showScane : Boolean

Whether to display the scan cone

tangentDirection : Boolean

Is it tangential?

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
radian Number Scanning radius, in meters
angle Number Scanning angle, in degrees
rotate MPoint3D Rotation angle, in degrees

execute()GOAnimationType

Get animation type
Returns:
Animation type

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

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 String 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

setShowPath(value)

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