3 #include "clipper/clipper.hpp"
13 bool operator<(
const PatchKey &other)
const
15 if (type < other.type)
17 else if (type > other.type)
20 if (layer < other.layer)
22 else if (layer > other.layer)
25 return net < other.net;
29 const std::map<PatchKey, ClipperLib::Paths> &get_patches()
const;
30 const std::set<std::tuple<int, Coordi, Coordi>> &get_text_extents()
const;
31 void clear()
override;
33 void append_polygon(
const Polygon &poly);
39 void request_push()
override;
42 const Net *net =
nullptr;
43 PatchType patch_type = PatchType::OTHER;
44 virtual void img_net(
const Net *net)
override;
45 virtual void img_polygon(
const Polygon &poly,
bool tr)
override;
46 virtual void img_hole(
const class Hole &hole)
override;
47 virtual void img_patch_type(PatchType type)
override;
49 std::map<PatchKey, ClipperLib::Paths> patches;
50 std::set<std::tuple<int, Coordi, Coordi>> text_extents;
Definition: canvas_patch.hpp:8
Definition: canvas_patch.hpp:6
Definition: canvas.hpp:24
A hole with diameter and position, that's it.
Definition: hole.hpp:18
Polygon used in Padstack, Package and Board for specifying filled Regions.
Definition: polygon.hpp:27
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16