Class BSPTreeVisitor.TargetPointVisitor<P extends Point<P>,N extends BSPTree.Node<P,N>>
- java.lang.Object
-
- org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor.TargetPointVisitor<P,N>
-
- Type Parameters:
P
- Point implementation typeN
- BSP tree node implementation type
- All Implemented Interfaces:
BSPTreeVisitor<P,N>
- Direct Known Subclasses:
BSPTreeVisitor.ClosestFirstVisitor
,BSPTreeVisitor.FarthestFirstVisitor
- Enclosing interface:
- BSPTreeVisitor<P extends Point<P>,N extends BSPTree.Node<P,N>>
public abstract static class BSPTreeVisitor.TargetPointVisitor<P extends Point<P>,N extends BSPTree.Node<P,N>> extends java.lang.Object implements BSPTreeVisitor<P,N>
Abstract class forBSPTreeVisitor
implementations that base their visit ordering on a target point.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor
BSPTreeVisitor.ClosestFirstVisitor<P extends Point<P>,N extends BSPTree.Node<P,N>>, BSPTreeVisitor.FarthestFirstVisitor<P extends Point<P>,N extends BSPTree.Node<P,N>>, BSPTreeVisitor.Order, BSPTreeVisitor.Result, BSPTreeVisitor.TargetPointVisitor<P extends Point<P>,N extends BSPTree.Node<P,N>>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TargetPointVisitor(P target)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description P
getTarget()
Get the target point for the tree traversal.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.geometry.core.partitioning.bsp.BSPTreeVisitor
visit, visitOrder
-
-
-
-
Constructor Detail
-
TargetPointVisitor
protected TargetPointVisitor(P target)
Simple constructor.- Parameters:
target
- the point serving as the target for the tree traversal
-
-
Method Detail
-
getTarget
public P getTarget()
Get the target point for the tree traversal.- Returns:
- the target point for the tree traversal
-
-