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 boolean
dataCouldBeRepliedByIterator(P data)
Replies if the specified data could be replied by the iterator.boolean
nodeCouldBeTreatedByIterator(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:NodeSelector
Replies if the specified node could be treated by the iterator.- Specified by:
nodeCouldBeTreatedByIterator
in interfaceNodeSelector<P extends GISPrimitive>
- Parameters:
node
- is the node to test.- Returns:
true
if the node could be treated by the iterator, otherwhisefalse
-
dataCouldBeRepliedByIterator
@Pure public boolean dataCouldBeRepliedByIterator(P data)
Description copied from interface:DataSelector
Replies if the specified data could be replied by the iterator.- Specified by:
dataCouldBeRepliedByIterator
in interfaceDataSelector<P extends GISPrimitive>
- Parameters:
data
- is the data to test.- Returns:
true
if the data could be replied by the iterator, otherwhisefalse
-
-