VIPRA Documentation
|
Parameter and Polygon qualified dxf input module. More...
#include <dxf.hpp>
Public Member Functions | |
VIPRA_MODULE_NAME ("DXF") | |
VIPRA_MODULE_TYPE (MapInput) | |
void | load (std::string const &filepath) override |
Loads the DXF file from the given path. | |
auto | serialize () -> std::string override |
void | parse (std::string const &) override |
auto | get_obstacles () const -> std::optional< std::vector< VIPRA::Geometry::Polygon > > override |
Returns obstacles geometry from the .dxf file. | |
auto | get_spawns () const -> std::optional< std::vector< VIPRA::Geometry::Polygon > > override |
Returns spawn area geometry from the .dxf file. | |
auto | get_objectives () const -> std::optional< std::map< std::string, std::vector< VIPRA::Geometry::Polygon > > > override |
Returns Objectives map from the .dxf file. | |
auto | get_areas () const -> std::optional< std::map< std::string, VIPRA::Geometry::Polygon > > override |
Returns spawn area geometry from the .dxf file. | |
auto | get_objective_types (std::vector< std::string > const &keys) const -> std::optional< std::vector< std::string > > |
![]() | |
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. | |
![]() | |
Serializable (const Serializable &)=default | |
Serializable (Serializable &&)=default | |
auto | operator= (const Serializable &) -> Serializable &=default |
auto | operator= (Serializable &&) -> Serializable &=default |
![]() | |
MapInput (const MapInput &)=default | |
MapInput (MapInput &&)=default | |
auto | operator= (const MapInput &) -> MapInput &=default |
auto | operator= (MapInput &&) -> MapInput &=default |
Static Public Member Functions | |
static auto | get_polygons (std::vector< std::shared_ptr< DRW_Vertex > > &vertexList) -> std::optional< std::vector< VIPRA::Geometry::Polygon > > |
Parameter and Polygon qualified dxf input module.
|
nodiscardoverridevirtual |
Returns spawn area geometry from the .dxf file.
Implements VIPRA::Modules::MapInput.
|
nodiscardoverridevirtual |
Returns Objectives map from the .dxf file.
Implements VIPRA::Modules::MapInput.
|
nodiscardoverridevirtual |
Returns obstacles geometry from the .dxf file.
Implements VIPRA::Modules::MapInput.
|
nodiscardoverridevirtual |
Returns spawn area geometry from the .dxf file.
Implements VIPRA::Modules::MapInput.
|
overridevirtual |
Loads the DXF file from the given path.
filepath |
https://github.com/codelibs/libdxfrw
Implements VIPRA::Modules::MapInput.
|
inlineoverridevirtual |
Implements VIPRA::Modules::Serializable.
|
inlinenodiscardoverridevirtual |
Implements VIPRA::Modules::Serializable.