BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Lattice2DItems.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/Lattice2DItems.h
6 //! @brief Defines classes Lattice2DItems
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_LATTICE2DITEMS_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_LATTICE2DITEMS_H
17 
19 class Lattice2D;
20 
21 class BA_CORE_API_ Lattice2DItem : public SessionItem {
22 public:
23  static const QString P_LATTICE_ROTATION_ANGLE;
24  explicit Lattice2DItem(const QString& modelType);
25  virtual std::unique_ptr<Lattice2D> createLattice() const = 0;
26  double unitCellArea() const;
27 };
28 
29 class BA_CORE_API_ BasicLattice2DItem : public Lattice2DItem {
30 public:
31  static const QString P_LATTICE_LENGTH1;
32  static const QString P_LATTICE_LENGTH2;
33  static const QString P_LATTICE_ANGLE;
35  std::unique_ptr<Lattice2D> createLattice() const;
36 };
37 
38 class BA_CORE_API_ SquareLattice2DItem : public Lattice2DItem {
39 public:
40  static const QString P_LATTICE_LENGTH;
42  std::unique_ptr<Lattice2D> createLattice() const;
43 };
44 
45 class BA_CORE_API_ HexagonalLattice2DItem : public Lattice2DItem {
46 public:
47  static const QString P_LATTICE_LENGTH;
49  std::unique_ptr<Lattice2D> createLattice() const;
50 };
51 
52 #endif // BORNAGAIN_GUI_COREGUI_MODELS_LATTICE2DITEMS_H
Defines class SessionItem.
static const QString P_LATTICE_ANGLE
static const QString P_LATTICE_LENGTH2
static const QString P_LATTICE_LENGTH1
static const QString P_LATTICE_LENGTH
static const QString P_LATTICE_ROTATION_ANGLE
virtual std::unique_ptr< Lattice2D > createLattice() const =0
A two-dimensional Bravais lattice.
Definition: Lattice2D.h:23
static const QString P_LATTICE_LENGTH