BSP tree nodes.
Navigation through BSP trees can be done using
two different point of views:
BSPTree#getPlus, BSPTree#getMinus and BSPTree#getParent methods. Terminal nodes without associated
sub-hyperplanes can be visited this way,
there is no constraint in the visit order, and it is possible
to visit either all nodes or only a subset of the nodes
BSPTree, SubHyperplane
| Modifier and Type | Class and Description |
|---|---|
| public static enum | BSPTreeVisitor.
Enumerate for visit order with respect to plus sub-tree, minus sub-tree and cut sub-hyperplane. |
| Modifier and Type | Method and Description |
|---|---|
| public void | visitInternalNode(BSPTree<S>
BSP node guaranteed to have a non null cut sub-hyperplane node)Visit a BSP tree node node having a non-null sub-hyperplane. |
| public void | visitLeafNode(BSPTree<S>
leaf BSP node having a null sub-hyperplane node)Visit a leaf BSP tree node node having a null sub-hyperplane. |
| public BSPTreeVisitor. | Returns: desired visit order, must be one ofOrder#PLUS_MINUS_SUB, Order#PLUS_SUB_MINUS,
Order#MINUS_PLUS_SUB, Order#MINUS_SUB_PLUS,
Order#SUB_PLUS_MINUS, Order#SUB_MINUS_PLUSBSP node guaranteed to have a non null cut sub-hyperplane node)Determine the visit order for this node. |
| visitInternalNode | back to summary |
|---|---|
| public void visitInternalNode(BSPTree<S> node) Visit a BSP tree node node having a non-null sub-hyperplane. It is guaranteed that this method will be called after
| |
| visitLeafNode | back to summary |
|---|---|
| public void visitLeafNode(BSPTree<S> node) Visit a leaf BSP tree node node having a null sub-hyperplane.
| |
| visitOrder | back to summary |
|---|---|
| public BSPTreeVisitor. Determine the visit order for this node. Before attempting to visit an internal node, this method is
called to determine the desired ordering of the visit. It is
guaranteed that this method will be called before
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final BSPTreeVisitor. | MINUS_PLUS_SUB
Indicator for visit order minus sub-tree, then plus sub-tree, and last cut sub-hyperplane. |
| public static final BSPTreeVisitor. | MINUS_SUB_PLUS
Indicator for visit order minus sub-tree, then cut sub-hyperplane, and last plus sub-tree. |
| public static final BSPTreeVisitor. | PLUS_MINUS_SUB
Indicator for visit order plus sub-tree, then minus sub-tree, and last cut sub-hyperplane. |
| public static final BSPTreeVisitor. | PLUS_SUB_MINUS
Indicator for visit order plus sub-tree, then cut sub-hyperplane, and last minus sub-tree. |
| public static final BSPTreeVisitor. | SUB_MINUS_PLUS
Indicator for visit order cut sub-hyperplane, then minus sub-tree, and last plus sub-tree. |
| public static final BSPTreeVisitor. | SUB_PLUS_MINUS
Indicator for visit order cut sub-hyperplane, then plus sub-tree, and last minus sub-tree. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BSPTreeVisitor. | |
| public static BSPTreeVisitor. |
| MINUS_PLUS_SUB | back to summary |
|---|---|
| public static final BSPTreeVisitor. Indicator for visit order minus sub-tree, then plus sub-tree, and last cut sub-hyperplane. | |
| MINUS_SUB_PLUS | back to summary |
|---|---|
| public static final BSPTreeVisitor. Indicator for visit order minus sub-tree, then cut sub-hyperplane, and last plus sub-tree. | |
| PLUS_MINUS_SUB | back to summary |
|---|---|
| public static final BSPTreeVisitor. Indicator for visit order plus sub-tree, then minus sub-tree, and last cut sub-hyperplane. | |
| PLUS_SUB_MINUS | back to summary |
|---|---|
| public static final BSPTreeVisitor. Indicator for visit order plus sub-tree, then cut sub-hyperplane, and last minus sub-tree. | |
| SUB_MINUS_PLUS | back to summary |
|---|---|
| public static final BSPTreeVisitor. Indicator for visit order cut sub-hyperplane, then minus sub-tree, and last plus sub-tree. | |
| SUB_PLUS_MINUS | back to summary |
|---|---|
| public static final BSPTreeVisitor. Indicator for visit order cut sub-hyperplane, then plus sub-tree, and last minus sub-tree. | |
| Order | back to summary |
|---|---|
| private Order() | |
| valueOf | back to summary |
|---|---|
| public static BSPTreeVisitor. | |
| values | back to summary |
|---|---|
| public static BSPTreeVisitor. | |