Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
imagetaskexportwidget.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <vector>
5 
6 #include <QWidget>
7 
8 class QEvent;
9 
10 namespace geometrize
11 {
12 struct ShapeResult;
13 }
14 
15 namespace geometrize
16 {
17 
18 namespace task
19 {
20 class ImageTask;
21 }
22 
23 }
24 
25 namespace geometrize
26 {
27 
28 namespace dialog
29 {
30 
34 class ImageTaskExportWidget : public QWidget
35 {
36  Q_OBJECT
37 
38 public:
39  ImageTaskExportWidget(QWidget* parent = nullptr);
40  virtual ~ImageTaskExportWidget();
41 
47  void setImageTask(const task::ImageTask* task, const std::vector<geometrize::ShapeResult>* shapes);
48 
49 protected:
50  void changeEvent(QEvent*) override;
51 
52 private slots:
60 
61 private:
63  std::unique_ptr<ImageTaskExportWidgetImpl> d;
64 };
65 
66 }
67 
68 }
void on_saveImageButton_clicked()
Definition: imagetaskexportwidget.cpp:241
ImageTaskExportWidget(QWidget *parent=nullptr)
Definition: imagetaskexportwidget.cpp:226
The ImageTaskExportWidget implements a widget for accessing and using the image task exporters e...
Definition: imagetaskexportwidget.h:34
void changeEvent(QEvent *) override
Definition: imagetaskexportwidget.cpp:276
virtual ~ImageTaskExportWidget()
Definition: imagetaskexportwidget.cpp:232
void setImageTask(const task::ImageTask *task, const std::vector< geometrize::ShapeResult > *shapes)
setImageTask Sets the current image task used by the export functions.
Definition: imagetaskexportwidget.cpp:236
void on_saveGIFButton_clicked()
Definition: imagetaskexportwidget.cpp:261
void on_saveImagesButton_clicked()
Definition: imagetaskexportwidget.cpp:246
The ImageTask class transforms a source image into a collection of shapes approximating the source im...
Definition: imagetask.h:50
std::unique_ptr< ImageTaskExportWidgetImpl > d
Definition: imagetaskexportwidget.h:62
void on_saveHTML5WebpageButton_clicked()
Definition: imagetaskexportwidget.cpp:266
void on_saveWebGLWebpageButton_clicked()
Definition: imagetaskexportwidget.cpp:271
void on_saveSVGButton_clicked()
Definition: imagetaskexportwidget.cpp:251
void on_saveGeometryDataButton_clicked()
Definition: imagetaskexportwidget.cpp:256