BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
RotationItems.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/RotationItems.h
6 //! @brief Defines class RotationItems
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_ROTATIONITEMS_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_ROTATIONITEMS_H
17 
19 
20 class IRotation;
21 
22 class BA_CORE_API_ RotationItem : public SessionItem {
23 public:
24  explicit RotationItem(const QString& name) : SessionItem(name) {}
25  virtual std::unique_ptr<IRotation> createRotation() const = 0;
26 };
27 
28 class BA_CORE_API_ XRotationItem : public RotationItem {
29 public:
30  static const QString P_ANGLE;
31  XRotationItem();
32  std::unique_ptr<IRotation> createRotation() const;
33 };
34 
35 class BA_CORE_API_ YRotationItem : public RotationItem {
36 public:
37  static const QString P_ANGLE;
38  YRotationItem();
39  std::unique_ptr<IRotation> createRotation() const;
40 };
41 
42 class BA_CORE_API_ ZRotationItem : public RotationItem {
43 public:
44  static const QString P_ANGLE;
45  ZRotationItem();
46  std::unique_ptr<IRotation> createRotation() const;
47 };
48 
49 class BA_CORE_API_ EulerRotationItem : public RotationItem {
50 public:
51  static const QString P_ALPHA;
52  static const QString P_BETA;
53  static const QString P_GAMMA;
55  std::unique_ptr<IRotation> createRotation() const;
56 };
57 
58 #endif // BORNAGAIN_GUI_COREGUI_MODELS_ROTATIONITEMS_H
Defines class SessionItem.
static const QString P_BETA
Definition: RotationItems.h:52
static const QString P_ALPHA
Definition: RotationItems.h:51
static const QString P_GAMMA
Definition: RotationItems.h:53
Abstract base class for rotations.
Definition: Rotations.h:28
virtual std::unique_ptr< IRotation > createRotation() const =0
RotationItem(const QString &name)
Definition: RotationItems.h:24
static const QString P_ANGLE
Definition: RotationItems.h:30
static const QString P_ANGLE
Definition: RotationItems.h:37
static const QString P_ANGLE
Definition: RotationItems.h:44
QString const & name(EShape k)
Definition: particles.cpp:21