Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
DlgFilterThread.h
1 #ifndef DLG_FILTER_THREAD_H
2 #define DLG_FILTER_THREAD_H
3 
4 #include "DlgFilterWorker.h"
5 #include <QObject>
6 #include <QPixmap>
7 #include <QThread>
8 
10 
12 class DlgFilterThread : public QThread
13 {
14  Q_OBJECT;
15 
16 public:
18  DlgFilterThread(const QPixmap &pixmapOriginal,
19  QRgb rgbBackground,
20  DlgSettingsColorFilter &dlgSettingsColorFilter);
21 
23  virtual void run();
24 
25 signals:
27  void signalTransferPiece (int xLeft,
28  QImage image);
29 
30 private:
32 
33  QPixmap m_pixmapOriginal;
34  QRgb m_rgbBackground;
35 
36  DlgSettingsColorFilter &m_dlgSettingsColorFilter;
37 
38  // 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
39  DlgFilterWorker *m_dlgFilterWorker;
40 };
41 
42 #endif // DLG_FILTER_THREAD_H
Dialog for editing filtering settings.
Class for processing new filter settings. This is based on http://blog.debao.me/2013/08/how-to-use-qt...
Class for processing new filter settings. This is based on http://blog.debao.me/2013/08/how-to-use-qw...
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...