Class for processing new filter settings. This is based on http://blog.debao.me/2013/08/how-to-use-qworker-in-the-right-way-part-1/.
More...
#include <DlgFilterWorker.h>
|
| void | slotNewParameters (ColorFilterMode colorFilterMode, double low, double high) |
| | Start processing with a new set of parameters. Any ongoing processing is interrupted when m_filterMode changes. More...
|
| |
|
| void | signalTransferPiece (int xLeft, QImage image) |
| | Send a processed vertical piece of the original pixmap. The destination is between xLeft and xLeft+pixmap.width() More...
|
| |
◆ DlgFilterWorker()
| DlgFilterWorker::DlgFilterWorker |
( |
const QPixmap & |
pixmapOriginal, |
|
|
QRgb |
m_rgbBackground |
|
) |
| |
Single constructor.
Definition at line 14 of file DlgFilterWorker.cpp.
17 m_imageOriginal (pixmapOriginal.toImage()),
18 m_rgbBackground (rgbBackground),
23 m_restartTimer.setSingleShot (
false);
24 connect (&m_restartTimer, SIGNAL (timeout ()),
this, SLOT (slotRestartTimeout()));
◆ signalTransferPiece
| void DlgFilterWorker::signalTransferPiece |
( |
int |
xLeft, |
|
|
QImage |
image |
|
) |
| |
|
signal |
Send a processed vertical piece of the original pixmap. The destination is between xLeft and xLeft+pixmap.width()
◆ slotNewParameters
| void DlgFilterWorker::slotNewParameters |
( |
ColorFilterMode |
colorFilterMode, |
|
|
double |
low, |
|
|
double |
high |
|
) |
| |
|
slot |
Start processing with a new set of parameters. Any ongoing processing is interrupted when m_filterMode changes.
Definition at line 26 of file DlgFilterWorker.cpp.
39 m_inputCommandQueue.push_back (command);
41 if (!m_restartTimer.isActive()) {
The documentation for this class was generated from the following files: