VIPRA Documentation
|
Map module that uses a quadtree to store obstacles. More...
#include <quad_tree.hpp>
Public Member Functions | |
VIPRA_MODULE_NAME ("QuadTree") | |
VIPRA_MODULE_TYPE (Map) | |
![]() | |
void | register_params (Parameters ¶mIn) |
Registers the modules parameters with the parameter reader. | |
void | config (Parameters ¶mIn, VIPRA::Random::Engine &engine) |
Loads in all parameters for the module. | |
![]() | |
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 | |
![]() | |
virtual | VIPRA_MAP_INIT = 0 |
virtual | VIPRA_MAP_RESET = 0 |
Map module that uses a quadtree to store obstacles.
VIPRA::Map::QuadTree::VIPRA_MAP_INIT |