com.supermap.realspace
类 Layer3DGroup

java.lang.Object
  继承者 com.supermap.realspace.Layer3D
      继承者 com.supermap.realspace.Layer3DGroup

public class Layer3DGroup
extends Layer3D

图层分组类。


构造方法摘要
Layer3DGroup(java.lang.String groupName)
          根据指定的参数来构造一个Layer3DGroup的新对象。
 
方法摘要
 void add(Layer3D layer)
          添加图层到当前分组,如果图层属于其他分组,则将从原分组移动到当前分组。
 boolean contains(Layer3D layer)
          判断指定图层对象在分组中是否存在。
 void dispose()
          释放Layer3DGroup对象占用的资源 。
 Layer3D get(int index)
          获取指定索引的图层对象。
 java.lang.String getAvailableCaption(java.lang.String layerCaption)
          获取当前图层分组中未被使用的图层显示名称,即不与同级的其他图层显示名称冲突的显示 。
 int getCount()
          获取当前的图层分组中图层对象的总数。
 java.util.ArrayList<Layer3D> getDataLayers()
          获取当前图层分组下的所有真实数据图层,不包含图层分组类型。
 int indexOf(Layer3D layer)
          获取指定图层对象在分组中的索引。
 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, getCustomClipCross, getDataName, getDescription, getFeatures, getFilterPixelSize, getMapServiceType, getMaxObjectVisibleDistance, getMaxVisibleAltitude, getMinObjectVisibleDistance, getMinVisibleAltitude, getName, getParentGroup, getParentLayer, getPassword, getReceiveSunLight, getSelection, getShdowType, getSnap, getSwipeRegion, getType, getVisibleDistance, getVisibleInViewport, isAlwaysRender, isChangedToLayerStyle, isDisposed, isEditable, isSelectable, isShadowEnable, isSketchMode, isSwipeEnable, isVisible, isWebDatasource, setAlphaReject, setAlwaysRender, setCaption, setChangedToLayerStyle, setCustomClipCross, setCustomClipPlane, setDescription, setEditable, setFilterPixelSize, setMaxObjectVisibleDistance, setMaxVisibleAltitude, setMinObjectVisibleDistance, setMinVisibleAltitude, setParentGroup, setReceiveSunLight, setSelectable, setSelection, setShadowEnable, setShadowType, setSketchMode, setSnap, setSwipeEnable, setSwipeRegion, setVisible, setVisibleDistance, setVisibleInViewport, toXML, updateData
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Layer3DGroup

public Layer3DGroup(java.lang.String groupName)
根据指定的参数来构造一个Layer3DGroup的新对象。

参数:
groupName - 指定的图层分组名。
方法详细信息

dispose

public void dispose()
释放Layer3DGroup对象占用的资源 。


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 - 指定的图层。
返回:
索引值。

contains

public boolean contains(Layer3D layer)
判断指定图层对象在分组中是否存在。

参数:
layer - 指定的图层
返回:
true表示存在,false表示不存在。

getAvailableCaption

public java.lang.String getAvailableCaption(java.lang.String layerCaption)
获取当前图层分组中未被使用的图层显示名称,即不与同级的其他图层显示名称冲突的显示 。

参数:
layerCaption - 图层显示名称。
返回:
一个字符串,该字符串可以用作图层显示名称。

getDataLayers

public java.util.ArrayList<Layer3D> getDataLayers()
获取当前图层分组下的所有真实数据图层,不包含图层分组类型。

返回:
结果图层列表。