com.supermap.realspace

类 Layer3DGroup



  • public class Layer3DGroup
    extends Layer3D
    图层分组类。
    • 构造器详细资料

      • 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 - 图层显示名称。
        返回:
        一个字符串,该字符串可以用作图层显示名称。
      • getDataLayers

        public ArrayList<Layer3D> getDataLayers()
        获取当前图层分组下的所有真实数据图层,不包含图层分组类型。
        返回:
        结果图层列表。
      • dispose

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

Copyright © 2021–2024 SuperMap. All rights reserved.