Horizon
Loading...
Searching...
No Matches
canvas_gerber.hpp
1#pragma once
2#include "canvas/canvas.hpp"
3
4namespace horizon {
5class CanvasGerber : public Canvas {
6public:
8 void push() override
9 {
10 }
11 void request_push() override;
12 uint64_t outline_width = 0;
13
14private:
15 void img_net(const Net *net) override;
16 void img_polygon(const Polygon &poly, bool tr) override;
17 void img_line(const Coordi &p0, const Coordi &p1, const uint64_t width, int layer, bool tr = true) override;
18 void img_arc(const Coordi &from, const Coordi &to, const Coordi &center, const uint64_t width, int layer) override;
19 void img_padstack(const Padstack &ps) override;
20 void img_hole(const Hole &hole) override;
21 void img_set_padstack(bool v) override;
22 bool padstack_mode = false;
23
24 GerberExporter &exporter;
25};
26} // namespace horizon
Definition canvas_gerber.hpp:5
Definition canvas.hpp:25
Definition gerber_export.hpp:9
A hole with diameter and position, that's it.
Definition hole.hpp:15
Definition net.hpp:11
Definition padstack.hpp:19
Polygon used in Padstack, Package and Board for specifying filled Regions.
Definition polygon.hpp:25