An implemntation of a R* tree.  
 More...
#include <gf/Spatial_RStarTree.h>
|  | 
| static constexpr std::size_t | MaxSize = 16 | 
|  | 
| static constexpr std::size_t | MinSize = 4 | 
|  | 
An implemntation of a R* tree. 
More precisely, this class implements the Revised R* tree.
- See also
- gf::QuadTree 
- 
R* tree - Wikipedia 
◆ RStarTree()
      
        
          | gf::RStarTree::RStarTree | ( |  | ) |  | 
      
 
 
◆ clear()
      
        
          | void gf::RStarTree::clear | ( |  | ) |  | 
      
 
Remove all the objects from the tree. 
 
 
◆ insert()
Insert an object in the tree. 
- Parameters
- 
  
    | handle | A handle that represents the object to insert |  | bounds | The bounds of the object |  
 
- Returns
- A spatial id 
 
 
◆ modify()
Modify the bounds of an object. 
- Parameters
- 
  
    | id | The spatial id of the object |  | bounds | The new bounds of the object |  
 
 
 
◆ operator[]()
Get the handle associated to a spatial id. 
- Parameters
- 
  
    | id | The spatial id of the object |  
 
 
 
◆ query()
Query objects in the tree. 
- Parameters
- 
  
    | bounds | The bounds of the query |  | callback | The callback to apply to found objects |  | kind | The kind of spatial query |  
 
- Returns
- The number of objects found 
 
 
◆ remove()
Remove an object from the tree. 
- Parameters
- 
  
    | id | The spatial id of the object |  
 
 
 
◆ MaxSize
  
  | 
        
          | constexpr std::size_t gf::RStarTree::MaxSize = 16 |  | static | 
 
 
◆ MinSize
  
  | 
        
          | constexpr std::size_t gf::RStarTree::MinSize = 4 |  | static |