30 ParticleInVacuumBuilder::ParticleInVacuumBuilder()
35 MultiLayer* ParticleInVacuumBuilder::buildSample()
const
37 Layer vacuum_layer(refMat::Vacuum);
39 Particle particle(refMat::Particle, *m_ff);
41 vacuum_layer.addLayout(particle_layout);
48 MultiLayer* ParticleInVacuumBuilder::createSampleByIndex(
size_t index)
50 auto name = ff_components.keys().at(index);
51 m_ff.reset(ff_components.getItem(name)->clone());
56 size_t ParticleInVacuumBuilder::size()
58 return ff_components.size();
Defines class MultiLayer.
Defines class ParticleInVacuumBuilder.
Defines class ParticleLayout.
Defines materials in namespace refMat.
Defines sample components for complex sample builders.
Defines some unit conversion factors and other constants in namespace Units.
A layer, with thickness (in nanometer) and material.
Our sample model: a stack of layers one below the other.
void addLayer(const Layer &layer)
Adds object to multilayer.
Decorator class that adds particles to ISample objects.
A particle with a form factor and refractive index.
Constants and functions for physical unit conversions.