BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
FitWorker.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Fit/FitWorker.h
6 //! @brief Implements class FitWorker
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_VIEW_FIT_FITWORKER_H
16 #define BORNAGAIN_GUI_VIEW_FIT_FITWORKER_H
17 
18 #include <QObject>
19 #include <memory>
20 
22 
23 class FitWorker : public QObject {
24  Q_OBJECT
25 
26 public:
27  FitWorker(std::shared_ptr<FitObjectiveBuilder> suite) { m_fit_objective = suite; }
28 
29 public slots:
30 
31  void startFit();
32 
33  void interruptFitting();
34 
35 signals:
36 
37  void started();
38 
39  void finished();
40 
41  void error(const QString& message);
42 
43 private:
44  std::shared_ptr<FitObjectiveBuilder> m_fit_objective;
45 };
46 
47 #endif // BORNAGAIN_GUI_VIEW_FIT_FITWORKER_H
std::shared_ptr< FitObjectiveBuilder > m_fit_objective
Definition: FitWorker.h:44
void interruptFitting()
Definition: FitWorker.cpp:30
void startFit()
Definition: FitWorker.cpp:19
void started()
void finished()
void error(const QString &message)
FitWorker(std::shared_ptr< FitObjectiveBuilder > suite)
Definition: FitWorker.h:27