29 lines
605 B
C++
29 lines
605 B
C++
#ifndef DUST3D_APPLICATION_TURNAROUND_LOADER_H_
|
|
#define DUST3D_APPLICATION_TURNAROUND_LOADER_H_
|
|
|
|
#include <QImage>
|
|
#include <QObject>
|
|
#include <QSize>
|
|
#include <QString>
|
|
|
|
class TurnaroundLoader : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
TurnaroundLoader(const QString& filename, QSize viewSize);
|
|
TurnaroundLoader(const QImage& image, QSize viewSize);
|
|
~TurnaroundLoader();
|
|
QImage* takeResultImage();
|
|
signals:
|
|
void finished();
|
|
public slots:
|
|
void process();
|
|
|
|
private:
|
|
QImage* m_resultImage = nullptr;
|
|
QImage m_inputImage;
|
|
QString m_filename;
|
|
QSize m_viewSize;
|
|
};
|
|
|
|
#endif
|