Top Description Inners Methods
org.apache.commons.math3.geometry.partitioning

public Interface BSPTreeVisitor<S extends Space>

Known Direct Implementers
org.apache.commons.math3.geometry.partitioning.RegionFactory.NodesCleaner, org.apache.commons.math3.geometry.spherical.twod.EdgesBuilder, org.apache.commons.math3.geometry.spherical.twod.PropertiesComputer, org.apache.commons.math3.geometry.euclidean.threed.OutlineExtractor.BoundaryProjector, org.apache.commons.math3.geometry.euclidean.threed.PolyhedronsSet.FacetsContributionVisitor, org.apache.commons.math3.geometry.euclidean.twod.PolygonsSet.SegmentsBuilder, org.apache.commons.math3.geometry.partitioning.BoundaryBuilder, org.apache.commons.math3.geometry.partitioning.BoundaryProjector, org.apache.commons.math3.geometry.partitioning.BoundarySizeVisitor
Type Parameters
<S>
Type of the space.
Imports
org.apache.commons.math3.geometry.Space

This interface is used to visit BSP tree nodes.

Navigation through BSP trees can be done using two different point of views:

Since
3.0
See Also
BSPTree, SubHyperplane

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
BSPTreeVisitor.Order

Enumerate for visit order with respect to plus sub-tree, minus sub-tree and cut sub-hyperplane.

Method Summary

Modifier and TypeMethod 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.Order
visitOrder(BSPTree<S>
BSP node guaranteed to have a non null cut sub-hyperplane
node
)

Determine the visit order for this node.

Method Detail

visitInternalNodeback 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 visitOrder has been called for a given node, it wil be called exactly once for each internal node.

Parameters
node:BSPTree<S>

BSP node guaranteed to have a non null cut sub-hyperplane

See Also
visitLeafNode
visitLeafNodeback to summary
public void visitLeafNode(BSPTree<S> node)

Visit a leaf BSP tree node node having a null sub-hyperplane.

Parameters
node:BSPTree<S>

leaf BSP node having a null sub-hyperplane

See Also
visitInternalNode
visitOrderback to summary
public BSPTreeVisitor.Order visitOrder(BSPTree<S> node)

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 visitInternalNode for a given node, it will be called exactly once for each internal node.

Parameters
node:BSPTree<S>

BSP node guaranteed to have a non null cut sub-hyperplane

Returns:BSPTreeVisitor.Order

desired visit order, must be one of Order#PLUS_MINUS_SUB, Order#PLUS_SUB_MINUS, Order#MINUS_PLUS_SUB, Order#MINUS_SUB_PLUS, Order#SUB_PLUS_MINUS, Order#SUB_MINUS_PLUS

org.apache.commons.math3.geometry.partitioning back to summary

public final Enum BSPTreeVisitor.Order

extends Enum<BSPTreeVisitor.Order>
Class Inheritance

Enumerate for visit order with respect to plus sub-tree, minus sub-tree and cut sub-hyperplane.

Field Summary

Modifier and TypeField and Description
public static final BSPTreeVisitor.Order
MINUS_PLUS_SUB

Indicator for visit order minus sub-tree, then plus sub-tree, and last cut sub-hyperplane.

public static final BSPTreeVisitor.Order
MINUS_SUB_PLUS

Indicator for visit order minus sub-tree, then cut sub-hyperplane, and last plus sub-tree.

public static final BSPTreeVisitor.Order
PLUS_MINUS_SUB

Indicator for visit order plus sub-tree, then minus sub-tree, and last cut sub-hyperplane.

public static final BSPTreeVisitor.Order
PLUS_SUB_MINUS

Indicator for visit order plus sub-tree, then cut sub-hyperplane, and last minus sub-tree.

public static final BSPTreeVisitor.Order
SUB_MINUS_PLUS

Indicator for visit order cut sub-hyperplane, then minus sub-tree, and last plus sub-tree.

public static final BSPTreeVisitor.Order
SUB_PLUS_MINUS

Indicator for visit order cut sub-hyperplane, then plus sub-tree, and last minus sub-tree.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static BSPTreeVisitor.Order
public static BSPTreeVisitor.Order[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

MINUS_PLUS_SUBback to summary
public static final BSPTreeVisitor.Order MINUS_PLUS_SUB

Indicator for visit order minus sub-tree, then plus sub-tree, and last cut sub-hyperplane.

MINUS_SUB_PLUSback to summary
public static final BSPTreeVisitor.Order MINUS_SUB_PLUS

Indicator for visit order minus sub-tree, then cut sub-hyperplane, and last plus sub-tree.

PLUS_MINUS_SUBback to summary
public static final BSPTreeVisitor.Order PLUS_MINUS_SUB

Indicator for visit order plus sub-tree, then minus sub-tree, and last cut sub-hyperplane.

PLUS_SUB_MINUSback to summary
public static final BSPTreeVisitor.Order PLUS_SUB_MINUS

Indicator for visit order plus sub-tree, then cut sub-hyperplane, and last minus sub-tree.

SUB_MINUS_PLUSback to summary
public static final BSPTreeVisitor.Order SUB_MINUS_PLUS

Indicator for visit order cut sub-hyperplane, then minus sub-tree, and last plus sub-tree.

SUB_PLUS_MINUSback to summary
public static final BSPTreeVisitor.Order SUB_PLUS_MINUS

Indicator for visit order cut sub-hyperplane, then plus sub-tree, and last minus sub-tree.

Constructor Detail

Orderback to summary
private Order()

Method Detail

valueOfback to summary
public static BSPTreeVisitor.Order valueOf(String name)
valuesback to summary
public static BSPTreeVisitor.Order[] values()