BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FitComparisonWidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/FitWidgets/FitComparisonWidget.h
6 //! @brief Defines class FitComparisonWidget
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_COREGUI_VIEWS_FITWIDGETS_FITCOMPARISONWIDGET_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_FITWIDGETS_FITCOMPARISONWIDGET_H
17 
19 #include <QMap>
20 
21 class JobItem;
22 class IntensityDataItem;
23 class ColorMapCanvas;
24 class SessionModel;
25 class FitFlowWidget;
26 class PlotStatusLabel;
27 class QAction;
29 class PropertyRepeater;
31 
32 //! The FitComparisonWidget class plots realdata, simulated data and relative difference map
33 //! during the course of the fit.
34 
36  Q_OBJECT
37 
38 public:
39  explicit FitComparisonWidget(QWidget* parent = nullptr);
41 
42  virtual QList<QAction*> actionList() override;
43 
44 private slots:
45  void onResetViewAction();
46 
47 protected:
48  void subscribeToItem() override;
49  void unsubscribeFromItem() override;
50 
51 private:
52  JobItem* jobItem();
56 
63 
66 };
67 
68 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_FITWIDGETS_FITCOMPARISONWIDGET_H
Defines class ItemComboWidget.
The ColorMapCanvas class contains ColorMap for intensity data presentation, and provide control of fo...
Provides synchronization between certain properties of fit related IntensityDataItems.
The FitComparisonWidget class plots realdata, simulated data and relative difference map during the c...
PlotStatusLabel * m_statusLabel
FitFlowWidget * m_fitFlowWidget
ColorMapCanvas * m_simulatedDataPlot
IntensityDataPropertyWidget * m_propertyWidget
IntensityDataItem * diffItem()
ColorMapCanvas * m_realDataPlot
FitComparisonWidget(QWidget *parent=nullptr)
IntensityDataItem * realDataItem()
IntensityDataItem * simulatedDataItem()
void subscribeToItem() override
FitComparisonController2D * m_comparisonController
~FitComparisonWidget() override
virtual QList< QAction * > actionList() override
void unsubscribeFromItem() override
ColorMapCanvas * m_relativeDiffPlot
The FitFlowWidget class is intended for showing chi2 .vs interation count dependency.
Definition: FitFlowWidget.h:26
The IntensityDataPropertyWidget shows ComponentEditor for given IntensityDataItem.
The PlotStatusLabel class shows status string as reported by DescriptedPlot in a frame.
Tracks property change (axes range, units etc) for the collection of IntensityDataItems and sets same...
The SessionItemWidget class is a base for all widgets representing the content of SessionItem.