BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Layer Class Reference

A layer in a MultiLayer sample. More...

+ Inheritance diagram for Layer:

Public Member Functions

 Layer (Material material, double thickness=0)
 Constructor of a layer with thickness and material. More...
 
void accept (INodeVisitor *visitor) const final
 
void addLayout (const ParticleLayout &decoration)
 
Layerclone () const final
 
std::vector< const INode * > getChildren () const final
 
std::vector< const ParticleLayout * > layouts () const
 
const Materialmaterial () const final
 
size_t numberOfLayouts () const
 
unsigned int numberOfSlices () const
 
void registerThickness (bool make_registered=true)
 
void setMaterial (Material material)
 
void setNumberOfSlices (unsigned int n_slices)
 
void setThickness (double thickness)
 Sets layer thickness in nanometers.
 
double thickness () const
 

Detailed Description

A layer in a MultiLayer sample.

Constructor & Destructor Documentation

◆ Layer()

Layer::Layer ( Material  material,
double  thickness = 0 
)

Constructor of a layer with thickness and material.

Parameters
materialmaterial the layer is made of
thicknessthickness of a layer in nanometers