VIPRA Documentation
Loading...
Searching...
No Matches
VIPRA::Map::QuadTree Class Reference

Map module that uses a quadtree to store obstacles. More...

#include <quad_tree.hpp>

Inheritance diagram for VIPRA::Map::QuadTree:
Collaboration diagram for VIPRA::Map::QuadTree:

Public Member Functions

 VIPRA_MODULE_NAME ("QuadTree")
 
 VIPRA_MODULE_TYPE (Map)
 
- Public Member Functions inherited from VIPRA::Modules::Module< QuadTree >
void register_params (Parameters &paramIn)
 Registers the modules parameters with the parameter reader.
 
void config (Parameters &paramIn, VIPRA::Random::Engine &engine)
 Loads in all parameters for the module.
 
- Public Member Functions inherited from VIPRA::Modules::Map
void reset_module ()
 
virtual void obstacle_added (VIPRA::Geometry::Polygon const &obstacle)
 
virtual void objective_added (std::string const &type, VIPRA::Geometry::Polygon const &objective)
 
virtual void area_added (std::string const &name, VIPRA::Geometry::Polygon const &polygon)
 
virtual auto collision (VIPRA::f3d point) const -> bool
 
virtual auto collision (VIPRA::Geometry::Circle const &radius) const -> bool
 
virtual auto ray_hit (VIPRA::f3d start, VIPRA::f3d end) const -> VIPRA::f_pnt
 
void add_obstacle (VIPRA::Geometry::Polygon const &obstacle)
 
void add_objective (std::string const &type, VIPRA::Geometry::Polygon const &objective)
 
void add_spawn (VIPRA::Geometry::Polygon const &spawn)
 
void add_area (std::string const &name, VIPRA::Geometry::Polygon const &polygon)
 
auto get_objectives () const -> std::map< std::string, std::vector< VIPRA::Geometry::Polygon > > const &
 
auto get_objectives (std::string const &type) const -> std::vector< VIPRA::Geometry::Polygon > const &
 
auto get_dimensions () const -> VIPRA::f3d
 
auto get_objective_types () const -> std::vector< std::string > const &
 
auto get_obstacles () const -> std::vector< VIPRA::Geometry::Polygon > const &
 
auto get_spawns () const -> std::vector< VIPRA::Geometry::Polygon > const &
 
auto get_areas () const -> std::map< std::string, VIPRA::Geometry::Polygon >
 
void initialize (VIPRA::Modules::MapInput &input)
 
 Map (const Map &)=default
 
 Map (Map &&) noexcept=default
 
auto operator= (const Map &) -> Map &=default
 
auto operator= (Map &&) noexcept -> Map &=default
 

Public Attributes

 VIPRA_MAP_INIT
 
- Public Attributes inherited from VIPRA::Modules::Map
virtual VIPRA_MAP_INIT = 0
 
virtual VIPRA_MAP_RESET = 0
 

Detailed Description

Map module that uses a quadtree to store obstacles.

Member Data Documentation

◆ VIPRA_MAP_INIT

VIPRA::Map::QuadTree::VIPRA_MAP_INIT
Initial value:
{}
VIPRA_MAP_RESET {}
private:
VIPRA::f_pnt _obsDistance{}

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