Engauge Digitizer 2
Loading...
Searching...
No Matches
DlgFilterThread.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef DLG_FILTER_THREAD_H
8#define DLG_FILTER_THREAD_H
9
10#include "DlgFilterWorker.h"
11#include <QObject>
12#include <QPixmap>
13#include <QThread>
14
16
18class DlgFilterThread : public QThread
19{
20 Q_OBJECT;
21
22public:
24 DlgFilterThread(const QPixmap &pixmapOriginal,
25 QRgb rgbBackground,
26 DlgSettingsColorFilter &dlgSettingsColorFilter);
27
29 virtual void run();
30
31signals:
33 void signalTransferPiece (int xLeft,
34 QImage image);
35
36private:
38
39 QPixmap m_pixmapOriginal;
40 QRgb m_rgbBackground;
41
42 DlgSettingsColorFilter &m_dlgSettingsColorFilter;
43
44 // Worker must be created in the run method of this thread so it belongs to this thread rather than the GUI thread that called it
45 DlgFilterWorker *m_dlgFilterWorker;
46};
47
48#endif // DLG_FILTER_THREAD_H
Class for processing new filter settings. This is based on http://blog.debao.me/2013/08/how-to-use-qt...
virtual void run()
Run this thread.
void signalTransferPiece(int xLeft, QImage image)
Send a processed vertical piece of the original pixmap. The destination is between xLeft and xLeft+pi...
Class for processing new filter settings. This is based on http://blog.debao.me/2013/08/how-to-use-qw...
Dialog for editing filtering settings.