15 #ifndef BORNAGAIN_GUI_VIEW_FIT_GUIFITOBSERVER_H
16 #define BORNAGAIN_GUI_VIEW_FIT_GUIFITOBSERVER_H
20 #include <condition_variable>
37 void update(
const FitObjective* subject);
Defines class FitProgressInfo.
The FitProgressInfo class contains all essential information about fit progress. It is send from GUIF...
Serves as observer for FitObjective and saves fit iteration data for later display in GUI widgets.
std::condition_variable m_on_finish_notifier
void setInterval(int val)
void finishedPlotting()
Informs observer that FitSuiteWidget has finished plotting and is ready for next plot.
bool is_suitable_iteration(const FitObjective *fitSuite) const
Returns true if data could be plotted, when there are resources for it.
bool is_obligatory_iteration(const FitObjective *fitSuite) const
Returns true if given iteration should be obligary plotted.
FitProgressInfo m_iteration_info
FitProgressInfo progressInfo()
GUIFitObserver(QObject *parent=nullptr)
bool m_block_update_plots
void update(const FitObjective *subject)
~GUIFitObserver() override
std::mutex m_update_plot_mutex