Horizon
tool_polygon_to_line_loop.hpp
1 #pragma once
2 #include "core.hpp"
3 
4 namespace horizon {
5 
7 public:
8  ToolPolygonToLineLoop(Core *c, ToolID tid);
9  ToolResponse begin(const ToolArgs &args) override;
10  ToolResponse update(const ToolArgs &args) override;
11  bool can_begin() override;
12  bool is_specific() override
13  {
14  return true;
15  }
16 
17 private:
18  class Polygon *get_polygon();
19  class Junction *make_junction(const Coordi &c);
20 };
21 } // namespace horizon
horizon::ToolPolygonToLineLoop::is_specific
bool is_specific() override
Definition: tool_polygon_to_line_loop.hpp:12
horizon::Polygon
Polygon used in Padstack, Package and Board for specifying filled Regions.
Definition: polygon.hpp:27
horizon::ToolPolygonToLineLoop::can_begin
bool can_begin() override
Definition: tool_polygon_to_line_loop.cpp:14
horizon::ToolPolygonToLineLoop::begin
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition: tool_polygon_to_line_loop.cpp:40
horizon::ToolPolygonToLineLoop
Definition: tool_polygon_to_line_loop.hpp:6
horizon::Coord
Your typical coordinate class.
Definition: common.hpp:72
horizon::Core
Where Tools and and documents meet.
Definition: core.hpp:240
horizon::Junction
A Junction is a point in 2D-Space.
Definition: junction.hpp:25
horizon::ToolPolygonToLineLoop::update
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition: tool_polygon_to_line_loop.cpp:89
horizon::ToolBase
Common interface for all Tools.
Definition: core.hpp:141
horizon::ToolResponse
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition: core.hpp:52
horizon::ToolArgs
This is what a Tool receives when the user did something.
Definition: core.hpp:26