BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
layer.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/ba3d/model/layer.cpp
6 //! @brief Implements Layer class
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 #include "GUI/ba3d/model/layer.h"
16 
17 namespace GUI::RealSpace {
18 
20  : Object(GeometricID::Key(GeometricID::BaseShape::Box))
21 {
22  transform(d.size(), Vector3D::_0, d.mid());
23 }
24 
25 } // namespace GUI::RealSpace
Layer(VectorRange)
Definition: layer.cpp:19
A geometric object.
Definition: object.h:28
void transform(float scale, Vector3D rotate, Vector3D translate)
Definition: object.cpp:51
Defines Layer class.
BaseShape
Enum id for basic shapes.
Definition: geometry_inc.h:38
static Vector3D const _0
Definition: def.h:46
Range of coordinates.
Definition: def.h:70
Vector3D mid() const
Definition: def.cpp:139
Vector3D size() const
Definition: def.cpp:134