dust3d/application/sources/turnaround_loader.h

29 lines
605 B
C
Raw Normal View History

#ifndef DUST3D_APPLICATION_TURNAROUND_LOADER_H_
#define DUST3D_APPLICATION_TURNAROUND_LOADER_H_
#include <QImage>
2018-03-13 06:39:36 +00:00
#include <QObject>
#include <QSize>
#include <QString>
2018-03-13 06:39:36 +00:00
class TurnaroundLoader : public QObject {
2018-03-13 06:39:36 +00:00
Q_OBJECT
public:
TurnaroundLoader(const QString& filename, QSize viewSize);
TurnaroundLoader(const QImage& image, QSize viewSize);
2018-03-13 06:39:36 +00:00
~TurnaroundLoader();
QImage* takeResultImage();
2018-03-13 06:39:36 +00:00
signals:
void finished();
public slots:
void process();
2018-03-13 06:39:36 +00:00
private:
QImage* m_resultImage = nullptr;
QImage m_inputImage;
2018-03-13 06:39:36 +00:00
QString m_filename;
QSize m_viewSize;
};
#endif