Class BSPTreeVisitor.ClosestFirstVisitor<P extends Point<P>,​N extends BSPTree.Node<P,​N>>

    • Constructor Detail

      • ClosestFirstVisitor

        protected ClosestFirstVisitor​(P target)
        Simple constructor.
        Parameters:
        target - the point serving as the target for the traversal
    • Method Detail

      • visitOrder

        public BSPTreeVisitor.Order visitOrder​(N node)
        Determine the visit order for the given internal node. This is called for each internal node before BSPTreeVisitor.visit(BSPTree.Node) is called. Returning null or BSPTreeVisitor.Order.NONEfrom this method skips the subtree rooted at the given node. This method is not called on leaf nodes.
        Parameters:
        node - the internal node to determine the visit order for
        Returns:
        the order that the subtree rooted at the given node should be visited