Module org.arakhne.afc.gis.giscore
Package org.arakhne.afc.gis.tree
Class FrustumSelector<P extends GISPrimitive,N extends AbstractGISTreeSetNode<P,N>>
- java.lang.Object
-
- org.arakhne.afc.gis.tree.FrustumSelector<P,N>
-
- Type Parameters:
P- is the type of the user data inside the node.N- is the type of the nodes.
- All Implemented Interfaces:
DataSelector<P>,NodeSelector<N>
class FrustumSelector<P extends GISPrimitive,N extends AbstractGISTreeSetNode<P,N>> extends Object implements NodeSelector<N>, DataSelector<P>
This class describes an iterator node selector based on bounds.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:53
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.gis
- Maven Artifact Id:
- giscore
-
-
Constructor Summary
Constructors Constructor Description FrustumSelector(Rectangle2afp<?,?,?,?,?,?> bounds)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandataCouldBeRepliedByIterator(P data)Replies if the specified data could be replied by the iterator.booleannodeCouldBeTreatedByIterator(N node)Replies if the specified node could be treated by the iterator.
-
-
-
Constructor Detail
-
FrustumSelector
FrustumSelector(Rectangle2afp<?,?,?,?,?,?> bounds)
Constructor.- Parameters:
bounds- the selection bounds.
-
-
Method Detail
-
nodeCouldBeTreatedByIterator
@Pure public boolean nodeCouldBeTreatedByIterator(N node)
Description copied from interface:NodeSelectorReplies if the specified node could be treated by the iterator.- Specified by:
nodeCouldBeTreatedByIteratorin interfaceNodeSelector<P extends GISPrimitive>- Parameters:
node- is the node to test.- Returns:
trueif the node could be treated by the iterator, otherwhisefalse
-
dataCouldBeRepliedByIterator
@Pure public boolean dataCouldBeRepliedByIterator(P data)
Description copied from interface:DataSelectorReplies if the specified data could be replied by the iterator.- Specified by:
dataCouldBeRepliedByIteratorin interfaceDataSelector<P extends GISPrimitive>- Parameters:
data- is the data to test.- Returns:
trueif the data could be replied by the iterator, otherwhisefalse
-
-