new ModelInteroperation(map, opts)
模型单体要素效果
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
map |
Glodon.CIMCube | CIMCube实例 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
opts |
Object | , 模型单体要素动画参数
Properties
|
Methods
-
checkUpdate(tile)
-
检查是否需要更新。
Parameters:
Name Type Description tileObject 瓦片。 Returns:
- Type
- Boolean
-
clearfeatureTranslate()
-
清除要素平移。
-
dispose()
-
释放资源
-
isDirtyData(tile)
-
判断数据是否变更。
Parameters:
Name Type Description tileObject 瓦片。 Returns:
- Type
- Boolean
-
loadUpdate(tile)
-
加载时更新。
Parameters:
Name Type Description tileObject 瓦片。 -
play()
-
动画开始
-
removeFeatures(ids)
-
删除指定removeFeatures偏移旋转
Parameters:
Name Type Description idsArrayList featureId集合 -
restore()
-
复原
-
setFeatureTransformation(ids, translate, translate2, rotation, rotationCenter, rotationCenter2)
-
设置要素变换。
Parameters:
Name Type Description idsArray 标识列表。 translateCartesian3 平移。 translate2Cartesian3 第二平移。 rotationNumber 旋转。 rotationCenterCartesian3 旋转中心。 rotationCenter2Cartesian3 第二旋转中心。 -
setOpts(options)
-
更新参数
Parameters:
Name Type Description optionsObject 模型单体要素动画参数 Properties
Name Type Argument Default Description durationNumber <optional>
2 动画时间,(s) interoperationListArray <optional>
效果列表 Properties
Name Type Argument Default Description idsArray <optional>
featureId集合 offset.xNumber <optional>
0 东北天偏移,X=东 offset.yNumber <optional>
0 东北天偏移,Y=北 offset.heightNumber <optional>
0 东北天偏移,height=天 rotation.xNumber <optional>
0 绕X轴旋转指定角度 rotation.yNumber <optional>
0 绕Y轴旋转指定角度 rotation.zNumber <optional>
0 绕Z轴旋转指定角度 rotationCenter.xNumber <optional>
0 东北天偏移,旋转中心点X rotationCenter.yNumber <optional>
0 东北天偏移,旋转中心点Y rotationCenter.zNumber <optional>
0 东北天偏移,旋转中心点Z -
updateData(interoperationList)
-
更新单体要素数据。
Parameters:
Name Type Description interoperationListArray 单体要素列表。 -
updateOption(opts)
-
更新参数。
Parameters:
Name Type Description optsObject 参数。 Properties
Name Type Description durationNumber 时长。 interoperationListArray 单体要素列表。 -
updateProperties(tile)
-
更新属性。
Parameters:
Name Type Description tileObject 瓦片。 -
updateTileProperties(tile)
-
更新瓦片属性。
Parameters:
Name Type Description tileObject 瓦片。 -
visibleUpdate(tile)
-
更新可见瓦片。
Parameters:
Name Type Description tileObject 瓦片。