Horizon
Loading...
Searching...
No Matches
horizon::ToolRouteTrackInteractive::Settings Class Reference
Inheritance diagram for horizon::ToolRouteTrackInteractive::Settings:
horizon::ToolSettings

Public Types

enum class  Mode { WALKAROUND , PUSH , BEND , STRAIGHT }
enum class  CornerMode { MITERED_45 , ROUNDED_45 , MITERED_90 , ROUNDED_90 }

Public Member Functions

json serialize () const override
void load_from_json (const json &j) override

Public Attributes

int effort = 1
bool remove_loops = true
bool fix_all_segments = false
Mode mode = Mode::WALKAROUND
CornerMode corner_mode = CornerMode::MITERED_45
bool drc = true

Static Public Attributes

static const std::map< Mode, std::string > mode_names
static const std::map< CornerMode, std::string > corner_mode_names

Member Function Documentation

◆ load_from_json()

void horizon::ToolRouteTrackInteractive::Settings::load_from_json ( const json & j)
overridevirtual

Implements horizon::ToolSettings.

◆ serialize()

json horizon::ToolRouteTrackInteractive::Settings::serialize ( ) const
overridevirtual

Implements horizon::ToolSettings.

Member Data Documentation

◆ corner_mode_names

const std::map< ToolRouteTrackInteractive::Settings::CornerMode, std::string > horizon::ToolRouteTrackInteractive::Settings::corner_mode_names
static
Initial value:
= {
{ToolRouteTrackInteractive::Settings::CornerMode::MITERED_45, "45°"},
{ToolRouteTrackInteractive::Settings::CornerMode::ROUNDED_45, "45° rounded"},
{ToolRouteTrackInteractive::Settings::CornerMode::MITERED_90, "90°"},
{ToolRouteTrackInteractive::Settings::CornerMode::ROUNDED_90, "90° rounded"},
}

◆ mode_names

const std::map< ToolRouteTrackInteractive::Settings::Mode, std::string > horizon::ToolRouteTrackInteractive::Settings::mode_names
static
Initial value:
=
{{ToolRouteTrackInteractive::Settings::Mode::BEND, "Bent"},
{ToolRouteTrackInteractive::Settings::Mode::STRAIGHT, "Straight"},
{ToolRouteTrackInteractive::Settings::Mode::PUSH, "Push & shove"},
{ToolRouteTrackInteractive::Settings::Mode::WALKAROUND, "Walkaround"}}

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