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
19
Layer::Layer
(
VectorRange
d)
20
:
Object
(GeometricID::Key(GeometricID::
BaseShape
::Box))
21
{
22
transform
(d.
size
(),
Vector3D::_0
, d.
mid
());
23
}
24
25
}
// namespace GUI::RealSpace
GUI::RealSpace::Layer::Layer
Layer(VectorRange)
Definition:
layer.cpp:19
GUI::RealSpace::Object
A geometric object.
Definition:
object.h:28
GUI::RealSpace::Object::transform
void transform(float scale, Vector3D rotate, Vector3D translate)
Definition:
object.cpp:51
layer.h
Defines Layer class.
GUI::RealSpace::GeometricID::BaseShape
BaseShape
Enum id for basic shapes.
Definition:
geometry_inc.h:38
GUI::RealSpace
Definition:
def.cpp:20
GUI::RealSpace::Vector3D::_0
static Vector3D const _0
Definition:
def.h:46
GUI::RealSpace::VectorRange
Range of coordinates.
Definition:
def.h:70
GUI::RealSpace::VectorRange::mid
Vector3D mid() const
Definition:
def.cpp:139
GUI::RealSpace::VectorRange::size
Vector3D size() const
Definition:
def.cpp:134
GUI
ba3d
model
layer.cpp
Generated by
1.9.1