Enum BSPTree.FindNodeCutRule

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<BSPTree.FindNodeCutRule>
    Enclosing interface:
    BSPTree<P extends Point<P>,​N extends BSPTree.Node<P,​N>>

    public static enum BSPTree.FindNodeCutRule
    extends java.lang.Enum<BSPTree.FindNodeCutRule>
    Enum specifying possible behaviors when a point used to locate a node falls directly on the cut of an internal node.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      MINUS
      Choose the minus child of the internal node and continue searching.
      NODE
      Choose the internal node and stop searching.
      PLUS
      Choose the plus child of the internal node and continue searching.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FindNodeCutRule()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static BSPTree.FindNodeCutRule valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static BSPTree.FindNodeCutRule[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • MINUS

        public static final BSPTree.FindNodeCutRule MINUS
        Choose the minus child of the internal node and continue searching. This behavior will result in a leaf node always being returned by the node search.
      • PLUS

        public static final BSPTree.FindNodeCutRule PLUS
        Choose the plus child of the internal node and continue searching. This behavior will result in a leaf node always being returned by the node search.
      • NODE

        public static final BSPTree.FindNodeCutRule NODE
        Choose the internal node and stop searching. This behavior may result in non-leaf nodes being returned by the node search.
    • Constructor Detail

      • FindNodeCutRule

        private FindNodeCutRule()
    • Method Detail

      • values

        public static BSPTree.FindNodeCutRule[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BSPTree.FindNodeCutRule c : BSPTree.FindNodeCutRule.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BSPTree.FindNodeCutRule valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null