Horizon
tool_line_loop_to_polygon.hpp
1 #pragma once
2 #include "core.hpp"
3 
4 namespace horizon {
5 
7 public:
8  ToolLineLoopToPolygon(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  void remove_from_selection(ObjectType type, const UUID &uu);
19 };
20 } // namespace horizon
horizon::ToolLineLoopToPolygon
Definition: tool_line_loop_to_polygon.hpp:6
horizon::ToolLineLoopToPolygon::is_specific
bool is_specific() override
Definition: tool_line_loop_to_polygon.hpp:12
horizon::ToolLineLoopToPolygon::begin
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition: tool_line_loop_to_polygon.cpp:96
horizon::ToolLineLoopToPolygon::can_begin
bool can_begin() override
Definition: tool_line_loop_to_polygon.cpp:14
horizon::Core
Where Tools and and documents meet.
Definition: core.hpp:240
horizon::ToolBase
Common interface for all Tools.
Definition: core.hpp:141
horizon::UUID
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
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
horizon::ToolLineLoopToPolygon::update
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition: tool_line_loop_to_polygon.cpp:187