|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.io.quadtree.MemPointNode
public class MemPointNode
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 | |
---|---|
void |
deleteItem(Object item)
Deletes the item from the quadtree. |
void |
deleteRange(Envelope envelope)
Deletes all items intersecting the envelope. |
int |
getDepth()
|
Envelope |
getEnvelope()
|
String |
getId()
This method does not make sense for the memory implementation. |
void |
insert(Object item,
Envelope itemEnv)
Inserts the item into the quadtree. |
List<Object> |
query(Envelope searchEnv,
List<Object> visitor,
int level)
Searches for all items intersecting the search envelope. |
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 String getId()
getId
in interface Node
public void insert(Object item, Envelope itemEnv) throws IndexException
insert
in interface Node
item
- the itemitemEnv
- the envelope of the item
IndexException
public List<Object> query(Envelope searchEnv, List<Object> visitor, int level) throws IndexException
query
in interface Node
searchEnv
- the search envelopevisitor
- the resulting listlevel
- unused by this implementation
IndexException
public void deleteItem(Object item)
deleteItem
in interface Node
item
- the item to be deletedpublic void deleteRange(Envelope envelope)
deleteRange
in interface Node
envelope
- )
|
deegree 2.1 (2007/11/08 09:57 build-328-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://deegree.sourceforge.net