Class AbstractRegionBSPTree.RegionBoundaryIterator<P extends Point<P>,C extends HyperplaneConvexSubset<P>,N extends AbstractRegionBSPTree.AbstractRegionNode<P,N>>
java.lang.Object
org.apache.commons.geometry.core.internal.IteratorTransform<N,C>
org.apache.commons.geometry.core.partitioning.bsp.AbstractRegionBSPTree.RegionBoundaryIterator<P,C,N>
- Type Parameters:
P
- Point implementation typeC
- Boundary hyperplane convex subset implementation typeN
- BSP tree node implementation type
- All Implemented Interfaces:
Iterator<C>
- Enclosing class:
AbstractRegionBSPTree<P extends Point<P>,
N extends AbstractRegionBSPTree.AbstractRegionNode<P, N>>
private static final class AbstractRegionBSPTree.RegionBoundaryIterator<P extends Point<P>,C extends HyperplaneConvexSubset<P>,N extends AbstractRegionBSPTree.AbstractRegionNode<P,N>>
extends IteratorTransform<N,C>
Class that iterates over the boundary hyperplane convex subsets from a set of region nodes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function
<? super HyperplaneConvexSubset<P>, C> Function that converts from the convex subset type to the output type. -
Constructor Summary
ConstructorsConstructorDescriptionRegionBoundaryIterator
(Iterator<N> inputIterator, Function<? super HyperplaneConvexSubset<P>, C> typeConverter) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
acceptInput
(N input) Accept a value from the input iterator.Methods inherited from class org.apache.commons.geometry.core.internal.IteratorTransform
addAllOutput, addOutput, hasNext, next
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
typeConverter
private final Function<? super HyperplaneConvexSubset<P extends Point<P>>,C extends HyperplaneConvexSubset<P>> typeConverterFunction that converts from the convex subset type to the output type.
-
-
Constructor Details
-
RegionBoundaryIterator
RegionBoundaryIterator(Iterator<N> inputIterator, Function<? super HyperplaneConvexSubset<P>, C> typeConverter) Simple constructor.- Parameters:
inputIterator
- iterator that will provide all nodes in the treetypeConverter
- function that converts from the convex subset type to the output type
-
-
Method Details
-
acceptInput
Accept a value from the input iterator. This method should take the input value and add one or more values to the output queue.- Specified by:
acceptInput
in classIteratorTransform<N extends AbstractRegionBSPTree.AbstractRegionNode<P,
N>, C extends HyperplaneConvexSubset<P>> - Parameters:
input
- value from the input iterator
-