org.osm2world.core.map_data.creation.index
protected static class Map2dTree.Leaf extends Object implements Map2dTree.Node, Iterable<MapElement>
Modifier and Type | Field and Description |
---|---|
protected ArrayList<MapElement> |
elements |
protected int |
numberWaysAndAreas |
protected Map2dTree.InnerNode |
parent |
Modifier | Constructor and Description |
---|---|
protected |
Map2dTree.Leaf(Map2dTree.InnerNode parent) |
Modifier and Type | Method and Description |
---|---|
void |
add(MapElement element,
boolean suppressSplits) |
void |
collectLeaves(List<Map2dTree.Leaf> leaves)
adds all leaves in the subtree starting at this node to a list
|
Iterator<MapElement> |
iterator() |
List<Map2dTree.Leaf> |
probe(MapElement element) |
protected final Map2dTree.InnerNode parent
protected final ArrayList<MapElement> elements
protected int numberWaysAndAreas
protected Map2dTree.Leaf(Map2dTree.InnerNode parent)
public void add(MapElement element, boolean suppressSplits)
add
in interface Map2dTree.Node
public Iterator<MapElement> iterator()
iterator
in interface Iterable<MapElement>
public List<Map2dTree.Leaf> probe(MapElement element)
probe
in interface Map2dTree.Node
public void collectLeaves(List<Map2dTree.Leaf> leaves)
Map2dTree.Node
collectLeaves
in interface Map2dTree.Node