S3MInstance

new Cesium.S3MInstance(context, index, ownerGroup, options)

S3M模型实例对象。
Name Type Description
context Context context对象。
index Number 该实例所在组的索引位置。
ownerGroup Object 该实例所在组。
options Object 对象具有以下属性:
Name Type Description
position Cartesian3 optional 世界位置。
color Color optional 颜色。
scale Cartesian3 optional 缩放。
hpr HeadingPitchRoll optional 旋转(弧度)。
feature Object optional 描述信息。

Members

readonlycolor : Color

获取该实例的颜色。

readonlyfeature : Object

获取该实例的描述信息。

readonlyhpr : HeadingPitchRoll

获取该实例的旋转系数。

readonlyisSelected : Boolean

获取该实例的选中状态。

readonlyposition : Cartesian3

获取该实例位置。

readonlyscale : Cartesian3

获取该实例的缩放系数。

Methods

setSelected(offset)

设置该实例为选中状态并高亮实例。
Name Type Description
offset Number 该实例所在组的索引位置。

setUnSelected(offset)

取消该实例的选中状态。
Name Type Description
offset Number 该实例所在组的索引位置。

updateColor(color, offset)

更新实例颜色。
Name Type Description
color Color 颜色值。
offset Number 该实例所在组的索引位置。

updatePosition(position, offset)

更新实例位置。
Name Type Description
position Cartesian3 世界位置。
offset Number 该实例所在组的索引。

updateRotation(hpr, offset)

更新实例旋转参数。
Name Type Description
hpr HeadingPitchRoll 旋转参数。
offset Number 该实例所在组的索引位置。

updateScale(scale, offset)

更新实例缩放系数。
Name Type Description
scale Cartesian3 缩放参数。
offset Number 该实例所在组的索引位置。