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.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/vec_core.h b/src/vec_core.h
index 643efc9..9df8598 100644
--- a/src/vec_core.h
+++ b/src/vec_core.h
@@ -25,6 +25,15 @@
#include "vec_grid.h"
namespace gerbolyze {
- void vectorize_image(cairo_t *cr, const pugi::xml_node &node, double min_feature_size_px, ClipperLib::Paths &clip_path, cairo_matrix_t &viewport_matrix, PolygonSink &sink);
+
+ class VoronoiVectorizer : public ImageVectorizer {
+ public:
+ VoronoiVectorizer(grid_type grid, bool relax=true) : m_relax(relax), m_grid_type(grid) {}
+
+ 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);
+ private:
+ double m_relax;
+ grid_type m_grid_type;
+ };
}