2021-11-18 14:58:01 +00:00
|
|
|
#ifndef DUST3D_APPLICATION_TURNAROUND_LOADER_H_
|
|
|
|
#define DUST3D_APPLICATION_TURNAROUND_LOADER_H_
|
|
|
|
|
2022-10-18 09:35:04 +00:00
|
|
|
#include <QImage>
|
2018-03-13 06:39:36 +00:00
|
|
|
#include <QObject>
|
|
|
|
#include <QSize>
|
2022-10-18 09:35:04 +00:00
|
|
|
#include <QString>
|
2018-03-13 06:39:36 +00:00
|
|
|
|
2022-10-18 09:35:04 +00:00
|
|
|
class TurnaroundLoader : public QObject {
|
2018-03-13 06:39:36 +00:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2022-10-18 09:35:04 +00:00
|
|
|
TurnaroundLoader(const QString& filename, QSize viewSize);
|
|
|
|
TurnaroundLoader(const QImage& image, QSize viewSize);
|
2018-03-13 06:39:36 +00:00
|
|
|
~TurnaroundLoader();
|
2022-10-18 09:35:04 +00:00
|
|
|
QImage* takeResultImage();
|
2018-03-13 06:39:36 +00:00
|
|
|
signals:
|
|
|
|
void finished();
|
|
|
|
public slots:
|
|
|
|
void process();
|
2022-10-18 09:35:04 +00:00
|
|
|
|
2018-03-13 06:39:36 +00:00
|
|
|
private:
|
2022-10-18 09:35:04 +00:00
|
|
|
QImage* m_resultImage = nullptr;
|
2018-04-07 08:44:39 +00:00
|
|
|
QImage m_inputImage;
|
2018-03-13 06:39:36 +00:00
|
|
|
QString m_filename;
|
|
|
|
QSize m_viewSize;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|