com.supermap.mobjects.situationsimulation
类 GeoEntityManager
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.mobjects.situationsimulation.GeoEntityManager
-
- 所有已实现的接口:
- IDisposable
public class GeoEntityManager extends com.supermap.data.InternalHandleDisposable
态势仿真管理类
-
-
方法概要
-
-
-
方法详细资料
-
getInstance
public static GeoEntityManager getInstance()
单例模式。- 返回:
- 实体管理器单例对象。
-
dispose
public void dispose()
释放对象
-
addGeoEntityLayer3D
@Deprecated public void addGeoEntityLayer3D()
已过时。废弃
-
removeSimulationLayers
public void removeSimulationLayers()
移除仿真图层
-
setScene
public void setScene(Scene scene)
设置场景。使用其它接口前需要先设置关联的场景。- 参数:
scene
- 场景。
-
addGeoEntityDeleteListener
@Deprecated public void addGeoEntityDeleteListener(GeoEntityDeleteListener geoEntityDeleteListener)
已过时。废弃,参见:addGeoEntityDeletingListener
-
removeGeoEntityDeleteListener
@Deprecated public void removeGeoEntityDeleteListener(GeoEntityDeleteListener geoEntityDeleteListener)
已过时。废弃,参见:removeGeoEntityDeletingListener
-
addDeductionScriptStopListener
public void addDeductionScriptStopListener(DeductionScriptStopListener deductionScriptStopListener)
添加脚本停止播放监听。- 参数:
deductionScriptStopListener
- 监听对象
-
removeDeductionScriptStopListener
public void removeDeductionScriptStopListener(DeductionScriptStopListener deductionScriptStopListener)
移除脚本停止播放监听。- 参数:
deductionScriptStopListener
- 监听对象
-
addGeoEntitySelectedListener
public void addGeoEntitySelectedListener(GeoEntitySelectedListener geoEntitySelectedListener)
添加实体选中监听。- 参数:
geoEntitySelectedListener
- 监听对象
-
removeGeoEntitySelectedListener
public void removeGeoEntitySelectedListener(GeoEntitySelectedListener geoEntitySelectedListener)
移除实体选中监听。- 参数:
geoEntitySelectedListener
- 监听对象
-
addGeoEntityDeletingListener
public void addGeoEntityDeletingListener(GeoEntityDeletingListener geoEntityDeletingListener)
添加实体删除监听。- 参数:
geoEntityDeletingListener
- 监听对象
-
removeGeoEntityDeletingListener
public void removeGeoEntityDeletingListener(GeoEntityDeletingListener geoEntityDeletingListener)
移除实体删除监听。- 参数:
geoEntityDeletingListener
- 监听对象
-
addGeoEntityEffectsChangingListener
public void addGeoEntityEffectsChangingListener(GeoEntityEffectsChangingListener geoEntityEffectsChangingListener)
添加实体特效集合改变监听。- 参数:
geoEntityEffectsChangingListener
- 监听对象
-
removeGeoEntityEffectsChangingListener
public void removeGeoEntityEffectsChangingListener(GeoEntityEffectsChangingListener geoEntityEffectsChangingListener)
移除实体特效集合改变监听。- 参数:
geoEntityEffectsChangingListener
- 监听对象
-
getGeoEntityLayerName
public String getGeoEntityLayerName()
获取实体所在图层名称- 返回:
- 图层名称
-
start
public String start(DeductionScriptGroup[] deductionScriptGroups, GeoEntityResetType eResetType)
开始,执行指定脚本组列表。- 参数:
deductionScriptGroups
- 执行的脚本组列表。eResetType
- 复位类型。- 返回:
- 脚本执行回调名称,停止时使用。
-
start
public String start(DeductionScriptGroups pDeductionScriptGroups, GeoEntityResetType eResetType)
开始,执行指定脚本组集合。- 参数:
pDeductionScriptGroups
- 执行的脚本组集合。eResetType
- 复位类型。- 返回:
- 脚本执行回调名称,停止时使用。
-
start
public String start(DeductionScriptGroup deductionScriptGroup, GeoEntityResetType eResetType)
开始,执行指定脚本组。- 参数:
deductionScriptGroup
- 执行的脚本组。eResetType
- 复位类型。- 返回:
- 脚本执行回调名称,停止时使用。
-
start
public String start(DeductionScript deductionScript, GeoEntityResetType eResetType)
开始,执行指定脚本。- 参数:
deductionScript
- 执行的脚本。eResetType
- 复位类型。- 返回:
- 脚本执行回调名称,停止时使用。
-
stop
public void stop(String strFuncName)
停止执行。- 参数:
strFuncName
- [in] 脚本执行回调名称。
-
pause
public void pause(String strFuncName)
暂停执行。- 参数:
strFuncName
- 脚本执行回调名称。
-
continueExecute
public void continueExecute(String strFuncName)
继续执行。- 参数:
strFuncName
- 脚本执行回调名称。
-
reset
public void reset(String strFuncName)
重新执行。- 参数:
strFuncName
- 脚本执行回调名称。
-
initFromScene
public void initFromScene(Scene pScene)
从场景初始化地理实体列表。- 参数:
pScene
- 场景。
-
initFromFile
public boolean initFromFile(Scene pScene, String filePath)
从配置文件重新构建实体列表及仿真推演脚本。- 参数:
pScene
- 场景。filePath
- 配置文件路径。- 返回:
- 成功返回TRUE, 失败返回FALSE。
-
toFile
public boolean toFile(String filePath)
将地理实体、特效以及脚本保存至配置文件。- 参数:
filePath
- 配置文件路径。- 返回:
- 成功返回TRUE, 失败返回FALSE。
-
getDeductionScriptGroups
public ArrayList<DeductionScriptGroup> getDeductionScriptGroups()
获取全部脚本组列表,可添加删除修改。- 返回:
- 全部脚本组列表。
-
getAllDeductionScriptGroup
public DeductionScriptGroups getAllDeductionScriptGroup()
获取全部脚本组列表对象,可添加删除修改。- 返回:
- 全部脚本组列表对象。
-
addDeductionScriptGroup
public void addDeductionScriptGroup(DeductionScriptGroup scriptGroup)
添加脚本组
-
removeDeductionScriptGroup
public void removeDeductionScriptGroup(DeductionScriptGroup scriptGroup)
移除脚本组
-
addGeoEntity
public String addGeoEntity(Scene pScene, String strName, Point3D pt, int nModelID)
添加一个地理实体。- 参数:
pScene
- 场景。strName
- 实体名称。pt
- 实体位置。nModelID
- 模型ID(在模型数据集中的ID)。- 返回:
- 成功返回实体UUID, 失败返回空。
-
addGeoEntity
public String addGeoEntity(Scene pScene, String strName, Point3D pt, String strModelPath)
添加一个地理实体。- 参数:
pScene
- 场景。strName
- 实体名称。pt
- 实体位置。strModelPath
- 模型路径。- 返回:
- 成功返回实体UUID, 失败返回空。
-
addGeoEntity
public String addGeoEntity(Scene pScene, String strName, Point3D pt)
添加一个地理实体。- 参数:
pScene
- 场景。strName
- 实体名称。pt
- 实体位置。- 返回:
- 成功返回实体UUID, 失败返回空。
-
addGeoEntity
public String addGeoEntity(Scene pScene, String strName, Point3D pt, int nLibID, int nCode)
添加一个地理实体(标号模式)。- 参数:
pScene
- 场景。strName
- 实体名称。pt
- 实体位置。nLibID
- 标号LibID。nCode
- 标号Code。- 返回:
- 成功返回实体UUID, 失败返回空。
-
removeGeoEntity
public void removeGeoEntity(String strUUID)
删除管理的地理实体。- 参数:
strUUID
- 删除的地理实体UUID。
-
getRootNode
public GeoEntityNode getRootNode()
获取地理实体组根节点- 返回:
- 地理实体组根节点
-
removeAllGeoEntity
public void removeAllGeoEntity()
删除所有地理实体。
-
isGeoEntityLayerEditable
public boolean isGeoEntityLayerEditable()
获取地理实体所在图层是否可编辑。- 返回:
- 是否可编辑。
-
setGeoEntityLayerEditable
public boolean setGeoEntityLayerEditable(boolean bIsEditable)
设置地理实体所在图层是否可编辑。- 参数:
bIsEditable
- 是否可编辑。
-
setAugPicturePath
public void setAugPicturePath(String filePath)
设置实体增强图片路径- 参数:
filePath
- 图片路径
-
getAugPicturePath
public String getAugPicturePath()
获取实体增强图片路径- 返回:
- 图片路径
-
fullDisplayEntityLayer
public void fullDisplayEntityLayer(Scene pScene)
全幅显示实体图层- 参数:
pScene
- 三维场景
-
getSatelliteManager
public SatelliteManager getSatelliteManager()
获取卫星对象管理器。- 返回:
- 卫星对象管理器。
-
initSatellites
public void initSatellites(Scene scene)
从系统默认的配置文件初始化卫星仿真实体。- 参数:
scene
- 场景。
-
getSatelliteGeoEntityRootGroupNode
public GeoEntityNode getSatelliteGeoEntityRootGroupNode()
获取卫星地理实体组根节点。- 返回:
- 卫星地理实体组根节点。
-
getGeoEntity
public GeoEntity getGeoEntity(String strUuid)
通过实体uuid获取地理实体。- 参数:
strUuid
- 实体uuid。- 返回:
- 实体对象。
-
addGeoEntity
public boolean addGeoEntity(Scene scene, GeoEntity geoEntity)
添加实体。(构建实体对象)- 参数:
scene
- 场景。geoEntity
- 实体对象。- 返回:
- 是否成功添加。
-
setGeoEntitysVisible
public void setGeoEntitysVisible(ArrayList<GeoEntity> arrGeoEntity, boolean isVisible)
批量修改实体显隐- 参数:
arrGeoEntity
- 实体对象列表isVisible
- 显隐
-
getCurrentExcuteTime
public boolean getCurrentExcuteTime(String strFuncName, CurrentExcuteTime currentExcuteTime)
获取当前执行的章节索引以及时间。- 参数:
strFuncName
- 执行回调名(Start时的返回值)currentExcuteTime
- 前执行的章节索引以及时间- 返回:
- 是否获取成功。
-
hitTest
public void hitTest(Point2D pntHitTest, SceneControl sceneControl)
实体选中检测。- 参数:
pntHitTest
- 屏幕坐标。sceneControl
- 场景编辑对象。
-
setPerspctiveChangeCamera
public void setPerspctiveChangeCamera(Scene scene)
设置视角切换时使用的场景中的相机对象。(使用视角切换脚本时必须设置此参数)- 参数:
scene
- 当前场景。
-
getCurPerspectiveChangeParameter
public PerspectiveChangeParameter getCurPerspectiveChangeParameter()
获取当前的视角切换参数- 返回:
- 返回当前的视角切换参数对象
-
setCurPerspectiveChangeParameter
public void setCurPerspectiveChangeParameter(PerspectiveChangeParameter param)
设置当前的视角切换参数- 参数:
param
- 当前的视角切换参数对象
-
setSelectedGeoEntity
public void setSelectedGeoEntity(String strUuid)
设置选中实体- 参数:
strUuid
- 实体UUID
-
onKeyDown
public void onKeyDown(int nChar, int nFlags)
键盘按下(键盘删除实体时使用)- 参数:
nChar
- 按键nFlags
- 辅助按键
-
-
Copyright © 2021–2025 SuperMap. All rights reserved.