public class IntQuadTree<T extends ISpatialItem<IIntBounds>> extends QuadTree<IIntBounds,T> implements IIntBounds
| Modifier and Type | Class and Description |
|---|---|
class |
IntQuadTree.IntQuadTreeNode |
QuadTree.QuadTreeNodeLEVEL_MAX_DEFAULT, LEVEL_ROOT, mBounds, mMaxLevel, mRoot| Constructor and Description |
|---|
IntQuadTree(IIntBounds pIntBounds) |
IntQuadTree(IIntBounds pIntBounds,
int pMaxLevel) |
IntQuadTree(int pXMin,
int pYMin,
int pXMax,
int pYMax) |
IntQuadTree(int pXMin,
int pYMin,
int pXMax,
int pYMax,
int pMaxLevel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAny(int pX,
int pY) |
boolean |
containsAny(int pX,
int pY,
IMatcher<T> pMatcher) |
boolean |
containsAny(int pXMin,
int pYMin,
int pXMax,
int pYMax) |
boolean |
containsAny(int pXMin,
int pYMin,
int pXMax,
int pYMax,
IMatcher<T> pMatcher) |
protected IntQuadTree.IntQuadTreeNode |
getRoot() |
int |
getXMax() |
int |
getXMin() |
int |
getYMax() |
int |
getYMin() |
protected IntQuadTree.IntQuadTreeNode |
initRoot(IIntBounds pIntBounds) |
java.util.ArrayList<T> |
query(int pX,
int pY) |
java.util.ArrayList<T> |
query(int pX,
int pY,
IMatcher<T> pMatcher) |
<L extends java.util.List<T>> |
query(int pX,
int pY,
IMatcher<T> pMatcher,
L pResult) |
java.util.ArrayList<T> |
query(int pXMin,
int pYMin,
int pXMax,
int pYMax) |
java.util.ArrayList<T> |
query(int pXMin,
int pYMin,
int pXMax,
int pYMax,
IMatcher<T> pMatcher) |
<L extends java.util.List<T>> |
query(int pXMin,
int pYMin,
int pXMax,
int pYMax,
IMatcher<T> pMatcher,
L pResult) |
<L extends java.util.List<T>> |
query(int pXMin,
int pYMin,
int pXMax,
int pYMax,
L pResult) |
<L extends java.util.List<T>> |
query(int pX,
int pY,
L pResult) |
<L extends java.util.List<S>,S extends T> |
queryForSubclass(int pX,
int pY,
IMatcher<T> pMatcher,
L pResult) |
<L extends java.util.List<S>,S extends T> |
queryForSubclass(int pXMin,
int pYMin,
int pXMax,
int pYMax,
IMatcher<T> pMatcher,
L pResult) |
add, add, addAll, addAll, addAll, callItems, callNodes, clear, containsAny, containsAny, getBounds, getItemCount, getMaxLevel, isEmpty, move, move, query, query, query, query, queryForSubclass, remove, remove, toStringpublic IntQuadTree(IIntBounds pIntBounds)
public IntQuadTree(int pXMin,
int pYMin,
int pXMax,
int pYMax)
public IntQuadTree(IIntBounds pIntBounds, int pMaxLevel)
public IntQuadTree(int pXMin,
int pYMin,
int pXMax,
int pYMax,
int pMaxLevel)
protected IntQuadTree.IntQuadTreeNode initRoot(IIntBounds pIntBounds)
initRoot in class QuadTree<IIntBounds,T extends ISpatialItem<IIntBounds>>public int getXMin()
getXMin in interface IIntBoundspublic int getYMin()
getYMin in interface IIntBoundspublic int getXMax()
getXMax in interface IIntBoundspublic int getYMax()
getYMax in interface IIntBoundsprotected IntQuadTree.IntQuadTreeNode getRoot()
getRoot in class QuadTree<IIntBounds,T extends ISpatialItem<IIntBounds>>public java.util.ArrayList<T> query(int pX, int pY)
public <L extends java.util.List<T>> L query(int pX, int pY, L pResult)
public java.util.ArrayList<T> query(int pXMin, int pYMin, int pXMax, int pYMax)
public <L extends java.util.List<T>> L query(int pXMin, int pYMin, int pXMax, int pYMax, L pResult)
public java.util.ArrayList<T> query(int pXMin, int pYMin, int pXMax, int pYMax, IMatcher<T> pMatcher)
public <L extends java.util.List<T>> L query(int pXMin, int pYMin, int pXMax, int pYMax, IMatcher<T> pMatcher, L pResult)
public <L extends java.util.List<S>,S extends T> L queryForSubclass(int pX, int pY, IMatcher<T> pMatcher, L pResult) throws java.lang.ClassCastException
java.lang.ClassCastExceptionpublic <L extends java.util.List<S>,S extends T> L queryForSubclass(int pXMin, int pYMin, int pXMax, int pYMax, IMatcher<T> pMatcher, L pResult) throws java.lang.ClassCastException
java.lang.ClassCastExceptionpublic boolean containsAny(int pX,
int pY)
public boolean containsAny(int pXMin,
int pYMin,
int pXMax,
int pYMax)