Engauge Digitizer
2
Loading...
Searching...
No Matches
Dlg
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
15
class
DlgSettingsColorFilter
;
16
18
class
DlgFilterThread
:
public
QThread
19
{
20
Q_OBJECT;
21
22
public
:
24
DlgFilterThread
(
const
QPixmap &pixmapOriginal,
25
QRgb rgbBackground,
26
DlgSettingsColorFilter
&dlgSettingsColorFilter);
27
29
virtual
void
run
();
30
31
signals:
33
void
signalTransferPiece
(
int
xLeft,
34
QImage image);
35
36
private
:
37
DlgFilterThread
();
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
DlgFilterWorker.h
DlgFilterThread
Class for processing new filter settings. This is based on http://blog.debao.me/2013/08/how-to-use-qt...
Definition
DlgFilterThread.h:19
DlgFilterThread::run
virtual void run()
Run this thread.
Definition
DlgFilterThread.cpp:20
DlgFilterThread::signalTransferPiece
void signalTransferPiece(int xLeft, QImage image)
Send a processed vertical piece of the original pixmap. The destination is between xLeft and xLeft+pi...
DlgFilterWorker
Class for processing new filter settings. This is based on http://blog.debao.me/2013/08/how-to-use-qw...
Definition
DlgFilterWorker.h:23
DlgSettingsColorFilter
Dialog for editing filtering settings.
Definition
DlgSettingsColorFilter.h:30
Generated on Wed Aug 3 2022 00:00:00 for Engauge Digitizer by
1.10.0