Module org.arakhne.afc.gis.giscore
Package org.arakhne.afc.gis.grid
Class StandardGISGridSet<P extends GISPrimitive>
- java.lang.Object
-
- org.arakhne.afc.gis.grid.AbstractGISGridSet<P>
-
- org.arakhne.afc.gis.grid.StandardGISGridSet<P>
-
- Type Parameters:
P
- is the type of the user data inside the node.
- All Implemented Interfaces:
Iterable<P>
,Collection<P>
,Set<P>
,GISSet<P>
public class StandardGISGridSet<P extends GISPrimitive> extends AbstractGISGridSet<P>
This class describes a grid that contains GIS primitives and that permits to find them according to there geo-location.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:53
- Author:
- Stéphane GALLAND
- See Also:
GISPrimitive
- Maven Group Id:
- org.arakhne.afc.gis
- Maven Artifact Id:
- giscore
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.gis.grid.AbstractGISGridSet
grid
-
-
Constructor Summary
Constructors Constructor Description StandardGISGridSet(int nRows, int nColumns, double boundsX, double boundsY, double boundsWidth, double boundsHeight)
Constructor.StandardGISGridSet(int nRows, int nColumns, Rectangle2d bounds)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(P point)
-
Methods inherited from class org.arakhne.afc.gis.grid.AbstractGISGridSet
addAll, boundsIterator, clear, computeSize, contains, containsAll, extractClassFrom, get, get, get, getBounds, getColumnCount, getElementType, getRowCount, indexOf, isEmpty, isTypeRecomputedAfterRemoval, iterator, iterator, iterator, remove, removeAll, retainAll, setTypeRecomputedAfterRemoval, size, slowContains, toArray, toArray, toIterable, toIterable, updateComponentType, updateComponentType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
equals, hashCode, spliterator
-
-
-
-
Constructor Detail
-
StandardGISGridSet
public StandardGISGridSet(int nRows, int nColumns, Rectangle2d bounds)
Constructor.- Parameters:
nRows
- numbers of rows in the gridnColumns
- numbers of columns in the gridbounds
- are the bounds of the grid cell.
-
StandardGISGridSet
public StandardGISGridSet(int nRows, int nColumns, double boundsX, double boundsY, double boundsWidth, double boundsHeight)
Constructor.- Parameters:
nRows
- numbers of rows in the gridnColumns
- numbers of columns in the gridboundsX
- is the bounds of the scene.boundsY
- is the bounds of the scene.boundsWidth
- is the bounds of the scene.boundsHeight
- is the bounds of the scene.
-
-
Method Detail
-
add
public boolean add(P point)
-
-