Enum BSPTreeVisitor.Order
java.lang.Object
java.lang.Enum<BSPTreeVisitor.Order>
org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.Order
- All Implemented Interfaces:
Serializable
,Comparable<BSPTreeVisitor.Order>
,java.lang.constant.Constable
- Enclosing interface:
BSPTreeVisitor<P extends Point<P>,
N extends BSPTree.Node<P, N>>
Enum used to specify the order in which visitors should visit the nodes
in the tree.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the visitor should first visit the minus sub-tree, then the current node, and then the plus sub-tree.Indicates that the visitor should first visit the minus sub-tree, then the plus sub-tree, and then the current node.Indicates that the visitor should first visit the current node, then the minus sub-tree, and then the plus sub-tree.Indicates that the visitor should first visit the current node, then the plus sub-tree, and then the minus sub-tree.Indicates that the visitor should not visit any of the nodes in this subtree.Indicates that the visitor should first visit the plus sub-tree, then the minus sub-tree and then the current node.Indicates that the visitor should first visit the plus sub-tree, then the current node, and then the minus sub-tree. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BSPTreeVisitor.Order
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 Details
-
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. -
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
Indicates that the visitor should first visit the minus sub-tree, then the current node, 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. -
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
Indicates that the visitor should not visit any of the nodes in this subtree.
-
-
Constructor Details
-
Order
private Order()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-