com.supermap.realspace
类 Layer3DDynamicObject
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.realspace.Layer3D
-
- com.supermap.realspace.Layer3DDynamicObject
-
public class Layer3DDynamicObject extends Layer3D
动态对象图层类。一个图层是多个种类的模型的集合,每个种类的模型可以有若干个动态对象,动态对象通过ID进行区分。- 作者:
- wangyanyan
-
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 boolean
getBuildLOD()
获取动态对象图层是否自动构建多细节层次(LOD)。boolean
getDirectionAlignTrack(String objectName)
获取动态对象前进方向与轨迹方向是否一致。MotionType
getMotionType(String objectName)
获取动态图层指定对象运动方式。DynamicObjectState
getObjectState(String objectName, int id)
获取选中对象的id,支持获取指定模型的实时状态。float
getUpdateInterval()
获取更新图层的时间间隔,单位:毫秒。void
removeAllObject(String objectName)
移除指定名称的所有动态对象。void
removeObject(String objectName, int[] ids)
移除指定名称对应的指定ID的动态对象。void
setBuildLOD(boolean value)
设置动态对象图层是否自动构建多细节层次(LOD)。void
setDirectionAlignTrack(String objectName, boolean bAlignTrack)
设置动态对象前进方向与轨迹方向是否一致。void
setMotionType(String objectName, MotionType motionType)
设置动态图层指定对象运动方式。void
setUpdateInterval(float value)
设置更新图层的时间间隔,单位:毫秒。void
updateObject(GeoModel geoModel, ArrayList<DynamicObjectState> objectStates)
以GeoModel更新对象目标的状态。void
updateObject(String fileName, ArrayList<DynamicObjectState> objectStates)
以模型文件的路径名更新对象目标的状态,该方法用于接收实时信号。void
updateObject(String objectName, GeoModel3D geoModel3D, ArrayList<DynamicObjectState> objectStates)
以GeoModel3D更新对象目标的状态。void
updateRibbon(String objectName, ArrayList<DynamicObjectState> objectStates)
更新带状目标的状态。-
从类继承的方法 com.supermap.realspace.Layer3D
clearCustomClipPlane, clipByBox, fromXML, getAlphaReject, getBounds, getBoxClipPart, getCaption, getClipBox, getClipLineColor, getCustomClipCross, getCustomClipPlane, getDataName, getDescription, getEditFeature, getExtendXML, getFeatures, getFilterPixelSize, getMapServiceType, getMaxObjectVisibleDistance, getMaxVisibleAltitude, getMinObjectVisibleDistance, getMinVisibleAltitude, getMixColorType, getName, getParentGroup, getParentLayer, getPassword, getReceiveSunLight, getReleaseWhenInvisible, getSelection, getShdowType, getSnap, getSwipeRegion, getType, getVisibleDistance, getVisibleInViewport, hasLocalCache, isAlwaysRender, isChangedToLayerStyle, isDisposed, isEditable, isSelectable, isShadowEnable, isSketchMode, isSwipeEnable, isVertexColorLinear, isVisible, isWebDatasource, setAlphaReject, setAlwaysRender, setCaption, setChangedToLayerStyle, setClipLineColor, setCustomClipCross, setCustomClipPlane, setDescription, setEditable, setFilterPixelSize, setLocalCache, setMaxObjectVisibleDistance, setMaxVisibleAltitude, setMinObjectVisibleDistance, setMinVisibleAltitude, setMixColorType, setParentGroup, setParentLayer, setReceiveSunLight, setReleaseWhenInvisible, setSelectable, setSelection, setShadowEnable, setShadowType, setSkecthMode, setSketchMode, setSnap, setSwipeEnable, setSwipeRegion, setVertexColorLinear, setVisible, setVisibleDistance, setVisibleInViewport, toXML, updateData
-
-
-
-
方法详细资料
-
updateObject
public void updateObject(String fileName, ArrayList<DynamicObjectState> objectStates)
以模型文件的路径名更新对象目标的状态,该方法用于接收实时信号。- 参数:
fileName
- 对象目标的文件路径名。目前支持模型文件格式。objectStates
- 对象目标的状态集合。
-
updateObject
public void updateObject(GeoModel geoModel, ArrayList<DynamicObjectState> objectStates)
以GeoModel更新对象目标的状态。- 参数:
geoModel
- GeoModel对象目标。objectStates
- 对象目标的状态集合。
-
updateObject
public void updateObject(String objectName, GeoModel3D geoModel3D, ArrayList<DynamicObjectState> objectStates)
以GeoModel3D更新对象目标的状态。- 参数:
objectName
- 对象目标的名称。geoModel3D
- GeoModel3D对象目标。objectStates
- 对象目标的状态集合。
-
updateRibbon
public void updateRibbon(String objectName, ArrayList<DynamicObjectState> objectStates)
更新带状目标的状态。- 参数:
objectName
- 指定的对象名称。objectStates
- 指定的对象状态集合。
-
removeObject
public void removeObject(String objectName, int[] ids)
移除指定名称对应的指定ID的动态对象。- 参数:
objectName
- 指定对象名称。ids
- 指定的id集合。
-
removeAllObject
public void removeAllObject(String objectName)
移除指定名称的所有动态对象。- 参数:
objectName
- 指定对象名称。
-
setDirectionAlignTrack
public void setDirectionAlignTrack(String objectName, boolean bAlignTrack)
设置动态对象前进方向与轨迹方向是否一致。- 参数:
objectName
- 指定的对象名称。bAlignTrack
- 指定一致性。
-
getDirectionAlignTrack
public boolean getDirectionAlignTrack(String objectName)
获取动态对象前进方向与轨迹方向是否一致。- 参数:
objectName
- 指定的对象名称。- 返回:
- 前进方向是否与轨迹方向一致。true表示一致,false表示不一致。
-
setMotionType
public void setMotionType(String objectName, MotionType motionType)
设置动态图层指定对象运动方式。- 参数:
objectName
- 指定的对象名称。motionType
- 指定的对象运动方式。
-
getMotionType
public MotionType getMotionType(String objectName)
获取动态图层指定对象运动方式。- 参数:
objectName
- 指定的对象名称。- 返回:
-
getUpdateInterval
public float getUpdateInterval()
获取更新图层的时间间隔,单位:毫秒。- 返回:
-
setUpdateInterval
public void setUpdateInterval(float value)
设置更新图层的时间间隔,单位:毫秒。- 参数:
value
- 时间间隔,单位:毫秒。备注: 设置此属性时建议稍大于信号接收的时间间隔。
-
getBuildLOD
public boolean getBuildLOD()
获取动态对象图层是否自动构建多细节层次(LOD)。- 返回:
-
setBuildLOD
public void setBuildLOD(boolean value)
设置动态对象图层是否自动构建多细节层次(LOD)。- 参数:
value
-
-
getObjectState
public DynamicObjectState getObjectState(String objectName, int id)
获取选中对象的id,支持获取指定模型的实时状态。- 参数:
objectName
- 模型的名字。id
- 选中对象的id。- 返回:
- 返回指定的动态对象状态。
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.