Horizon
tool_draw_plane.hpp
1 #pragma once
2 #include "tool_draw_polygon.hpp"
3 #include "tool_helper_edit_plane.hpp"
4 
5 namespace horizon {
6 
8 public:
9  using ToolDrawPolygon::ToolDrawPolygon;
10  bool can_begin() override;
11 
12 protected:
13  bool done = false;
14 
15  ToolResponse commit() override;
16  ToolResponse update(const ToolArgs &args) override;
17 };
18 } // namespace horizon
This is what a Tool receives when the user did something.
Definition: tool_pub.hpp:23
Definition: tool_draw_plane.hpp:7
bool can_begin() override
Definition: tool_draw_plane.cpp:11
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition: tool_draw_plane.cpp:50
Definition: tool_draw_polygon.hpp:8
Definition: tool_helper_edit_plane.hpp:5
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition: tool_pub.hpp:40