BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
FitComparisonController.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/PlotComparison/FitComparisonController.h
6 //! @brief Defines class FitComparisonController
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_PLOTCOMPARISON_FITCOMPARISONCONTROLLER_H
16 #define BORNAGAIN_GUI_VIEW_PLOTCOMPARISON_FITCOMPARISONCONTROLLER_H
17 
18 #include <QObject>
19 
20 class DataItem;
21 class IntensityDataItem;
22 class JobItem;
23 class PropertyRepeater;
24 class SessionModel;
25 class SpecularDataItem;
26 
27 //! Provides synchronization between certain properties of fit related IntensityDataItems.
28 //! Used solely in FitComparisonWidget.
29 
30 class FitComparisonController2D : public QObject {
31 public:
32  class DiffItemController;
33 
34  explicit FitComparisonController2D(QObject* parent = nullptr);
35 
37 
38  void setItem(JobItem* job_item);
39  void updateDiffData();
40  void resetDiffItem();
41 
42  void clear();
43 
44 private:
50 };
51 
52 #endif // BORNAGAIN_GUI_VIEW_PLOTCOMPARISON_FITCOMPARISONCONTROLLER_H
Abstract base class for IntensityDataItem and SpecularDataItem. Owns one simulated data set of type D...
Definition: DataItem.h:34
Provides synchronization between certain properties of fit related IntensityDataItems....
void setItem(JobItem *job_item)
DiffItemController * m_diff_item_controller
PropertyRepeater * m_appearanceRepeater
FitComparisonController2D(QObject *parent=nullptr)
Tracks property change (axes range, units etc) for the collection of IntensityDataItems and sets same...
Base class for a GUI data collection. A collection is e.g. all real data (RealDataModel)....
Definition: SessionModel.h:42