BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
TransformTo3D.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Realspace/TransformTo3D.h
6 //! @brief Defines namespace GUI::View::TransformTo3D
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_TRANSFORMTO3D_H
16 #define BORNAGAIN_GUI_VIEW_REALSPACE_TRANSFORMTO3D_H
17 
18 #include "GUI/ba3d/model/layer.h"
20 #include <heinz/Vectors3D.h>
21 #include <memory>
22 
23 class LayerItem;
24 class ParticleItem;
25 class SessionItem;
26 struct SceneGeometry;
27 class IFormFactor;
28 
29 //! Collection of utility functions to build 3D objects from session items.
30 
32 
33 double visualLayerThickness(const LayerItem& layerItem, const SceneGeometry& sceneGeometry);
34 
35 std::unique_ptr<GUI::RealSpace::Layer> createLayer(const LayerItem& layerItem,
36  const SceneGeometry& sceneGeometry,
37  const QVector3D& origin = {});
38 
39 std::unique_ptr<GUI::RealSpace::Particles::Particle>
40 createParticlefromFormfactor(const IFormFactor* ff);
41 
42 } // namespace GUI::View::TransformTo3D
43 
44 #endif // BORNAGAIN_GUI_VIEW_REALSPACE_TRANSFORMTO3D_H
Base class for a GUI data item.
Definition: SessionItem.h:204
Defines Layer class.
Collection of utility functions to build 3D objects from session items.
Definition: TransformTo3D.h:31
std::unique_ptr< GUI::RealSpace::Layer > createLayer(const LayerItem &layerItem, const SceneGeometry &sceneGeometry, const QVector3D &origin={})
double visualLayerThickness(const LayerItem &layerItem, const SceneGeometry &sceneGeometry)
std::unique_ptr< GUI::RealSpace::Particles::Particle > createParticlefromFormfactor(const IFormFactor *ff)
Defines Particle class.
Size and thickness information of layers.