|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.io.quadtree.MemPointQuadtree<T>
T
- the datatype to be used as idpublic class MemPointQuadtree<T>
MemPointQuadtree
is a memory based quadtree implementation for points.
Field Summary | |
---|---|
(package private) int |
maxDepth
|
Constructor Summary | |
---|---|
MemPointQuadtree(Envelope region)
Creates a new instance with the specified region. |
|
MemPointQuadtree(Envelope region,
double accuracyX,
double accuracyY)
Creates a new instance with the specified region. |
Method Summary | |
---|---|
void |
deleteItem(T item)
Deletes the item from the quadtree. |
void |
deleteRange(Envelope envelope)
Deletes all items intersecting the envelope. |
int |
getDepth()
|
Envelope |
getRootBoundingBox()
returns the bounding box covered by the quadtrees root node |
void |
insert(T item,
Envelope envelope)
Inserts the item with the envelope into the quadtree. |
void |
insert(T item,
Point point)
Inserts the item with the given point as envelope. |
java.util.List<T> |
query(Envelope envelope)
Searches for all items intersecting with the envelope. |
void |
update(T item,
Envelope newBBox)
updates spacial index of the specified item in the quadtree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int maxDepth
Constructor Detail |
---|
public MemPointQuadtree(Envelope region)
region
- public MemPointQuadtree(Envelope region, double accuracyX, double accuracyY)
region
- accuracyX
- accuracyY
- Method Detail |
---|
public void insert(T item, Envelope envelope) throws IndexException
insert
in interface Quadtree<T>
item
- envelope
-
IndexException
public void insert(T item, Point point) throws IndexException
insert
in interface Quadtree<T>
item
- point
-
IndexException
public java.util.List<T> query(Envelope envelope) throws IndexException
query
in interface Quadtree<T>
envelope
-
IndexException
public void deleteItem(T item) throws IndexException
deleteItem
in interface Quadtree<T>
item
- the item to be deleted
IndexException
public void deleteRange(Envelope envelope)
deleteRange
in interface Quadtree<T>
envelope
- )
public int getDepth()
getDepth
in interface Quadtree<T>
public Envelope getRootBoundingBox() throws IndexException
Quadtree
getRootBoundingBox
in interface Quadtree<T>
IndexException
public void update(T item, Envelope newBBox)
Quadtree
update
in interface Quadtree<T>
item
- the ID of the item.newBBox
- the new BBoundingbox of the item.
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org