![]() |
Maria GDK 5.0.0.927
Documentation of native code in develop branch
|
#include <StkGridIndex.h>
Public Types | |
| using | BBox = Box2< float > |
| using | BCircle = Circle< float > |
Public Member Functions | |
| GridIndex (float width, float height, uint32_t cellSize) | |
| void | insert (T &&t, const BBox &) |
| void | insert (T &&t, const BCircle &) |
| std::vector< T > | query (const BBox &) const |
| std::vector< std::pair< T, BBox > > | queryWithBoxes (const BBox &) const |
| bool | hitTest (const BBox &, std::optional< std::function< bool(const T &)> > predicate=std::nullopt) const |
| bool | hitTest (const BCircle &, std::optional< std::function< bool(const T &)> > predicate=std::nullopt) const |
| const std::vector< std::pair< T, BBox > > & | getBoxElements () const |
| const std::vector< std::pair< T, BCircle > > & | getCircleElements () const |
| bool | empty () const |
GridIndex - Based on MapBox GridIndex, a data structure for efficient intersection testing of boxes and circles in a regular grid.