com.supermap.mobjects.situationsimulation
类 SatelliteManager
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.mobjects.situationsimulation.SatelliteManager
-
- 所有已实现的接口:
- IDisposable
public class SatelliteManager extends com.supermap.data.InternalHandleDisposable卫星管理类对象用来管理从配置文件中读取到当前场景中的所有的卫星组和组中的卫星对象。
-
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 限定符和类型 方法和说明 StringaddSatelliteData(String strGroupName, String strTLEFileName, String strSatelliteName, ArrayList<String> arrOrbitParm)添加卫星数据,保存到卫星配置文件中。StringaddSatelliteGeoEntity(String strGroupName, String strSatelliteName)把卫星体系中指定组名称和卫星唯一标识名称的卫星添加到实体组中。voidaddSatelliteSelectedListener(SatelliteSelectedListener satelliteSelectedListener)添加卫星选中监听。booleanaddSatelliteToScene(Scene scene, ArrayList<String> arrGroupName)将卫星添加到场景(将arrGroupName这些组的卫星全部添加到场景)。booleanaddSatelliteToScene(Scene scene, String strGroupName, ArrayList<String> arrTLEFileName)将卫星添加到场景(将strGroupName组中的arrTLEFileName文件列表中的卫星全部添加到场景)。booleanaddSatelliteToScene(Scene scene, String strGroupName, String strTLEFileName, ArrayList<String> arrSatelliteName)将卫星添加到场景(将strGroupName组中strTLEFileName文件中的arrSatelliteName卫星全部添加到场景)。StringcreateSatelliteGeoEntity(String strGroupName, String strSatelliteName, Scene pScene3D)使用系统内置中的指定组名。voiddispose()释放对象。ArrayList<String>getChildGroupNames(String strChildGroupName)获取系统内置卫星信息指定分组中卫星文件名称列表。StringgetDefaultGroupName()已过时。获取默认分组名称。SatellitegetSatellite(String strGroupName, String strSatelliteName)获取卫星对象。SatelliteGroupgetSatelliteGroup(String strGroupName)根据分组名获取分组对象(分组名若为子组名,则查找子组所在的分组)。ArrayListgetSatelliteGroupNames()获取卫星分组名称列表。ArrayList<String>getSatelliteNames(String strGroupName, String strChildGroupName)获取系统内置卫星信息指定卫星分组名和子组名的卫星唯一标识名称列表。SatelliteSimulationgetSatelliteSimulation()获取卫星仿真管理类。voidremoveAllSatelliteFromScene()从场景中移除所有卫星对象。voidremoveSatelliteChildGroupFromScene(String strGroupName, ArrayList<String> arrChildGroupName)从场景中移除指定分组中的指定子组的所有卫星对象。booleanremoveSatelliteData(String strGroupName, String strTLEFileName, String strSatelliteName)删除卫星数据,从卫星配置文件中删除。voidremoveSatelliteFromScene(String strGroupName, String strChildGroup, ArrayList<String> arrSatelliteName)从场景中移除指定分组中的指定子组中的指定卫星对象。booleanremoveSatelliteGeoEntity(String strSatelliteGeoEntityUUID)把卫星实体组中的卫星删除,在卫星组信息中显示。voidremoveSatelliteGroupFromScene(ArrayList<String> arrGroupName)从场景中移除指定分组中的所有卫星对象。voidremoveSatelliteSelectedListener(SatelliteSelectedListener satelliteSelectedListener)移除卫星选中监听。voidsetOrbitsVisible(boolean bVisible)设置所有轨道的显隐voidsetSatellitesVisible(boolean bVisible)设置所有卫星的显隐voidsetSelectedSatellite(String strSatelliteGroupName, String strSatelliteName)设置选中卫星booleanupdateAllSatellitePosition(long lTime)批量更新卫星位置
-
-
-
方法详细资料
-
dispose
public void dispose()
释放对象。
-
getSatelliteGroupNames
public ArrayList getSatelliteGroupNames()
获取卫星分组名称列表。- 返回:
- 卫星分组名称列表。
-
getSatelliteGroup
public SatelliteGroup getSatelliteGroup(String strGroupName)
根据分组名获取分组对象(分组名若为子组名,则查找子组所在的分组)。- 参数:
strGroupName- 卫星组名(或子组名)。- 返回:
- 卫星分组。
-
setSatellitesVisible
public void setSatellitesVisible(boolean bVisible)
设置所有卫星的显隐- 参数:
bVisible- 卫星的显隐。
-
setOrbitsVisible
public void setOrbitsVisible(boolean bVisible)
设置所有轨道的显隐- 参数:
bVisible- 轨道的显隐。
-
updateAllSatellitePosition
public boolean updateAllSatellitePosition(long lTime)
批量更新卫星位置- 参数:
lTime- UTC毫秒时间戳- 返回:
- 是否更新成功。
-
addSatelliteGeoEntity
public String addSatelliteGeoEntity(String strGroupName, String strSatelliteName)
把卫星体系中指定组名称和卫星唯一标识名称的卫星添加到实体组中。- 参数:
strGroupName- 卫星分组名称。strSatelliteName- 卫星唯一标识名称。- 返回:
- 添加成功返回实体UUID,失败返回为空。
-
removeSatelliteGeoEntity
public boolean removeSatelliteGeoEntity(String strSatelliteGeoEntityUUID)
把卫星实体组中的卫星删除,在卫星组信息中显示。- 参数:
strSatelliteGeoEntityUUID- 卫星实体UUID。- 返回:
- 是否移除成功。
-
getSatelliteSimulation
public SatelliteSimulation getSatelliteSimulation()
获取卫星仿真管理类。- 返回:
- 卫星仿真管理类。
-
getDefaultGroupName
@Deprecated public String getDefaultGroupName()
已过时。 获取默认分组名称。- 返回:
- 分组名称。
-
getChildGroupNames
public ArrayList<String> getChildGroupNames(String strChildGroupName)
获取系统内置卫星信息指定分组中卫星文件名称列表。- 参数:
strChildGroupName- 卫星分组名称。- 返回:
- 文件名列表。
-
getSatelliteNames
public ArrayList<String> getSatelliteNames(String strGroupName, String strChildGroupName)
获取系统内置卫星信息指定卫星分组名和子组名的卫星唯一标识名称列表。- 参数:
strGroupName- 卫星分组名称。strChildGroupName- 卫星文件名称。- 返回:
- 卫星唯一标识名称列表。
-
createSatelliteGeoEntity
public String createSatelliteGeoEntity(String strGroupName, String strSatelliteName, Scene pScene3D)
使用系统内置中的指定组名。子組名和卫星唯一标识名称的卫星创建成地理实体添加到三维场景中。- 参数:
strGroupName- 卫星分组名称。strSatelliteName- 卫星唯一标识名称。pScene3D- 三维场景。- 返回:
- 成功返回实体对象的Uuid。
-
addSatelliteData
public String addSatelliteData(String strGroupName, String strTLEFileName, String strSatelliteName, ArrayList<String> arrOrbitParm)
添加卫星数据,保存到卫星配置文件中。- 参数:
strGroupName- 卫星组名。strTLEFileName- 卫星文件名称。strSatelliteName- 卫星名称。arrOrbitParm- 轨道参数(两行参数)。- 返回:
- 卫星唯一标识名称。
-
removeSatelliteData
public boolean removeSatelliteData(String strGroupName, String strTLEFileName, String strSatelliteName)
删除卫星数据,从卫星配置文件中删除。- 参数:
strGroupName- 卫星组名。strTLEFileName- 卫星文件名称。strSatelliteName- 卫星唯一标识名称。- 返回:
- 是否删除成功。
-
addSatelliteToScene
public boolean addSatelliteToScene(Scene scene, ArrayList<String> arrGroupName)
将卫星添加到场景(将arrGroupName这些组的卫星全部添加到场景)。- 参数:
scene- 场景。arrGroupName- 卫星组名列表。- 返回:
- 是否添加成功。
-
addSatelliteToScene
public boolean addSatelliteToScene(Scene scene, String strGroupName, ArrayList<String> arrTLEFileName)
将卫星添加到场景(将strGroupName组中的arrTLEFileName文件列表中的卫星全部添加到场景)。- 参数:
scene- 场景。strGroupName- 卫星组名。arrTLEFileName- 卫星TLE文件名列表。- 返回:
- 是否添加成功。
-
addSatelliteToScene
public boolean addSatelliteToScene(Scene scene, String strGroupName, String strTLEFileName, ArrayList<String> arrSatelliteName)
将卫星添加到场景(将strGroupName组中strTLEFileName文件中的arrSatelliteName卫星全部添加到场景)。- 参数:
scene- 场景。strGroupName- 卫星组名。strTLEFileName- 卫星TLE文件名。arrSatelliteName- 卫星唯一标识名称列表。- 返回:
- 是否添加成功。
-
getSatellite
public Satellite getSatellite(String strGroupName, String strSatelliteName)
获取卫星对象。- 参数:
strGroupName- 组名。strSatelliteName- 卫星唯一标识名称。- 返回:
- 卫星对象。
-
removeAllSatelliteFromScene
public void removeAllSatelliteFromScene()
从场景中移除所有卫星对象。
-
removeSatelliteGroupFromScene
public void removeSatelliteGroupFromScene(ArrayList<String> arrGroupName)
从场景中移除指定分组中的所有卫星对象。- 参数:
arrGroupName- 分组名列表。
-
removeSatelliteChildGroupFromScene
public void removeSatelliteChildGroupFromScene(String strGroupName, ArrayList<String> arrChildGroupName)
从场景中移除指定分组中的指定子组的所有卫星对象。- 参数:
strGroupName- 分组名。arrChildGroupName- 子组名列表。
-
removeSatelliteFromScene
public void removeSatelliteFromScene(String strGroupName, String strChildGroup, ArrayList<String> arrSatelliteName)
从场景中移除指定分组中的指定子组中的指定卫星对象。- 参数:
strGroupName- 分组名。strChildGroup- 子组名。arrSatelliteName- 卫星名列表。
-
addSatelliteSelectedListener
public void addSatelliteSelectedListener(SatelliteSelectedListener satelliteSelectedListener)
添加卫星选中监听。- 参数:
satelliteSelectedListener- 监听对象
-
removeSatelliteSelectedListener
public void removeSatelliteSelectedListener(SatelliteSelectedListener satelliteSelectedListener)
移除卫星选中监听。- 参数:
satelliteSelectedListener- 监听对象
-
-
Copyright © 2021–2025 SuperMap. All rights reserved.