BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
MaterialItem.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/MaterialItem.h
6 //! @brief Defines class MaterialItem
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_MATERIALITEM_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_MATERIALITEM_H
17 
19 
20 class Material;
21 
22 class BA_CORE_API_ MaterialItem : public SessionItem {
23 public:
24  static const QString P_COLOR;
25  static const QString P_MATERIAL_DATA;
26  static const QString P_MAGNETIZATION;
27  static const QString P_IDENTIFIER;
28 
29  MaterialItem();
30 
31  void setRefractiveData(double delta, double beta);
32  void setSLDData(double sld_real, double sld_imag);
33 
34  QString identifier() const;
35  QColor color() const;
36  std::unique_ptr<Material> createMaterial() const;
37 };
38 
39 #endif // BORNAGAIN_GUI_COREGUI_MODELS_MATERIALITEM_H
Defines class SessionItem.
static const QString P_MAGNETIZATION
Definition: MaterialItem.h:26
static const QString P_MATERIAL_DATA
Definition: MaterialItem.h:25
static const QString P_IDENTIFIER
Definition: MaterialItem.h:27
static const QString P_COLOR
Definition: MaterialItem.h:24
A wrapper for underlying material implementation.
Definition: Material.h:29