BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ResolutionFunctionItems.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/ResolutionFunctionItems.h
6 //! @brief Defines family of ResolutionFunctionItem
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_RESOLUTIONFUNCTIONITEMS_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_RESOLUTIONFUNCTIONITEMS_H
17 
19 #include <memory>
20 
22 
23 class BA_CORE_API_ ResolutionFunctionItem : public SessionItem {
24 
25 public:
26  explicit ResolutionFunctionItem(const QString& name);
28 
29  virtual std::unique_ptr<IResolutionFunction2D>
30  createResolutionFunction(double scale = 1.0) const = 0;
31 };
32 
34 
35 public:
37  std::unique_ptr<IResolutionFunction2D> createResolutionFunction(double scale = 1.0) const;
38 };
39 
41 
42 public:
43  static const QString P_SIGMA_X;
44  static const QString P_SIGMA_Y;
46  std::unique_ptr<IResolutionFunction2D> createResolutionFunction(double scale = 1.0) const;
47 };
48 
49 #endif // BORNAGAIN_GUI_COREGUI_MODELS_RESOLUTIONFUNCTIONITEMS_H
Defines class SessionItem.
Interface providing two-dimensional resolution function.
virtual std::unique_ptr< IResolutionFunction2D > createResolutionFunction(double scale=1.0) const =0
QString const & name(EShape k)
Definition: particles.cpp:21