GOAnimationWay_ModelGroup

动态标绘路径动画类

new Cesium.GOAnimationWay_ModelGroup(options)

Name Type Description
options Object optional 对象具有以下属性:
Name Type Default Description
startTime Number 0 optional 动画开始时间,单位为秒
duration Number 0 optional 动画时长,单位为秒
name String "" optional 动画名称,动画的唯一标识
repeat Boolean false optional 是否重复循环播放,默认为false
showPath Boolean false optional 是否显示路径,默认为false
tangentDirection Boolean false optional 是否沿切线方向,默认为false
pathWidth Number 0.5 optional 路径线宽,默认为0.5
pathColor Color "#FF0000" optional 路径线色,默认为"#FF0000"
pathType WayPathType WayPathType.POLYLINE optional 路径类型,默认为WayPathType.POLYLINE
wayPoints Array [] optional 路径点数组,默认为[]

Members

pathColor : Number

路径线色

pathType : Number

路径类型

pathWidth : Number

路径线宽

showPath : Boolean

是否显示路径线

showScane : Boolean

是否显示路径线

tangentDirection : Boolean

是否沿切线方向

wayPoints : Array.<PlotPoint3D>

路径点

Methods

createScane(options)

创建动画对象扫描实体
Name Type Description
options Object 扫描实体配置项
Name Type Description
point PlotPoint3D 扫描半径,单位米
radian Number 扫描半径,单位米
angle Number 扫描角度,单位度
rotate PlotPoint3D 扫描角度,单位度

getCurrentPt()PlotPoint3D

获取路径动画当前位置
Returns:
当前位置

getGOAnimationType()GOAnimationType

获取动画类型
Returns:
动画类型

getPathColor()string

获取路径线颜色
Returns:
路径线颜色

getPathType()WayPathType

获取路径线类型
Returns:
路径线类型

getPathWidth()Number

获取路径线宽度
Returns:
路径线宽度

getWayPoints()Array.<PlotPoint3D>

获取路径动画点数组
Returns:
路径点数组

setCameraFollow(isFollow, followType, distance, height)

设置相机跟随
Name Type Description
isFollow Boolean 是否跟随
followType Number 跟随角度
distance Number 到目标距离
height Number 相对相机高度
Returns:
是否设置成功

setPathColor(color)

设置路径线颜色
Name Type Description
color String 路径线颜色raga

setPathType(pathType)

设置路径线类型
Name Type Description
pathType WayPathType 路径线类型

setPathWidth(width)

设置路径线宽度
Name Type Description
width Number 路径线宽度

setShowPath(value)

设置是否显示动画路径
Name Type Description
value Boolean 是否显示路径