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;
28 std::map<PatchKey, ClipperLib::Paths> patches;
29 std::set<std::tuple<int, Coordi, Coordi>> text_extents;
30 void append_polygon(
const Polygon &poly);
36 void request_push()
override;
39 const Net *net =
nullptr;
40 PatchType patch_type = PatchType::OTHER;
41 virtual void img_net(
const Net *net)
override;
42 virtual void img_polygon(
const Polygon &poly,
bool tr)
override;
43 virtual void img_hole(
const class Hole &hole)
override;
44 virtual void img_patch_type(PatchType type)
override;