BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
LayerItem.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/LayerItem.h
6 //! @brief Defines class LayerItem
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_MODELS_LAYERITEM_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_LAYERITEM_H
17 
19 
20 class BA_CORE_API_ LayerItem : public SessionGraphicsItem {
21 public:
22  static const QString P_THICKNESS;
23  static const QString P_ROUGHNESS;
24  static const QString P_MATERIAL;
25  static const QString P_NSLICES;
26  static const QString T_LAYOUTS;
27  LayerItem();
28 
29  QVector<SessionItem*> materialPropertyItems();
30 
31 private:
32  void updateAppearance(SessionItem* new_parent);
33 };
34 
35 #endif // BORNAGAIN_GUI_COREGUI_MODELS_LAYERITEM_H
Defines class SessionGraphicsItem.
static const QString T_LAYOUTS
Definition: LayerItem.h:26
static const QString P_MATERIAL
Definition: LayerItem.h:24
static const QString P_THICKNESS
Definition: LayerItem.h:22
static const QString P_ROUGHNESS
Definition: LayerItem.h:23
static const QString P_NSLICES
Definition: LayerItem.h:25
QVector< SessionItem * > materialPropertyItems(SessionItem *item)
Gather material property items from a given item.