ElementType
- public class QuadTreeNode<ElementType extends QuadTreeElement<ElementType>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.concurrent.locks.Lock |
lock |
protected static boolean |
logPath |
Modifier and Type | Method and Description |
---|---|
void |
addPerceiverExtentObject(ElementType elem,
Point loc,
float radius)
adds the elem to the ancilliary list of perceivable objects for
all subnodes.
|
boolean |
containsPoint(Point loc)
Returns whether the passed in location is within the current node
(including its children).
|
boolean |
containsPointWithHysteresis(Point loc) |
QuadTreeNode<ElementType> |
getChild(int i) |
QuadTreeNode<ElementType> |
getChild(Point p) |
java.util.ArrayList<QuadTreeNode<ElementType>> |
getChildren() |
java.util.Set<ElementType> |
getElementsBetween(Point loc1,
Point loc2) |
Geometry |
getGeometry()
returns a copied geometry
|
java.util.Set<ElementType> |
getPerceiverExtentObjects()
Gets the set of objects that are not in this node, but are perceivable from it.
|
QuadTree<ElementType> |
getTree() |
java.lang.String |
toString() |
public transient java.util.concurrent.locks.Lock lock
protected static boolean logPath
public java.lang.String toString()
toString
in class java.lang.Object
public boolean containsPoint(Point loc)
public boolean containsPointWithHysteresis(Point loc)
public QuadTree<ElementType> getTree()
public java.util.Set<ElementType> getElementsBetween(Point loc1, Point loc2)
public void addPerceiverExtentObject(ElementType elem, Point loc, float radius)
public java.util.ArrayList<QuadTreeNode<ElementType>> getChildren()
public QuadTreeNode<ElementType> getChild(int i)
public QuadTreeNode<ElementType> getChild(Point p)
public Geometry getGeometry()
public java.util.Set<ElementType> getPerceiverExtentObjects()