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
Box
Definition:
Box.h:25
RealSpace::Layer::Layer
Layer(VectorRange)
Definition:
layer.cpp:19
RealSpace::Object
Definition:
object.h:27
RealSpace::Object::transform
void transform(float scale, Vector3D rotate, Vector3D translate)
Definition:
object.cpp:45
layer.h
Defines Layer class.
RealSpace::GeometricID::BaseShape
BaseShape
Definition:
geometry_inc.h:39
RealSpace
Definition:
def.cpp:20
RealSpace::Vector3D::_0
static Vector3D const _0
Definition:
def.h:49
RealSpace::VectorRange
Definition:
def.h:75
RealSpace::VectorRange::mid
Vector3D mid() const
Definition:
def.cpp:117
RealSpace::VectorRange::size
Vector3D size() const
Definition:
def.cpp:112
GUI
ba3d
model
layer.cpp
Generated by
1.9.1