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 voidacceptInput(N input) Accept a value from the input iterator.Methods inherited from class IteratorTransform
addAllOutput, addOutput, hasNext, nextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
-
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:
acceptInputin classIteratorTransform<N extends AbstractRegionBSPTree.AbstractRegionNode<P,N>, C extends HyperplaneConvexSubset<P>> - Parameters:
input- value from the input iterator
-