java.io.Serializable
public abstract class NodeBase
extends java.lang.Object
implements java.io.Serializable
Quadtree
.Constructor | Description |
---|---|
NodeBase() |
Modifier and Type | Method | Description |
---|---|---|
void |
add(java.lang.Object item) |
|
java.util.List |
addAllItems(java.util.List resultItems) |
|
void |
addAllItemsFromOverlapping(Envelope searchEnv,
java.util.List resultItems) |
|
java.util.List |
getItems() |
|
static int |
getSubnodeIndex(Envelope env,
double centrex,
double centrey) |
Gets the index of the subquad that wholly contains the given envelope.
|
boolean |
hasChildren() |
|
boolean |
hasItems() |
|
boolean |
isEmpty() |
|
boolean |
isPrunable() |
|
boolean |
remove(Envelope itemEnv,
java.lang.Object item) |
Removes a single item from this subtree.
|
void |
visit(Envelope searchEnv,
ItemVisitor visitor) |
public static int getSubnodeIndex(Envelope env, double centrex, double centrey)
public java.util.List getItems()
public boolean hasItems()
public void add(java.lang.Object item)
public boolean remove(Envelope itemEnv, java.lang.Object item)
itemEnv
- the envelope containing the itemitem
- the item to removetrue
if the item was found and removedpublic boolean isPrunable()
public boolean hasChildren()
public boolean isEmpty()
public java.util.List addAllItems(java.util.List resultItems)
public void addAllItemsFromOverlapping(Envelope searchEnv, java.util.List resultItems)
public void visit(Envelope searchEnv, ItemVisitor visitor)
Copyright © 2018. All rights reserved.