BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
sampleitems.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/model/sampleitems.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_SAMPLEITEMS_H
16 #define BORNAGAIN_GUI2_MODEL_SAMPLEITEMS_H
17 
18 //! @file gui2/model/sampleitems.h
19 //! Collection of layer and multi-layer items to populate SampleModel.
20 
21 #include "darefl_export.h"
23 
24 namespace gui2 {
25 
26 //! Item to represent the roughness of the layer.
27 
28 class DAREFLCORE_EXPORT RoughnessItem : public ModelView::CompoundItem {
29 public:
30  static inline const std::string P_SIGMA = "P_SIGMA";
31  static inline const std::string P_HURST = "P_HURST";
32  static inline const std::string P_LATERAL_CORR_LENGTH = "P_LATERAL_CORR_LENGTH";
33 
34  RoughnessItem();
35 };
36 
37 //! Layer with name, thickness and reference to material.
38 
39 class DAREFLCORE_EXPORT LayerItem : public ModelView::CompoundItem {
40 public:
41  static inline const std::string P_NAME = "P_NAME";
42  static inline const std::string P_MATERIAL = "P_MATERIAL";
43  static inline const std::string P_THICKNESS = "P_THICKNESS";
44  static inline const std::string P_ROUGHNESS = "P_ROUGHNESS";
45 
46  LayerItem();
47 };
48 
49 //! Multi layer capable of holding layers and other multi-layers.
50 
51 class DAREFLCORE_EXPORT MultiLayerItem : public ModelView::CompoundItem {
52 public:
53  static inline const std::string P_NAME = "P_NAME";
54  static inline const std::string T_LAYERS = "T_LAYERS";
55  static inline const std::string P_NREPETITIONS = "P_NREPETITIONS";
56 
58 
59  void activate() override;
60 
61 private:
62  void update_layer_appearance();
63 };
64 
65 } // namespace gui2
66 
67 #endif // BORNAGAIN_GUI2_MODEL_SAMPLEITEMS_H
Complex item holding mixed SessionItem types (single properties and other CompountItems).
Definition: compounditem.h:28
Layer with name, thickness and reference to material.
Definition: sampleitems.h:39
Multi layer capable of holding layers and other multi-layers.
Definition: sampleitems.h:51
Item to represent the roughness of the layer.
Definition: sampleitems.h:28
Defines class CLASS?
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20