org.openstreetmap.josm.data.osm
Class QuadBuckets.QBLevel
java.lang.Object
org.openstreetmap.josm.data.osm.QuadBuckets.QBLevel
- Enclosing class:
- QuadBuckets<T extends OsmPrimitive>
class QuadBuckets.QBLevel
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
level
final int level
bbox
private final BBox bbox
quad
final long quad
parent
final QuadBuckets.QBLevel parent
isLeaf
private boolean isLeaf
content
public java.util.List<T extends OsmPrimitive> content
nw
public QuadBuckets.QBLevel nw
ne
public QuadBuckets.QBLevel ne
sw
public QuadBuckets.QBLevel sw
se
public QuadBuckets.QBLevel se
QuadBuckets.QBLevel
public QuadBuckets.QBLevel()
- Constructor for root node
QuadBuckets.QBLevel
public QuadBuckets.QBLevel(QuadBuckets.QBLevel parent,
int parent_index)
getChild
private QuadBuckets.QBLevel getChild(int index)
getChildren
private QuadBuckets.QBLevel[] getChildren()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
calculateBBox
private BBox calculateBBox()
findBucket
QuadBuckets.QBLevel findBucket(BBox bbox)
remove_content
boolean remove_content(T o)
get_index
int get_index(BBox bbox,
int level)
__split
void __split()
__add_content
boolean __add_content(T o)
matches
boolean matches(T o,
BBox search_bbox)
search_contents
private void search_contents(BBox search_bbox,
java.util.List<T> result)
isLeaf
boolean isLeaf()
hasChildren
boolean hasChildren()
next_sibling
QuadBuckets.QBLevel next_sibling()
hasContent
boolean hasContent()
nextSibling
QuadBuckets.QBLevel nextSibling()
firstChild
QuadBuckets.QBLevel firstChild()
nextNode
QuadBuckets.QBLevel nextNode()
nextContentNode
QuadBuckets.QBLevel nextContentNode()
doAdd
void doAdd(T o)
add
void add(T o)
search
private void search(BBox search_bbox,
java.util.List<T> result)
quads
public java.lang.String quads()
index_of
int index_of(QuadBuckets.QBLevel find_this)
width
double width()
height
double height()
bbox
public BBox bbox()
coor
LatLon coor()
remove_from_parent
void remove_from_parent()
canRemove
boolean canRemove()
JOSM