public class TargetManager
extends com.supermap.data.InternalHandleDisposable
构造器和说明 |
---|
TargetManager()
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
void |
addTargetAddedListener(AddTargetListener l)
注册监听
|
void |
addTargetLayer(String strDatasourceName,
String strDatasetName)
添加目标图层回调函数执行(内部使用)。
|
void |
attachMap(Map map)
关联目标对象到地图,在地图上显示目标。
|
void |
attachScene(Scene scene)
关联目标对象到三维场景,在场景上显示目标对象。
|
void |
clearRePlayHistory()
清除所有目标回放历史
|
void |
clearRePlayHistoryByID(long lTargetID)
清除指定目标回放历史
|
void |
dispose()
释放对象
|
long[] |
getAllTargetID(long lTargetHandle)
获取所有目标ID列表
|
GeoStyle |
getSelectionStyle()
获取选中的Target对象的高亮样式
|
Target |
getTarget(long lTargetID)
查询目标对象
|
DatasetVector |
queryTargetHistory(Workspace workspace)
获取保存对象的历史记录的数据集
|
void |
removeAll()
移除监控目标
|
void |
removeTargetAddedListener(AddTargetListener l)
移除监听
|
void |
rePlayHistory(long lTargetID,
double dPlayTime,
TargetStyle targetStyle)
回放历史记录
|
void |
setSelectedTarget(long lMGTargetID)
设置选中的Target对象
|
void |
setSelectionStyle(GeoStyle geoStyle)
设置选中的Target对象高亮样式
|
boolean |
setTarget(Target target,
TargetStyle targetStyle)
设置目标对象
|
public void dispose()
public void attachMap(Map map)
map
- 显示目标对象的地图。public void attachScene(Scene scene)
scene
- 显示目标对象的场景。public boolean setTarget(Target target, TargetStyle targetStyle)
target
- 目标对象targetStyle
- public Target getTarget(long lTargetID)
lTargetID
- 目标对象IDpublic long[] getAllTargetID(long lTargetHandle)
lTargetHandle
- public DatasetVector queryTargetHistory(Workspace workspace)
workspace
- public void rePlayHistory(long lTargetID, double dPlayTime, TargetStyle targetStyle)
lTargetID
- 回放目标IDdPlayTime
- 回放时间targetStyle
- targetStylepublic void clearRePlayHistory()
public void clearRePlayHistoryByID(long lTargetID)
lTargetID
- 目标IDpublic void setSelectedTarget(long lMGTargetID)
lMGTargetID
- 目标IDpublic void setSelectionStyle(GeoStyle geoStyle)
geoStyle
- 选中样式public GeoStyle getSelectionStyle()
public void removeAll()
public void addTargetLayer(String strDatasourceName, String strDatasetName)
public void addTargetAddedListener(AddTargetListener l)
public void removeTargetAddedListener(AddTargetListener l)
Copyright © 2021–2024 SuperMap. All rights reserved.