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:
java.util.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
Fields Modifier and Type Field Description private java.util.function.Function<? super HyperplaneConvexSubset<P>,C>
typeConverter
Function that converts from the convex subset type to the output type.
-
Constructor Summary
Constructors Constructor Description RegionBoundaryIterator(java.util.Iterator<N> inputIterator, java.util.function.Function<? super HyperplaneConvexSubset<P>,C> typeConverter)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Field Detail
-
typeConverter
private final java.util.function.Function<? super HyperplaneConvexSubset<P extends Point<P>>,C extends HyperplaneConvexSubset<P>> typeConverter
Function that converts from the convex subset type to the output type.
-
-
Constructor Detail
-
RegionBoundaryIterator
RegionBoundaryIterator(java.util.Iterator<N> inputIterator, java.util.function.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 Detail
-
acceptInput
protected void acceptInput(N input)
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
-
-