#include <algorithm.h>
Inherits QThread.
Inherited by TestAlgorithm, and ThresholdAlgorithm.
Inheritance diagram for Algorithm:
Public Slots | |
void | cancel () |
Signals | |
void | datasetChangedSignal (dataset_key_type const &dataset_key) |
Public Member Functions | |
Algorithm () | |
virtual | ~Algorithm () |
void | run ()=0 |
void | setConfiguration (imedgine::configuration_pointer_type configuration) |
Protected Member Functions | |
Algorithm (Algorithm const &src) | |
Protected Attributes | |
bool | do_cancel_ |
imedgine::configuration_pointer_type | configuration_ |
Provides a run method which has to be overloaded as well as a slot for cancelling and a signal for sending out progress events.
Christian Koerner (christian.koerner@imedgine.org)
Alexander Lex (alexander.lex@imedgine.org)
Marc Streit (marc.streit@imedgine.org)
Martin Reininger (martin.reininger@imedgine.org)
Definition at line 49 of file algorithm.h.
|
Constructor Definition at line 21 of file algorithm.cpp. |
|
Destructor Definition at line 34 of file algorithm.cpp. |
|
Copy constructor Definition at line 28 of file algorithm.cpp. |
|
Called if the algorithm receives a cancel event. Implementors have to cancel the algorithm's processing. TODO success/failure of cancel? via progress? Definition at line 54 of file algorithm.cpp. References Algorithm::do_cancel_. |
|
This signal is to be emitted by the algorithm implementor to notify that a dataset changed and thus trigger and update of the dependent views of the dataset (to show intermediate results)
|
|
Execute the algorithm. Has to be implemented by subclasses. Implemented in TestAlgorithm, and ThresholdAlgorithm. |
|
Sets the configuration of this particular algorithm.
Definition at line 47 of file algorithm.cpp. References Algorithm::configuration_. |