28 const double layer_thickness = 100.0 *
Units::nm;
40 middle_layer.addLayout(layout);
62 return finalizeMultiLayer(composition);
75 return finalizeMultiLayer(composition);
88 return finalizeMultiLayer(composition);
102 return finalizeMultiLayer(composition);
113 const double box1_length = 20;
114 const double box1_width = 50;
115 const double box1_height = 5;
120 const double box2_length = 5.0;
121 const double box2_width = 20.0;
122 const double box2_height = 50.0;
132 return finalizeMultiLayer(composition);
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) final
Rotates the particle.
void setRotation(const IRotation &rotation)
Sets transformation.
A layer in a MultiLayer sample.
A wrapper for underlying material implementation.
Our sample model: a stack of layers one below the other.
void addLayer(const Layer &layer)
Adds layer with default (zero) roughness.
A composition of particles at fixed positions.
void addParticle(const IParticle &particle)
Decorator class that adds particles to ISampleNode 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 deg
static constexpr double nm
static const Material Substrate2
static const Material Vacuum
static const Material Teflon