SatelliteEntityManager

new Cesium.SatelliteEntityManager()

卫星实体管理类

Methods

addGeoEntitDestroyedEvent(callback)

添加实体销毁回调函数
Name Type Description
callback function 实体销毁回调函数

addGeoEntitUpdatedEvent(callback)

添加实体更新回调函数
Name Type Description
callback function 实体更新回调函数

addGeoEntityAddedEvent(callback)

添加实体添加回调函数
Name Type Description
callback function 实体添加回调函数

addGeoEntityBeforeDeletedEvent(callback)

添加实体刪除前回调函数
Name Type Description
callback function 实体刪除前回调函数

addGeoEntityDeletedEvent(callback)

添加实体刪除回调函数
Name Type Description
callback function 实体刪除回调函数

addGeoEntityModifiedEvent(callback)

添加实体修改回调函数
Name Type Description
callback function 实体修改回调函数

addGeoEntitySelectedEvent(callback)

添加实体选中回调函数
Name Type Description
callback function 实体选中回调函数

addGeoEntityUnSelectedEvent(callback)

添加实体取消选中回调函数
Name Type Description
callback function 实体取消选中回调函数

addSatelliteEntity(satelliteUuid, satelliteManager, groupName, callback)

添加卫星实体
Name Type Description
satelliteUuid String 卫星唯一标识
satelliteManager Object 卫星管理对象
groupName String 卫星所属组名
callback function 添加完成回调函数

clearSelectGeoEntity()

清空选中实体

fromJson(options, callback)

获取卫星实体管理中的卫星实体
Name Type Description
options Object 对象具有以下属性:
Name Type Description
satelliteEntityJsons Map.<String, String> 实体对象json数据
geoEntityNodeJson String 实体分组json数据
satelliteManager SatelliteManager 卫星管理对象
callback function 实体对象初始化完成回调函数

getSatelliteEntityByUUID(satelliteEntityUuid)SatelliteEntity

通过实体UUID获取实体对象
Name Type Description
satelliteEntityUuid String 实体UUID
Returns:
实体对象

getSatelliteEntitys()Array.<SatelliteEntity>

获取全部实体对象列表
Returns:
实体对象列表

getSelectedGeoEntityUUID()

获取选中实体UUID

isGeoEntityLayerEditable()boolean

获取卫星实体图层是否可编辑
Returns:
是否可编辑

removeAllSatelliteEntity(satelliteManager)

移除所有的卫星实体
Name Type Description
satelliteManager satelliteManager 卫星管理者

removeSatelliteEntity(satelliteEntityUuid, satelliteManager)boolean

通过实体UUID删除实体
Name Type Description
satelliteEntityUuid String 卫星管理对象
satelliteManager satelliteManager 删除的实体UUID
Returns:
是否删除成功

setGeoEntityLayerEditable(isEditable)

设置卫星实体图层是否可编辑
Name Type Description
isEditable boolean 是否可编辑

setScene(scene)

设置场景
Name Type Description
scene Scene 场景

setSelectedGeoEntity(UUID)

设置选中实体
Name Type Description
UUID String 实体UUID

toJson()map

保存卫星实体对象到json
Returns:
卫星实体对象Json集合

updateAllOrbitPosition(time)

更新卫星轨道
Name Type Description
time Number UTC时间戳(毫秒)

updateAllSatelliteEntityPosition(time)

更新所有卫星的位置
Name Type Description
time Number 时间戳(毫秒)