org.osm2world.core.map_data.creation.index
public class MapIntersectionGrid extends Object implements MapDataIndex
Constructor and Description |
---|
MapIntersectionGrid(AxisAlignedBoundingBoxXZ dataBoundary) |
Modifier and Type | Method and Description |
---|---|
Iterable<? extends Iterable<MapElement>> |
getLeaves()
returns all leaves of this index structure
|
void |
insert(MapElement e)
inserts the element into the index structure
|
Collection<? extends Iterable<MapElement>> |
insertAndProbe(MapElement e)
inserts the element into the index structure,
and returns all nearby elements contained the index structure
|
public MapIntersectionGrid(AxisAlignedBoundingBoxXZ dataBoundary)
public void insert(MapElement e)
MapDataIndex
insert
in interface MapDataIndex
public Collection<? extends Iterable<MapElement>> insertAndProbe(MapElement e)
MapDataIndex
insertAndProbe
in interface MapDataIndex
MapDataIndex.getLeaves()
.
The leaves already contain the new element.public Iterable<? extends Iterable<MapElement>> getLeaves()
MapDataIndex
getLeaves
in interface MapDataIndex