BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
simplotwidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/quicksimeditor/simplotwidget.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI2_QUICKSIMEDITOR_SIMPLOTWIDGET_H
16 #define BORNAGAIN_GUI2_QUICKSIMEDITOR_SIMPLOTWIDGET_H
17 
18 #include "darefl_export.h"
19 #include <QWidget>
20 
21 namespace ModelView {
22 class GraphCanvas;
23 } // namespace ModelView
24 
25 namespace gui2 {
26 
27 class ApplicationModels;
28 
29 //! Presents simulation results together with reference experimental data on two canvas.
30 //! The top canvas contains graphs itself, bottom canvas their relative difference.
31 
32 class DAREFLCORE_EXPORT SimPlotWidget : public QWidget {
33  Q_OBJECT
34 
35 public:
36  SimPlotWidget(QWidget* parent = nullptr);
38 
39  void setModels(ApplicationModels* models);
40 
41  void updateViewport();
42 
44 
45 private:
46  ApplicationModels* m_models{nullptr};
47  ModelView::GraphCanvas* m_specularCanvas{nullptr};
48  ModelView::GraphCanvas* m_diffCanvas{nullptr};
49 };
50 
51 } // namespace gui2
52 
53 #endif // BORNAGAIN_GUI2_QUICKSIMEDITOR_SIMPLOTWIDGET_H
Widget to show scientific figure with multiple 1D graphs.
Definition: graphcanvas.h:30
Main class to holds all models of GUI session.
Presents simulation results together with reference experimental data on two canvas.
Definition: simplotwidget.h:32
materialitems.h Collection of materials to populate MaterialModel.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20