BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
experimentaldataitems.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/model/experimentaldataitems.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_MODEL_EXPERIMENTALDATAITEMS_H
16 #define BORNAGAIN_GUI2_MODEL_EXPERIMENTALDATAITEMS_H
17 
18 #include "darefl_export.h"
21 
22 namespace ModelView {
23 class Data1DItem;
24 }
25 
26 namespace gui2 {
27 
28 //! Holds a collection of GraphItem's for simultaneous plotting, as well as all information
29 //! related to plotting properties. Used in the context of importing of 1D data. Serves as an input
30 //! for GraphCanvas widget.
31 
32 class DAREFLCORE_EXPORT CanvasItem : public ModelView::GraphViewportItem {
33 public:
34  CanvasItem();
35 
36 protected:
37  std::pair<double, double> data_yaxis_range() const override;
38 };
39 
40 //! Holds a collection of CanvasItem.
41 //! Used in the context of importing of 1D data, when user groups different GraphItem's
42 //! on different canvas for later plotting.
43 
44 class DAREFLCORE_EXPORT CanvasContainerItem : public ModelView::ContainerItem {
45 public:
47 
48  std::vector<CanvasItem*> canvasItems() const;
49 };
50 
51 //! Holds a collection of Data1DItem's with raw data as imported by the user.
52 //! The order of items in the collection chronologically corresponds to user activity.
53 //! All other plotting entities (GraphItems) are linked to data items in this container.
54 
55 class DAREFLCORE_EXPORT ExperimentalDataContainerItem : public ModelView::ContainerItem {
56 public:
58 
59  std::vector<ModelView::Data1DItem*> dataItems() const;
60 };
61 
62 } // namespace gui2
63 
64 #endif // BORNAGAIN_GUI2_MODEL_EXPERIMENTALDATAITEMS_H
Simple container to store any type of children.
Definition: containeritem.h:25
2D viewport specialized for showing multiple GraphItem's.
Holds a collection of CanvasItem.
Holds a collection of GraphItem's for simultaneous plotting, as well as all information related to pl...
Holds a collection of Data1DItem's with raw data as imported by the user.
Defines class CLASS?
Defines class CLASS?
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