GOAnimationWay

动态标绘路径动画类

new Cesium.GOAnimationWay(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 Color.RED optional 路径线色,默认为 红色
pathType WayPathType WayPathType.POLYLINE optional 路径类型,默认为WayPathType.POLYLINE
wayPoints Array [] optional 路径点数组,默认为[]

Members

pathColor : Color

路径线色

pathType : Number

路径类型

pathWidth : Number

路径线宽

scaneColor : Color

扫描锥颜色

showPath : Boolean

是否显示路径线

showScane : Boolean

是否显示扫描锥

tangentDirection : Boolean

是否沿切线方向

wayPoints : AlgoSymbol

路径点

wayPoints : Array.<PlotPoint3D>

路径点

Methods

createScane(options)

创建动画对象扫描特效实体
Name Type Description
options Object 扫描实体配置项
Name Type Description
point PlotPoint3D 位置点
length Number 扫描体长度,单位米
radius Number 扫描体底面半径,单位米
rotate PlotPoint3D 扫描体旋转角度,单位°
offsetRotate PlotPoint3D 扫描体旋转偏移角度,单位°
color Color 扫描体颜色

getCurrentPt()PlotPoint3D

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

getGOAnimationType()GOAnimationType

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

getPathColor()string

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

getPathType()WayPathType

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

getPathWidth()Number

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

getWayPoints()Array.<PlotPoint3D>

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

removeScane()

移除动画扫描特效

setCameraFollow(isFollow, followType, distance, height)

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

setPathColor(color)

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

setPathType(pathType)

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

setPathWidth(width)

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

setScaneColor(color)

设置动画扫描特效颜色
Name Type Description
color Color 扫描颜色

setScaneVisible(show)

设置动画扫描特效显隐
Name Type Description
show Boolean 扫描是否显示

setShowPath(value)

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