Horizon
Loading...
Searching...
No Matches
dxf_importer.hpp
1#pragma once
2#include "common/common.hpp"
3#include <set>
4#include <string>
5
6namespace horizon {
8public:
9 DXFImporter(class IDocument *c);
10 bool import(const std::string &filename);
11 void set_layer(int la);
12 void set_width(uint64_t w);
13 void set_shift(const Coordi &sh);
14 void set_scale(double sc);
15
16 std::set<class Junction *> junctions;
17 std::set<class Line *> lines;
18 std::set<class Arc *> arcs;
19
20 enum class UnsupportedType { ELLIPSE, SPLINE };
21
22 const std::map<UnsupportedType, unsigned int> &get_items_unsupported() const;
23
24private:
25 class IDocument *core = nullptr;
26 int layer = 0;
27 uint64_t width = 0;
28 Coordi shift;
29 double scale = 1;
30
31 std::map<UnsupportedType, unsigned int> items_unsupported;
32};
33} // namespace horizon
Definition dxf_importer.hpp:7
Definition idocument.hpp:5