Class GroupAnalyzer

    • Field Detail

      • parent

        protected Area parent
    • Constructor Detail

      • GroupAnalyzer

        public GroupAnalyzer​(Area parent)
    • Method Detail

      • getParent

        public Area getParent()
      • findSuperArea

        public Area findSuperArea​(Area sub,
                                  List<Area> selected)
        Starts with a specified subarea and finds all the subareas that may be joined with the first one. Returns an empty area and the vector of the areas inside. The subareas are not automatically added to the new area because this would cause their removal from the parent area.
        Parameters:
        sub - the subnode to start with
        selected - a vector that will be filled with the selected subnodes that should be contained in the new area
        Returns:
        the new empty area