public interface SpatialIndex<V>
A spatial index typically provides a primary filter for range rectangle queries. A secondary filter is required to test for exact intersection. The secondary filter may consist of other kinds of tests, such as testing other spatial relationships.
| Modifier and Type | Method and Description |
|---|---|
void |
insert(BoundingBox boundingBox,
V item)
Adds a spatial item with an extent specified by the given
BoundingBoxDoubleGf to the index |
List<V> |
query(BoundingBox searchEnv)
Queries the index for all items whose extents intersect the given search
BoundingBoxDoubleGf
Note that some kinds of indexes may also return objects which do not in fact
intersect the query envelope. |
boolean |
remove(BoundingBox b,
V item)
Removes a single item from the tree.
|
void insert(BoundingBox boundingBox, V item)
BoundingBoxDoubleGf to the indexList<V> query(BoundingBox searchEnv)
BoundingBoxDoubleGf
Note that some kinds of indexes may also return objects which do not in fact
intersect the query envelope.searchEnv - the envelope to query forboolean remove(BoundingBox b, V item)
boundingBox - the BoundingBox of the item to removeitem - the item to removetrue if the item was foundCopyright © 2015 Revolution Systems Inc.. All rights reserved.