BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
BackgroundItems.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/BackgroundItems.h
6 //! @brief Defines BackgroundItem classes
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_BACKGROUNDITEMS_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_BACKGROUNDITEMS_H
17 
19 
20 class IBackground;
21 
22 class BA_CORE_API_ BackgroundItem : public SessionItem {
23 public:
24  explicit BackgroundItem(const QString& model_type);
25 
26  virtual std::unique_ptr<IBackground> createBackground() const = 0;
27 };
28 
29 class BA_CORE_API_ BackgroundNoneItem : public BackgroundItem {
30 public:
32  std::unique_ptr<IBackground> createBackground() const;
33 };
34 
35 class BA_CORE_API_ ConstantBackgroundItem : public BackgroundItem {
36 public:
37  static const QString P_VALUE;
38 
40  std::unique_ptr<IBackground> createBackground() const;
41 };
42 
43 class BA_CORE_API_ PoissonNoiseBackgroundItem : public BackgroundItem {
44 public:
46  std::unique_ptr<IBackground> createBackground() const;
47 };
48 
49 #endif // BORNAGAIN_GUI_COREGUI_MODELS_BACKGROUNDITEMS_H
Defines class SessionItem.
virtual std::unique_ptr< IBackground > createBackground() const =0
static const QString P_VALUE
Interface for a simulating the background signal.
Definition: IBackground.h:26
std::string model_type
Definition: types.h:23