DynamicObjectState

new Cesium.DynamicObjectState(options)

动态实例对象状态信息,用于更新动态图层中的指定id模型实例的状态。
Name Type Description
options Object 对象具有以下属性:
Name Type Default Description
longitude Number 0.0 optional 经度。
latitude Number 0.0 optional 纬度。
altitude Number 0.0 optional 高度。
scale Cartesian3 optional 缩放系数。
color Color Color.WHITE optional 颜色。
heading Number Math.PI/2 optional 绕Z轴旋转的角度(弧度)。
pitch Number 0 optional 绕X轴旋转的角度(弧度)。
roll Number 0 optional 绕Y轴旋转的角度(弧度)。
offset Cartesian3 Cartesian3.ZERO optional 模型中心点的偏移位置。
id Number | string optional 对象id。
description Object | String optional 描述信息。

Members

altitude : Number

获取或者设置高度。

color : Color

获取或者设置颜色。

description : Object|String

获取或者设置描述信息

heading : Number

获取或者设置方位角(绕Z轴旋转)。

id : Number/String

获取或者设置ID。

latitude : Number

获取或者设置纬度。

longitude : Number

获取或者设置经度。

offset : Cartesian3

获取或者设置模型中心点偏移位置。

pitch : Number

获取或者设置绕X轴旋转角度。

roll : Number

获取或者设置绕Y轴旋转角度。

scale : Cartesian3

获取或者设置缩放系数。

startDirection : Number

Gets or sets the azimuth of the model (refers to the horizontal angle from the clockwise direction to the target direction line in the north direction line), in radians.

timeStamp : Number

Get or set the timestamp.

Methods

staticCesium.DynamicObjectState.clone(state)DynamicObjectState

Clone object
Name Type Description
state DynamicObjectState The source object of the clone.
Returns:
Returns the cloned object.
Example:
var state = DynamicObjectState.clone(oldState);