◆ Accept()
template<class T = SHAPE*>
template<class V >
Function Accept()
Accepts a visitor for every SHAPE object contained in this INDEX.
- Parameters
-
aVisitor | Visitor object to be run |
◆ Add()
Function Add()
Adds a SHAPE to the index.
- Parameters
-
◆ Begin()
Function Begin()
Creates an iterator for the current index object
- Returns
- iterator
◆ Query()
template<class T = SHAPE*>
template<class V >
int SHAPE_INDEX< T >::Query |
( |
const SHAPE * |
aShape, |
|
|
int |
aMinDistance, |
|
|
V & |
aVisitor, |
|
|
bool |
aExact |
|
) |
| |
|
inline |
Function Query()
Runs a callback on every SHAPE object contained in the bounding box of (shape).
- Parameters
-
aShape | shape to search against |
aMinDistance | distance threshold |
aVisitor | object to be invoked on every object contained in the search area. |
◆ Reindex()
Function Reindex()
Rebuilds the index. This should be used if the geometry of the objects contained by the index has changed.
◆ Remove()
◆ RemoveAll()
Function RemoveAll()
Removes all the contents of the index.
The documentation for this class was generated from the following file: