aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/include
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-06-21 16:23:09 +0200
committerjaseg <git@jaseg.de>2022-06-21 16:23:09 +0200
commite76d257220cb98cf8286b077cad248de62a6abc8 (patch)
tree16c3285f8c2f7a3818552f1fd2851dc032f2f7c2 /svg-flatten/include
parent29c5c0c03df5145083d36b800759a058d8602ede (diff)
downloadgerbolyze-e76d257220cb98cf8286b077cad248de62a6abc8.tar.gz
gerbolyze-e76d257220cb98cf8286b077cad248de62a6abc8.tar.bz2
gerbolyze-e76d257220cb98cf8286b077cad248de62a6abc8.zip
svg-flatten: fix failing testsv3.0.9
Diffstat (limited to 'svg-flatten/include')
-rw-r--r--svg-flatten/include/gerbolyze.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/svg-flatten/include/gerbolyze.hpp b/svg-flatten/include/gerbolyze.hpp
index a24236b..06cbebc 100644
--- a/svg-flatten/include/gerbolyze.hpp
+++ b/svg-flatten/include/gerbolyze.hpp
@@ -68,6 +68,7 @@ namespace gerbolyze {
public:
virtual ~PolygonSink() {}
virtual void header(d2p origin, d2p size) {(void) origin; (void) size;}
+ virtual bool can_do_apertures() { return false; }
virtual PolygonSink &operator<<(const Polygon &poly) = 0;
virtual PolygonSink &operator<<(const ClipperLib::Paths paths) {
for (const auto &poly : paths) {
@@ -137,6 +138,7 @@ namespace gerbolyze {
public:
PolygonScaler(PolygonSink &sink, double scale=1.0) : m_sink(sink), m_scale(scale) {}
virtual void header(d2p origin, d2p size);
+ virtual bool can_do_apertures();
virtual PolygonScaler &operator<<(const Polygon &poly);
virtual PolygonScaler &operator<<(const LayerNameToken &layer_name);
virtual PolygonScaler &operator<<(GerberPolarityToken pol);
@@ -326,6 +328,7 @@ namespace gerbolyze {
virtual SimpleGerberOutput &operator<<(const ApertureToken &ap);
virtual SimpleGerberOutput &operator<<(const FlashToken &tok);
virtual SimpleGerberOutput &operator<<(const PatternToken &tok);
+ virtual bool can_do_apertures() { return true; }
virtual void header_impl(d2p origin, d2p size);
virtual void footer_impl();