Entropy Piano Tuner
1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
|
Adapter for starting and stopping the calculation process. More...
#include <calculationadapter.h>
Public Member Functions | |
CalculationAdapter (Core *core) | |
Constructor, copies a pointer pointing to the core. More... | |
virtual | ~CalculationAdapter () |
Empty virtual destructor. More... | |
virtual void | startCalculation (const std::string &algorithmName) |
Function called by the GUI to start the calculation of the tuning curve. More... | |
virtual void | cancelCalculation () |
Function called by the GUI to interrupt or stop the calculation thread. More... | |
std::vector< std::string > | getAvailableAlgorithms () const |
Get a list of available tuning algorithms. More... | |
Private Attributes | |
Core * | mCore |
Private pointer to the core. More... | |
Adapter for starting and stopping the calculation process.
This adapter is part of the interface between the core and the GUI. It allows the GUI to start and to interrupt (stop) the calculation process. The adapter is reimplemented in Qt as CalculationProgressGroup.
The adapter calls several functions of the Singleton-Calculationmanager.
Definition at line 46 of file calculationadapter.h.
CalculationAdapter::CalculationAdapter | ( | Core * | core | ) |
Constructor, copies a pointer pointing to the core.
core | : Pointer to the instance of the core. |
Definition at line 38 of file calculationadapter.cpp.
|
inlinevirtual |
Empty virtual destructor.
Definition at line 50 of file calculationadapter.h.
|
virtual |
Function called by the GUI to interrupt or stop the calculation thread.
Definition at line 72 of file calculationadapter.cpp.
std::vector< std::string > CalculationAdapter::getAvailableAlgorithms | ( | ) | const |
Get a list of available tuning algorithms.
Definition at line 87 of file calculationadapter.cpp.
|
virtual |
Function called by the GUI to start the calculation of the tuning curve.
Definition at line 53 of file calculationadapter.cpp.
|
private |
Private pointer to the core.
Definition at line 58 of file calculationadapter.h.