public class BBTree extends AbstractSpatialIndex
Constructor and Description |
---|
BBTree()
Construct a BBTree with a default maximum number of children per branch.
|
BBTree(int maxChildren)
Construct a BBTree with a given maximum number of children per branch.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Indexable> |
getItemsInRegion(Region region)
Get all indexable objects in a region.
|
void |
insert(Indexable i)
Add an item to the index.
|
void |
logTree()
Write this tree to the logger.
|
static void |
main(java.lang.String[] args)
Conduct a timing test.
|
getItemsInRegion
public BBTree()
public BBTree(int maxChildren)
maxChildren
- The maximum number of children per branch.public static void main(java.lang.String[] args)
args
- Command line arguments: [-p points] [-l lines] [-r regions]public void insert(Indexable i)
SpatialIndex
i
- The item to add.public java.util.Collection<Indexable> getItemsInRegion(Region region)
SpatialIndex
region
- The region to check.public void logTree()