GeoEntityRotationParameter

new Cesium.GeoEntityRotationParameter()

地理实体旋转参数类
Name Type Default Description
options.startRotation PlotPoint3D optional 起始旋转
options.endRotation PlotPoint3D optional 结束旋转
options.cyclicType GeoEntityParamCyclicType GeoEntityParamCyclicType.NO optional 循环类型
options.isGradient Boolean true optional 是否渐变
options.time Number 0.0 optional 起始到结束所需的变化时长(单位:秒)
options.totalTime Number 0.0 optional 循环执行的总时长(单位:秒)

Methods

克隆
Returns:
克隆对象

getCyclicType()GeoEntityParamCyclicType

获取循环类型
Returns:
循环类型

getEndRotation()PlotPoint3D

获取结束旋转角度
Returns:
结束旋转角度

getStartRotation()PlotPoint3D

获取开始旋转角度
Returns:
开始旋转角度

getTime()double

获取变化时长(单位:秒)
Returns:
时长

getTotalTime()double

获取总时长(单位:秒),循环模式GeoEntityParamCyclicType为ONEWAY或BOTHWAY时生效
Returns:
总时长

getUUID()

Returns:
UUID

isGradient()Boolean

获取是否渐变
Returns:
是否渐变

setCyclicType(cyclicType)

设置循环类型
Name Type Description
cyclicType GeoEntityParamCyclicType 循环类型

setEndRotation(endRotation)

设置结束旋转角度
Name Type Description
endRotation PlotPoint3D 结束旋转角度

setIsGradient(isGradient)

设置是否渐变
Name Type Description
isGradient Boolean 是否渐变

setStartRotation(startRotation)

设置开始旋转角度
Name Type Description
startRotation PlotPoint3D 开始旋转角度

setTime(time)

设置变换时长(单位:秒)
Name Type Description
time double 时长

setTotalTime(totalTime)

设置总时长(单位:秒),循环模式GeoEntityParamCyclicType为ONEWAY或BOTHWAY时生效
Name Type Description
totalTime double 总时长