114 const double box1_length = 20;
115 const double box1_width = 50;
116 const double box1_height = 5;
121 const double box2_length = 5.0;
122 const double box2_width = 20.0;
123 const double box2_height = 50.0;
Defines classes of BoxCompositionBuilder family.
Defines class MultiLayer.
Defines class ParticleComposition.
Defines class ParticleLayout.
Defines materials in namespace refMat.
Defines some unit conversion factors and other constants in namespace Units.
BasicVector3D< double > kvector_t
MultiLayer * buildSample() const
MultiLayer * buildSample() const
MultiLayer * buildSample() const
MultiLayer * buildSample() const
MultiLayer * buildSample() const
void setPosition(kvector_t position)
Sets relative position of the particle's reference point in the coordinate system of parent.
void rotate(const IRotation &rotation) override final
Rotates the particle.
void setRotation(const IRotation &rotation)
Sets transformation.
A layer, with thickness (in nanometer) and material.
void addLayout(const ILayout &decoration)
A wrapper for underlying material implementation.
Our sample model: a stack of layers one below the other.
void addLayer(const Layer &layer)
Adds object to multilayer.
A composition of particles at fixed positions.
void addParticle(const IParticle &particle)
Decorator class that adds particles to ISample objects.
void addParticle(const IAbstractParticle &particle, double abundance=-1.0, const kvector_t position={}, const IRotation &rotation=IdentityRotation())
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.
Material HomogeneousMaterial(const std::string &name, complex_t refractive_index, kvector_t magnetization)
Constructs a material with name, refractive_index and magnetization (in A/m).
static constexpr double degree
static constexpr double nanometer
const Material particleMaterial
const double layer_thickness
MultiLayer * finalizeMultiLayer(const ParticleComposition &composition)
static const Material Substrate2
static const Material Vacuum
static const Material Teflon