Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::GridIndex< T > Class Template Reference

#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
 

Detailed Description

template<class T>
class STK::GridIndex< T >

GridIndex - Based on MapBox GridIndex, a data structure for efficient intersection testing of boxes and circles in a regular grid.


The documentation for this class was generated from the following file: