GeoEntityManager

new Cesium.GeoEntityManager()

实体管理类

Methods

staticCesium.GeoEntityManager.SituationSimulationManager#setScene(scene)

设置场景
Name Type Description
scene Scene 场景

_setScene(scene)

设置场景
Name Type Description
scene Scene 场景

addGeoEntitDestroyedEvent(callback)

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

addGeoEntitUpdatedEvent(callback)

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

addGeoEntity(geoEntityPlot)String

添加实体
Name Type Description
geoEntityPlot GeoGraphicObject 实体对象
Returns:
添加的实体UUID

addGeoEntityAddedEvent(callback)

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

addGeoEntityBeforeDeletedEvent(callback)

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

addGeoEntityDeletedEvent(callback)

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

addGeoEntityDotPlot(name, position, dotPlotLibID, dotPlotCode, callback)

添加实体点标号
Name Type Description
name Stirng 实体名称
position PlotPoint3D 实体位置
dotPlotLibID Number 点标号库ID
dotPlotCode Number 点标号code
callback function 添加完成回调函数
options.modelScale double 模型缩放
options.modelRotate PlotPoint3D 模型旋转
options.modelPath String 模型路径
options.picturePath String 图片路径
options.pictureSymbolSize Cartesian2 图片大小
options.plotLibID Number 标号库ID
options.plotCode Number 标号code
options.dotPlotStyle DotPlotStyle 标号样式
options.vectorScale double 矢量缩放
options.vectorScale PlotPoint3D 矢量旋转
options.visible boolean 显隐

addGeoEntityModel(name, position, modelPath, callback)

添加实体模型
Name Type Description
name String 实体名称
position PlotPoint3D 实体位置
modelPath String 模型路径
callback function 添加完成回调函数
options.modelScale double 模型缩放
options.modelRotate PlotPoint3D 模型旋转
options.picturePath String 图片路径
options.pictureSymbolSize Cartesian2 图片大小
options.plotLibID Number 标号库ID
options.plotCode Number 标号code
options.dotPlotStyle DotPlotStyle 标号样式
options.vectorScale double 矢量缩放
options.vectorScale PlotPoint3D 矢量旋转
options.visible boolean 显隐

addGeoEntityModifiedEvent(callback)

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

addGeoEntityPicture(name, position, picturePath, callback)

添加实体图片
Name Type Description
name String 实体名称
position PlotPoint3D 实体位置
picturePath String 图片路径
callback function 添加完成回调函数
options.modelScale double 模型缩放
options.modelRotate PlotPoint3D 模型旋转
options.modelPath String 模型路径
options.pictureSymbolSize Cartesian2 图片大小
options.plotLibID Number 标号库ID
options.plotCode Number 标号code
options.dotPlotStyle DotPlotStyle 标号样式
options.vectorScale double 矢量缩放
options.vectorScale PlotPoint3D 矢量旋转
options.visible boolean 显隐

addGeoEntitySelectedEvent(callback)

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

addGeoEntityUnSelectedEvent(callback)

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

clearSelectGeoEntity()

清空选中实体

fromJson(callback)

从实体对象和分组信息json初始化实体管理器
Name Type Description
options.geoEntityJsons Map.<String, String> 实体对象json数据
options.geoEntityNodeJson String 实体分组json数据
callback function 实体对象初始化完成回调函数

getGeoEntityByUUID(UUID)GeoEntity

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

getGeoEntityRootNode()GeoEntityNode

获取实体分组根节点
Returns:
实体分组根节点

getGeoEntitys()Map.<UUID, GeoEntity>

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

getSelectedGeoEntityUUID()

获取选中实体UUID

isGeoEntityLayerEditable()boolean

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

removeAllGeoEntity()

删除所有实体

removeGeoEntity(UUID)boolean

通过实体UUID删除实体
Name Type Description
UUID String 删除的实体UUID
Returns:
是否删除成功

setGeoEntityLayerEditable(isEditable)

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

setSelectedGeoEntity(UUID)

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

toJson()Object

保存实体对象和分组信息到json
Returns:
实体对象(.geoEntityJsons)和分组信息(.geoEntityNodeJson)json