uk.me.parabola.util
Class QuadTreeNode

java.lang.Object
  extended by uk.me.parabola.util.QuadTreeNode

public class QuadTreeNode
extends java.lang.Object


Nested Class Summary
static class QuadTreeNode.QuadTreePolygon
           
 
Constructor Summary
QuadTreeNode(Area bounds)
           
QuadTreeNode(Area bounds, java.util.Collection<Coord> points)
           
 
Method Summary
 boolean add(Coord c)
           
 void clear()
           
 java.util.List<Coord> get(Area bbox, java.util.List<Coord> resultList)
           
 java.util.ArrayList<Coord> get(QuadTreeNode.QuadTreePolygon polygon, java.util.ArrayList<Coord> resultList)
           
 Area getBounds()
           
 Area getCoveredBounds()
           
 boolean isLeaf()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuadTreeNode

public QuadTreeNode(Area bounds)

QuadTreeNode

public QuadTreeNode(Area bounds,
                    java.util.Collection<Coord> points)
Method Detail

getCoveredBounds

public Area getCoveredBounds()

getBounds

public Area getBounds()

add

public boolean add(Coord c)

get

public java.util.List<Coord> get(Area bbox,
                                 java.util.List<Coord> resultList)

get

public java.util.ArrayList<Coord> get(QuadTreeNode.QuadTreePolygon polygon,
                                      java.util.ArrayList<Coord> resultList)

isLeaf

public boolean isLeaf()

clear

public void clear()