BornAgain  1.19.0
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 RealSpace {
18 
19 Layer::Layer(VectorRange d) : Object(GeometricID::Key(GeometricID::BaseShape::Box))
20 {
21  transform(d.size(), Vector3D::_0, d.mid());
22 }
23 } // namespace RealSpace
Definition: Box.h:25
Layer(VectorRange)
Definition: layer.cpp:19
void transform(float scale, Vector3D rotate, Vector3D translate)
Definition: object.cpp:45
Defines Layer class.
static Vector3D const _0
Definition: def.h:49
Vector3D mid() const
Definition: def.cpp:117
Vector3D size() const
Definition: def.cpp:112