47 Layer vacuum_layer(ambience_mat);
49 Layer substrate(substrate_mat);
54 sample->addLayer(vacuum_layer);
55 sample->addLayer(middle_layer);
56 sample->addLayer(substrate);
const double middle_layer_thickness(60.0)
Defines class LayersWithAbsorptionBySLDBuilder.
Factory functions used to create material instances.
Defines class MultiLayer.
Defines class ParticleLayout.
Defines IRotation classes.
Defines some unit conversion factors and other constants in namespace Units.
void setParticlePosition(R3 position)
Sets relative position of the particle's reference point in the coordinate system of parent.
IParticle * rotate(const IRotation &rotation)
Rotates the particle, and returns this.
void setRotation(const IRotation &rotation)
Sets transformation.
A layer in a MultiLayer sample.
void addLayout(const ParticleLayout &layout)
A wrapper for underlying material implementation.
Our sample model: a stack of layers one below the other.
Decorator class that adds particles to ISampleNode objects.
void addParticle(const IParticle &particle, double abundance=-1.0)
Adds particle to the layout with abundance, position and the rotation defined.
A particle with a form factor and refractive index.
A rotation about the x axis.
A rotation about the y axis.
A rotation about the z axis.
MultiLayer * createLayersWithAbsorptionBySLD()
static constexpr double deg