Horizon
tool_import_dxf.hpp
1 #pragma once
2 #include "core.hpp"
3 #include "tool_helper_move.hpp"
4 
5 namespace horizon {
6 
7 class ToolImportDXF : public ToolHelperMove {
8 public:
9  ToolImportDXF(Core *c, ToolID tid);
10  ToolResponse begin(const ToolArgs &args);
11  ToolResponse update(const ToolArgs &args);
12  bool can_begin();
13 
14 private:
15  std::set<class Line *> lines;
16  std::set<class Arc *> arcs;
17  int64_t width = 0;
18 };
19 } // namespace horizon
horizon::ToolImportDXF::begin
ToolResponse begin(const ToolArgs &args)
Gets called right after the constructor has finished.
Definition: tool_import_dxf.cpp:18
horizon::ToolHelperMove
Definition: tool_helper_move.hpp:6
horizon::Core
Where Tools and and documents meet.
Definition: core.hpp:240
libzip::int64_t
zip_int64_t int64_t
zip_int64_t typedef.
Definition: zip.hpp:103
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::ToolImportDXF
Definition: tool_import_dxf.hpp:7
horizon::ToolImportDXF::update
ToolResponse update(const ToolArgs &args)
Gets called whenever the user generated some sort of input.
Definition: tool_import_dxf.cpp:76
horizon::ToolImportDXF::can_begin
bool can_begin()
Definition: tool_import_dxf.cpp:13