|
|||||||||
| Version 1.5 | APIs subject to change! | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmultiverse.server.engine.QuadTreeNode<ElementType>
public class QuadTreeNode<ElementType extends QuadTreeElement<ElementType>>
| Nested Class Summary | |
|---|---|
static class |
QuadTreeNode.NodeType
|
| Field Summary | |
|---|---|
java.util.concurrent.locks.Lock |
lock
|
protected static boolean |
logPath
|
| Method Summary | |
|---|---|
void |
addPerceiverExtentObject(ElementType elem,
Point loc,
int radius)
adds the elem to the ancilliary list of perceivable objects for all subnodes. |
void |
addRegion(Region region)
Add region to QuadTreeNode's children. |
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 |
QuadTreeNode.NodeType |
getNodeType()
|
java.util.Set<ElementType> |
getPerceiverExtentObjects()
|
java.util.List<Region> |
getRegionByLoc(Point loc)
Get regions that contain point 'loc'. |
java.util.ArrayList<Region> |
getRegions()
Get regions intersecting with this QuadTreeNode. |
QuadTree<ElementType> |
getTree()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public transient java.util.concurrent.locks.Lock lock
protected static boolean logPath
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic 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,
int radius)
public java.util.ArrayList<QuadTreeNode<ElementType>> getChildren()
public QuadTreeNode<ElementType> getChild(int i)
public QuadTreeNode<ElementType> getChild(Point p)
public java.util.ArrayList<Region> getRegions()
public void addRegion(Region region)
public java.util.List<Region> getRegionByLoc(Point loc)
public Geometry getGeometry()
public QuadTreeNode.NodeType getNodeType()
public java.util.Set<ElementType> getPerceiverExtentObjects()
|
Copyright © 2008 The Multiverse Network, Inc. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||