1#ifndef ALGORITHMEXECUTOR_H
2#define ALGORITHMEXECUTOR_H
4#include "progressable.h"
5#include "modelinputpictures.h"
6#include "algorithmthread.h"
7#include "samplethread.h"
8#include "settingsthread.h"
9#include "algorithmthread.h"
10#include "applicationsettings.h"
11#include "stringcontainer.h"
14#include <QtConcurrent/QtConcurrent>
16#include <QFutureWatcher>
20 std::vector<uint> images;
82 ALGO_DATA prepareAlgoStart(
int pluginIdx);
84 int m_pluginIndex = 0;
85 volatile bool m_stopped =
false;
86 bool m_algorithmFinished =
false;
87 bool m_blurFinished =
false;
90 QThread *m_currentThread =
nullptr;
92 QString m_currentOperation =
"";
93 int m_operationProgress = 0;
The AlgorithmExecutor class is used to start the execution of a plugin(algorithm) and to provide sign...
Definition algorithmexecutor.h:36
void slot_pluginFinished()
slot_pluginFinished gets invoked by Thread emitting "Finished(..)", meaning it is finished with its w...
Definition algorithmexecutor.cpp:66
int startGenerateSettings(int pluginIdx)
startGenerateSettings prepares data for generateSettings and starts its execution on new Thread
Definition algorithmexecutor.cpp:32
void sig_algorithmStarted()
sig_algorithmStarted signals start of plugin (unused
void slot_abort()
slot_abort gets called by GUI to start aborting the plugin
Definition algorithmexecutor.cpp:50
void sig_pluginFinished(int index)
sig_algorithmFinished gets emitted once the plugin finished and all results are saved to the model
void sig_algorithmAborted()
sig_algorithmAborted signals completed abortion of plugin
int startSampling(int pluginIdx)
startAlgorithm prepares data for plugin and starts its execution on new Thread
Definition algorithmexecutor.cpp:9
The Progressable interface is used to by multithreaded actions such as sampling or exporting to repor...
Definition progressable.h:18
The SettingsThread class is a derivived class of Algorithmthread and is used to execute the sampling ...
Definition samplethread.h:19
The SettingsThread class is a derivived class of Algorithmthread and is used to execute the generateS...
Definition settingsthread.h:19
Definition algorithmexecutor.h:18