aboutsummaryrefslogtreecommitdiff
path: root/src/vec_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vec_core.h')
-rw-r--r--src/vec_core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vec_core.h b/src/vec_core.h
index 06099ab..adaa241 100644
--- a/src/vec_core.h
+++ b/src/vec_core.h
@@ -43,6 +43,13 @@ namespace gerbolyze {
virtual void vectorize_image(cairo_t *cr, const pugi::xml_node &node, ClipperLib::Paths &clip_path, cairo_matrix_t &viewport_matrix, PolygonSink &sink, double min_feature_size_px);
};
+ class DevNullVectorizer : public ImageVectorizer {
+ public:
+ DevNullVectorizer() {}
+
+ virtual void vectorize_image(cairo_t *, const pugi::xml_node &, ClipperLib::Paths &, cairo_matrix_t &, PolygonSink &, double) {}
+ };
+
void parse_img_meta(const pugi::xml_node &node, double &x, double &y, double &width, double &height);
std::string read_img_data(const pugi::xml_node &node);
void draw_bg_rect(cairo_t *cr, double width, double height, ClipperLib::Paths &clip_path, PolygonSink &sink, cairo_matrix_t &viewport_matrix);