API Documentation
Loading...
Searching...
No Matches
ImageVectorizationEngine.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/String.h>
4#include <NDEVR/RGBColor.h>
5#include <NDEVR/Polygon.h>
6#include <NDEVR/TranslatedString.h>
7#include <functional>
8namespace NDEVR
9{
10 class ProgressInfo;
12 {
15 std::function<void(RGBColor color, Buffer<Polygon<fltp08>> polgon_add)> add_polygon;
16 std::function<void(bool)> finished_callback;
17 };
19 {
20 protected:
21 explicit ImageVectorizationEngine(const TranslatedString& name, const String& id);
22
23 public:
24
25 static const Dictionary<String, ImageVectorizationEngine*>& AvailableVectorizors();
26 static void AddAvailableEngine(ImageVectorizationEngine* filter);
27
28
29 virtual bool vectorize(VectorizeImageParams&) = 0;
30 [[nodiscard]] const TranslatedString& name() const { return m_name; }
31 [[nodiscard]] const String& id() const { return m_id; }
32 protected:
35 protected:
37 };
38}
#define NDEVR_DESIGN_API
Definition DLLInfo.h:77
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition Dictionary.h:48
Definition ImageVectorizationEngine.h:19
String m_id
Definition ImageVectorizationEngine.h:34
static Dictionary< String, ImageVectorizationEngine * > s_global_engines
Definition ImageVectorizationEngine.h:36
const String & id() const
Definition ImageVectorizationEngine.h:31
TranslatedString m_name
Definition ImageVectorizationEngine.h:33
virtual bool vectorize(VectorizeImageParams &)=0
const TranslatedString & name() const
Definition ImageVectorizationEngine.h:30
An N-sided polygon.
Definition Polygon.hpp:58
Definition ProgressInfo.hpp:43
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
Definition String.h:40
Definition TranslatedString.h:9
Definition ACIColor.h:37
Definition ImageVectorizationEngine.h:12
ProgressInfo * log
Definition ImageVectorizationEngine.h:14
std::function< void(bool)> finished_callback
Definition ImageVectorizationEngine.h:16
std::function< void(RGBColor color, Buffer< Polygon< fltp08 > > polgon_add)> add_polygon
Definition ImageVectorizationEngine.h:15
String input_image
Definition ImageVectorizationEngine.h:13