|
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.MemPointNode<T>
T
- the datatype to be used as idpublic class MemPointNode<T>
MemPointNode
is the node class of a memory based implementation of a quadtree.
Constructor Summary | |
---|---|
MemPointNode(Quadtree owner,
Envelope env,
int lvl)
Constructs a new node with the given envelope, object, location and level. |
Method Summary | |
---|---|
boolean |
delete(T item,
Envelope env)
Deletes the item from the quadtree. |
void |
deleteRange(Envelope envelope)
Deletes all items intersecting the envelope. |
int |
getDepth()
|
Envelope |
getEnvelope()
|
java.lang.String |
getId()
This method does not make sense for the memory implementation. |
boolean |
insert(T item,
Envelope itemEnv)
Inserts the item into the quadtree. |
java.util.List<T> |
query(Envelope searchEnv,
java.util.List<T> visitor,
int level)
Searches for all items intersecting the search envelope. |
boolean |
update(T item,
Envelope newBBox)
Updates the spatial reference of the given item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemPointNode(Quadtree owner, Envelope env, int lvl)
owner
- env
- the envelopelvl
- the levelMethod Detail |
---|
public int getDepth()
public Envelope getEnvelope()
public java.lang.String getId()
getId
in interface Node<T>
public boolean insert(T item, Envelope itemEnv) throws IndexException
insert
in interface Node<T>
item
- the itemitemEnv
- the envelope of the item
IndexException
public java.util.List<T> query(Envelope searchEnv, java.util.List<T> visitor, int level) throws IndexException
query
in interface Node<T>
searchEnv
- the search envelopevisitor
- the resulting listlevel
- unused by this implementation
IndexException
public boolean delete(T item, Envelope env) throws IndexException
delete
in interface Node<T>
item
- the item to be deletedenv
- bbox of the item
IndexException
public boolean update(T item, Envelope newBBox)
Node
update
in interface Node<T>
item
- which spatial reference in the quadtree should be updated.newBBox
- newBBox the new BBoundingbox of the item.
public void deleteRange(Envelope envelope)
deleteRange
in interface Node<T>
envelope
- )
|
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