Enum BSPTreeVisitor.Order
- java.lang.Object
-
- java.lang.Enum<BSPTreeVisitor.Order>
-
- org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.Order
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BSPTreeVisitor.Order>
- Enclosing interface:
- BSPTreeVisitor<P extends Point<P>,N extends BSPTree.Node<P,N>>
public static enum BSPTreeVisitor.Order extends java.lang.Enum<BSPTreeVisitor.Order>
Enum used to specify the order in which visitors should visit the nodes in the tree.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MINUS_NODE_PLUS
Indicates that the visitor should first visit the minus sub-tree, then the current node, and then the plus sub-tree.MINUS_PLUS_NODE
Indicates that the visitor should first visit the minus sub-tree, then the plus sub-tree, and then the current node.NODE_MINUS_PLUS
Indicates that the visitor should first visit the current node, then the minus sub-tree, and then the plus sub-tree.NODE_PLUS_MINUS
Indicates that the visitor should first visit the current node, then the plus sub-tree, and then the minus sub-tree.NONE
Indicates that the visitor should not visit any of the nodes in this subtree.PLUS_MINUS_NODE
Indicates that the visitor should first visit the plus sub-tree, then the minus sub-tree and then the current node.PLUS_NODE_MINUS
Indicates that the visitor should first visit the plus sub-tree, then the current node, and then the minus sub-tree.
-
Constructor Summary
Constructors Modifier Constructor Description private
Order()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BSPTreeVisitor.Order
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BSPTreeVisitor.Order[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLUS_MINUS_NODE
public static final BSPTreeVisitor.Order PLUS_MINUS_NODE
Indicates that the visitor should first visit the plus sub-tree, then the minus sub-tree and then the current node.
-
PLUS_NODE_MINUS
public static final BSPTreeVisitor.Order PLUS_NODE_MINUS
Indicates that the visitor should first visit the plus sub-tree, then the current node, and then the minus sub-tree.
-
MINUS_PLUS_NODE
public static final BSPTreeVisitor.Order MINUS_PLUS_NODE
Indicates that the visitor should first visit the minus sub-tree, then the plus sub-tree, and then the current node.
-
MINUS_NODE_PLUS
public static final BSPTreeVisitor.Order MINUS_NODE_PLUS
Indicates that the visitor should first visit the minus sub-tree, then the current node, and then the plus sub-tree.
-
NODE_PLUS_MINUS
public static final BSPTreeVisitor.Order NODE_PLUS_MINUS
Indicates that the visitor should first visit the current node, then the plus sub-tree, and then the minus sub-tree.
-
NODE_MINUS_PLUS
public static final BSPTreeVisitor.Order NODE_MINUS_PLUS
Indicates that the visitor should first visit the current node, then the minus sub-tree, and then the plus sub-tree.
-
NONE
public static final BSPTreeVisitor.Order NONE
Indicates that the visitor should not visit any of the nodes in this subtree.
-
-
Method Detail
-
values
public static BSPTreeVisitor.Order[] 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 (BSPTreeVisitor.Order c : BSPTreeVisitor.Order.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BSPTreeVisitor.Order 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 namejava.lang.NullPointerException
- if the argument is null
-
-