Class NodesSet<S extends Space>

  • Type Parameters:
    S - Type of the space.
    All Implemented Interfaces:
    java.lang.Iterable<BSPTree<S>>

    public class NodesSet<S extends Space>
    extends java.lang.Object
    implements java.lang.Iterable<BSPTree<S>>
    Set of BSP tree nodes.
    Since:
    3.4
    See Also:
    BoundaryAttribute
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<BSPTree<S>> list
      List of sub-hyperplanes.
    • Constructor Summary

      Constructors 
      Constructor Description
      NodesSet()
      Simple constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(BSPTree<S> node)
      Add a node if not already known.
      void addAll​(java.lang.Iterable<BSPTree<S>> iterator)
      Add nodes if they are not already known.
      java.util.Iterator<BSPTree<S>> iterator()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • list

        private java.util.List<BSPTree<S extends Space>> list
        List of sub-hyperplanes.
    • Constructor Detail

      • NodesSet

        public NodesSet()
        Simple constructor.
    • Method Detail

      • add

        public void add​(BSPTree<S> node)
        Add a node if not already known.
        Parameters:
        node - node to add
      • addAll

        public void addAll​(java.lang.Iterable<BSPTree<S>> iterator)
        Add nodes if they are not already known.
        Parameters:
        iterator - nodes iterator
      • iterator

        public java.util.Iterator<BSPTree<S>> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<S extends Space>