![]() |
Gamedev Framework (gf)
0.10.0
A C++14 framework for 2D games
|
An implemntation of a R* tree. More...
#include <gf/Spatial.h>
Public Member Functions | |
| RStarTree () | |
| Constructor. More... | |
| RStarTree (const RStarTree &)=delete | |
| Deleted copy constructor. More... | |
| RStarTree & | operator= (const RStarTree &)=delete |
| Deleted copy assignement. More... | |
| RStarTree (RStarTree &&other) noexcept | |
| Move constructor. More... | |
| RStarTree & | operator= (RStarTree &&other) noexcept |
| Move assignement. More... | |
| ~RStarTree () | |
| Destructor. More... | |
| bool | insert (T value, const Box< U, N > &bounds) |
| Insert an object in the tree. More... | |
| std::size_t | query (const Box< U, N > &bounds, SpatialQueryCallback< T > callback, SpatialQuery kind=SpatialQuery::Intersect) const |
| Query objects in the tree. More... | |
| void | clear () |
| Remove all the objects from the tree. More... | |
| std::vector< SpatialStructure< U, N > > | getStructure () const |
An implemntation of a R* tree.
More precisely, this class implements the Revised R* tree.
|
inline |
Constructor.
|
delete |
Deleted copy constructor.
|
inlinenoexcept |
Move constructor.
|
inline |
Destructor.
|
inline |
Remove all the objects from the tree.
|
inline |
|
inline |
Insert an object in the tree.
| value | The object to insert |
| bounds | The bounds of the object |
|
delete |
Deleted copy assignement.
|
inlinenoexcept |
Move assignement.
|
inline |
Query objects in the tree.
| bounds | The bounds of the query |
| callback | The callback to apply to found objects |
| kind | The kind of spatial query |
1.8.13