BornAgain  1.19.0
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/coregui/Views/RealSpaceWidgets/TransformTo3D.h
6 //! @brief Defines namespace 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_COREGUI_VIEWS_REALSPACEWIDGETS_TRANSFORMTO3D_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_REALSPACEWIDGETS_TRANSFORMTO3D_H
17 
18 #include "Base/Vector/Vectors3D.h"
19 #include "GUI/ba3d/model/layer.h"
21 #include <memory>
22 
23 class SessionItem;
24 class SceneGeometry;
25 class IFormFactor;
26 
27 //! Collection of utility functions to build 3D objects from session items.
28 
29 namespace TransformTo3D {
30 
31 double visualLayerThickness(const SessionItem& layerItem, const SceneGeometry& sceneGeometry);
32 
33 std::unique_ptr<RealSpace::Layer> createLayer(const SessionItem& layerItem,
34  const SceneGeometry& sceneGeometry,
35  const QVector3D& origin = {});
36 
37 std::unique_ptr<RealSpace::Particles::Particle> createParticle3D(const SessionItem& particleItem);
38 
39 std::unique_ptr<RealSpace::Particles::Particle>
41 
42 } // namespace TransformTo3D
43 
44 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_REALSPACEWIDGETS_TRANSFORMTO3D_H
Defines basic vectors in Z^3, R^3, C^3.
Abstract base class for all form factors.
Definition: IFormFactor.h:36
Defines Layer class.
Collection of utility functions to build 3D objects from session items.
Definition: TransformTo3D.h:29
std::unique_ptr< RealSpace::Layer > createLayer(const SessionItem &layerItem, const SceneGeometry &sceneGeometry, const QVector3D &origin={})
std::unique_ptr< RealSpace::Particles::Particle > createParticlefromIFormFactor(const IFormFactor *ff)
double visualLayerThickness(const SessionItem &layerItem, const SceneGeometry &sceneGeometry)
std::unique_ptr< RealSpace::Particles::Particle > createParticle3D(const SessionItem &particleItem)
Defines Particle class.