BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
RealSpaceMesoCrystalUtils.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Realspace/RealSpaceMesoCrystalUtils.h
6 //! @brief Defines GUI::RealSpace::BuilderUtils namespace
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_VIEW_REALSPACE_REALSPACEMESOCRYSTALUTILS_H
16 #define BORNAGAIN_GUI_VIEW_REALSPACE_REALSPACEMESOCRYSTALUTILS_H
17 
19 #include "Sample/Scattering/Rotations.h"
20 #include <QVector3D>
21 #include <functional>
22 
23 class Particle;
24 class MesoCrystal;
25 class MesoCrystalItem;
27 
29 public:
30  ~RealSpaceMesoCrystal() = default;
31 
32  RealSpaceMesoCrystal(const MesoCrystalItem* mesoCrystalItem, double total_abundance,
33  const QVector3D& origin,
34  std::function<QColor(const QString&)> fnColorFromMaterialName);
35 
37 
38 private:
41  QVector3D m_origin;
42  std::unique_ptr<GUI::RealSpace::BuilderUtils> m_builderUtils;
43 };
44 
45 #endif // BORNAGAIN_GUI_VIEW_REALSPACE_REALSPACEMESOCRYSTALUTILS_H
Defines GUI::RealSpace::BuilderUtils namespace.
std::unique_ptr< GUI::RealSpace::BuilderUtils > m_builderUtils
RealSpaceMesoCrystal(const MesoCrystalItem *mesoCrystalItem, double total_abundance, const QVector3D &origin, std::function< QColor(const QString &)> fnColorFromMaterialName)
Particle3DContainer populateMesoCrystal()
~RealSpaceMesoCrystal()=default
const MesoCrystalItem * m_mesoCrystalItem