BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
graphcanvaswidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/importdataview/graphcanvaswidget.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_IMPORTDATAVIEW_GRAPHCANVASWIDGET_H
16 #define BORNAGAIN_GUI2_IMPORTDATAVIEW_GRAPHCANVASWIDGET_H
17 
18 #include "darefl_export.h"
19 #include <QWidget>
20 
21 namespace ModelView {
22 class GraphCanvas;
23 }
24 
25 namespace gui2 {
26 
27 class CanvasItem;
28 
29 //! Widget to show canvas with graph collection.
30 //! Occupies the right part of ImportDataEditor.
31 
32 class DAREFLCORE_EXPORT GraphCanvasWidget : public QWidget {
33  Q_OBJECT
34 
35 public:
36  GraphCanvasWidget(QWidget* parent = nullptr);
37 
38  void setItem(CanvasItem* canvas_item);
39 
40  void updateViewport();
41 
42 private:
43  ModelView::GraphCanvas* m_graphCanvas{nullptr};
44 };
45 
46 } // namespace gui2
47 
48 #endif // BORNAGAIN_GUI2_IMPORTDATAVIEW_GRAPHCANVASWIDGET_H
Widget to show scientific figure with multiple 1D graphs.
Definition: graphcanvas.h:30
Holds a collection of GraphItem's for simultaneous plotting, as well as all information related to pl...
Widget to show canvas with graph collection.
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