com.supermap.realspace
类 Layer3DGroup
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.realspace.Layer3D
-
- com.supermap.realspace.Layer3DGroup
-
public class Layer3DGroup extends Layer3D
图层分组类。
-
-
构造器概要
构造器 构造器和说明 Layer3DGroup(String groupName)
根据指定的参数来构造一个Layer3DGroup的新对象。
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 void
add(Layer3D layer)
添加图层到当前分组,如果图层属于其他分组,则将从原分组移动到当前分组。boolean
contains(Layer3D layer)
判断指定图层对象在分组中是否存在。void
dispose()
释放Layer3DGroup对象占用的资源 。Layer3D
get(int index)
获取指定索引的图层对象。String
getAvailableCaption(String layerCaption)
获取当前图层分组中未被使用的图层显示名称,即不与同级的其他图层显示名称冲突的显示 。int
getCount()
获取当前的图层分组中图层对象的总数。ArrayList<Layer3D>
getDataLayers()
获取当前图层分组下的所有真实数据图层,不包含图层分组类型。int
indexOf(Layer3D layer)
获取指定图层对象在分组中的索引。int[]
indexOfByCaption(String caption)
获取指定图层对象在分组中的索引数组。void
insert(int index, Layer3D layer)
将图层插入到当前分组,如果图层属于其他分组,则将从原分组移动到当前分组。boolean
remove(int index)
从图层集合中删除一个指定索引的图层对象。boolean
remove(Layer3D layer)
从图层集合中删除一个指定图层对象。void
unGroup()
拆分当前的分组,组里面的对象都移到当前分组的上层中。-
从类继承的方法 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
-
-
-
-
构造器详细资料
-
Layer3DGroup
public Layer3DGroup(String groupName)
根据指定的参数来构造一个Layer3DGroup的新对象。- 参数:
groupName
- 指定的图层分组名。
-
-
方法详细资料
-
getCount
public int getCount()
获取当前的图层分组中图层对象的总数。- 返回:
- 图层对象的总数。
-
get
public Layer3D get(int index)
获取指定索引的图层对象。- 参数:
index
- 指定3D图层索引号。- 返回:
- 图层对象。
-
add
public void add(Layer3D layer)
添加图层到当前分组,如果图层属于其他分组,则将从原分组移动到当前分组。- 参数:
layer
- 指定的图层对象。
-
insert
public void insert(int index, Layer3D layer)
将图层插入到当前分组,如果图层属于其他分组,则将从原分组移动到当前分组。- 参数:
index
- 指定的图层索引。layer
- 指定的图层对象。
-
remove
public boolean remove(Layer3D layer)
从图层集合中删除一个指定图层对象。- 参数:
layer
- 指定的图层对象。- 返回:
- true表示删除成功,false表示删除失败。
-
remove
public boolean remove(int index)
从图层集合中删除一个指定索引的图层对象。- 参数:
index
- 指定的图层索引。- 返回:
- true表示删除成功,false表示删除失败。
-
unGroup
public void unGroup()
拆分当前的分组,组里面的对象都移到当前分组的上层中。
-
indexOf
public int indexOf(Layer3D layer)
获取指定图层对象在分组中的索引。- 参数:
layer
- 指定的图层。- 返回:
- 索引值。
-
indexOfByCaption
public int[] indexOfByCaption(String caption)
获取指定图层对象在分组中的索引数组。- 参数:
caption
- 要查找的图层对象的标题。- 返回:
- 三维图层集合中指定标题的图层索引数组。
- 从以下版本开始:
- 11.3.0
-
contains
public boolean contains(Layer3D layer)
判断指定图层对象在分组中是否存在。- 参数:
layer
- 指定的图层- 返回:
- true表示存在,false表示不存在。
-
getAvailableCaption
public String getAvailableCaption(String layerCaption)
获取当前图层分组中未被使用的图层显示名称,即不与同级的其他图层显示名称冲突的显示 。- 参数:
layerCaption
- 图层显示名称。- 返回:
- 一个字符串,该字符串可以用作图层显示名称。
-
dispose
public void dispose()
释放Layer3DGroup对象占用的资源 。
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.