iVS3D v2.0.0
Loading...
Searching...
No Matches
AlgorithmExecutor Class Reference

The AlgorithmExecutor class is used to start the execution of a plugin(algorithm) and to provide signal&slots for the Thread executing the plugin. More...

#include <algorithmexecutor.h>

Inheritance diagram for AlgorithmExecutor:
Progressable

Public Slots

void slot_abort ()
 slot_abort gets called by GUI to start aborting the plugin
 
void slot_pluginFinished ()
 slot_pluginFinished gets invoked by Thread emitting "Finished(..)", meaning it is finished with its work, method saves results of plugin into the model
 
- Public Slots inherited from Progressable
void slot_makeProgress (int progress, QString currentOperation)
 [slot] slot_makeProgress used to delegate the progression to an attached view
 
void slot_displayMessage (QString message)
 [slot] slot_displayMessage used to delegate a message to an attached view
 

Signals

void sig_algorithmStarted ()
 sig_algorithmStarted signals start of plugin (unused
 
void sig_algorithmAborted ()
 sig_algorithmAborted signals completed abortion of plugin
 
void sig_pluginFinished (int index)
 sig_algorithmFinished gets emitted once the plugin finished and all results are saved to the model
 
- Signals inherited from Progressable
void sig_progress (int progress, QString currentOp)
 [signal] sig_progress is emitted if a thread makes a progress and wants to report it.
 
void sig_message (QString message)
 [signal] sig_message is emitted if a thread wants to display a message.
 

Public Member Functions

 AlgorithmExecutor (ModelInputPictures *mip)
 AlgorithmExecutor sets DataManager member variable.
 
int startSampling (int pluginIdx)
 startAlgorithm prepares data for plugin and starts its execution on new Thread
 
int startGenerateSettings (int pluginIdx)
 startGenerateSettings prepares data for generateSettings and starts its execution on new Thread
 

Detailed Description

The AlgorithmExecutor class is used to start the execution of a plugin(algorithm) and to provide signal&slots for the Thread executing the plugin.

Author
Dominic Zahn
Date
2021/02/18

Constructor & Destructor Documentation

◆ AlgorithmExecutor()

AlgorithmExecutor::AlgorithmExecutor ( ModelInputPictures mip)
explicit

AlgorithmExecutor sets DataManager member variable.

Parameters
dataManagergiven DataManager to use model-data

Member Function Documentation

◆ startGenerateSettings()

int AlgorithmExecutor::startGenerateSettings ( int  pluginIdx)

startGenerateSettings prepares data for generateSettings and starts its execution on new Thread

Parameters
pluginIdxselected plugin which gets executed
Returns
returns error code, 0 = no errors

◆ startSampling()

int AlgorithmExecutor::startSampling ( int  pluginIdx)

startAlgorithm prepares data for plugin and starts its execution on new Thread

Parameters
useBoundstrue = respect boundaries and limit image-list accordingly
Returns
returns error code, 0 = no errors

The documentation for this class was generated from the following files: