com.esri.core.geometry
public class QuadTree extends Object
Modifier and Type | Class and Description |
---|---|
static class |
QuadTree.QuadTreeIterator |
Constructor and Description |
---|
QuadTree(Envelope2D extent,
int height)
Creates a Quad_tree with the root having the extent of the input
Envelope_2D, and height of the input height, where the root starts at
height 0.
|
Modifier and Type | Method and Description |
---|---|
int |
getElement(int element_handle)
Returns the element at the given element_handle.
|
int |
getElementCount()
Returns the number of elements in the Quad_tree.
|
Envelope2D |
getExtent(int quad_handle)
Returns the extent of the quad at the given quad_handle.
|
int |
getHeight(int quad_handle)
Returns the height of the quad at the given quad_handle.
|
QuadTree.QuadTreeIterator |
getIterator()
Gets an iterator on the Quad_tree.
|
QuadTree.QuadTreeIterator |
getIterator(Envelope2D query,
double tolerance)
Gets an iterator on the Quad_tree using the input Envelope_2D as the
query.
|
QuadTree.QuadTreeIterator |
getIterator(Geometry query,
double tolerance)
Gets an iterator on the Quad_tree.
|
int |
getQuad(int element_handle)
Returns the Quad_handle of the quad containing the given element_handle.
|
int |
insert(int element,
Envelope2D bounding_box)
Inserts the element and bounding_box into the Quad_tree.
|
int |
insert(int element,
Envelope2D bounding_box,
int hint_index)
Inserts the element and bounding_box into the Quad_tree at the given
quad_handle.
|
void |
removeElement(int element_handle)
Removes the element and bounding_box at the given element_handle.
|
public QuadTree(Envelope2D extent, int height)
public int insert(int element, Envelope2D bounding_box)
public int insert(int element, Envelope2D bounding_box, int hint_index)
public void removeElement(int element_handle)
public int getElement(int element_handle)
public int getHeight(int quad_handle)
public Envelope2D getExtent(int quad_handle)
public int getQuad(int element_handle)
public int getElementCount()
public QuadTree.QuadTreeIterator getIterator(Geometry query, double tolerance)
public QuadTree.QuadTreeIterator getIterator(Envelope2D query, double tolerance)
public QuadTree.QuadTreeIterator getIterator()
Copyright © 2015. All Rights Reserved.