Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
Classes | Typedefs | Enumerations
Spatial

Spatial indexes. More...

Classes

class  gf::DynamicTree
 An implementation of dynamic tree. More...
 
class  gf::Quadtree
 An implementation of quadtree. More...
 
class  gf::RStarTree
 An implemntation of a R* tree. More...
 
class  gf::SimpleSpatialIndex
 An very simple spatial index. More...
 
struct  gf::SpatialStructure
 A spatial structure. More...
 

Typedefs

using gf::SpatialQueryCallback = std::function< void(Handle)>
 A callback for spatial query. More...
 

Enumerations

enum  gf::SpatialId : std::size_t
 A spatial id. More...
 
enum class  gf::SpatialStructureType {
  gf::SpatialStructureType::Object ,
  gf::SpatialStructureType::Node
}
 A type of spatial structure. More...
 
enum class  gf::SpatialQuery {
  gf::SpatialQuery::Contain ,
  gf::SpatialQuery::Intersect
}
 A kind of spatial query. More...
 

Detailed Description

Spatial indexes.

Typedef Documentation

◆ SpatialQueryCallback

using gf::SpatialQueryCallback = typedef std::function<void(Handle)>

A callback for spatial query.

Enumeration Type Documentation

◆ SpatialId

enum gf::SpatialId : std::size_t

A spatial id.

A spatial id refers to an object in a spatial index.

◆ SpatialQuery

enum class gf::SpatialQuery
strong

A kind of spatial query.

Enumerator
Contain 

Search for all objects that contain the given bounds.

Intersect 

Search for all objects that intersect the given bounds.

◆ SpatialStructureType

enum class gf::SpatialStructureType
strong

A type of spatial structure.

See also
gf::SpatialStructure
Enumerator
Object 

The structure represents an actuel object.

Node 

The structure represents an internal node.