18 SpecularSimulationElement::SpecularSimulationElement(
double kz,
bool computable)
19 : m_intensity(0.0), m_computable(computable),
20 m_kz_computation([kz](const std::vector<
Slice>& slices) {
21 return KzComputation::computeKzFromSLDs(slices, kz);
26 SpecularSimulationElement::SpecularSimulationElement(
double wavelength,
double alpha,
28 : m_intensity(0.0), m_computable(computable),
31 return KzComputation::computeKzFromRefIndices(slices, k);
37 : m_polarization(other.m_polarization), m_intensity(other.m_intensity),
38 m_computable(other.m_computable), m_kz_computation(other.m_kz_computation)
43 : m_polarization(std::move(other.m_polarization)), m_intensity(other.m_intensity),
44 m_computable(other.m_computable), m_kz_computation(std::move(other.m_kz_computation))
48 SpecularSimulationElement::~SpecularSimulationElement() =
default;
55 tmp.swapContent(*
this);
62 m_polarization = handler;
67 return m_kz_computation(slices);
72 m_polarization.swapContent(other.m_polarization);
73 std::swap(m_intensity, other.m_intensity);
74 m_kz_computation.swap(other.m_kz_computation);
BasicVector3D< double > vecOfLambdaAlphaPhi(double _lambda, double _alpha, double _phi)
Creates a vector<double> as a wavevector with given wavelength and angles.
Declares functions in namespace KzComputation.
void swap(OutputDataIterator< TValue, TContainer > &left, OutputDataIterator< TValue, TContainer > &right)
make Swappable
Declares the class SpecularSimulationElement.
Convenience class for handling polarization density matrix and polarization analyzer operator.
Data structure containing the data of a single slice, for calculating the Fresnel coefficients.
Data stucture containing both input and output of a single image pixel for specular simulation.
std::vector< complex_t > produceKz(const std::vector< Slice > &slices)
Returns kz values for Abeles computation of reflection/transition coefficients.
void setPolarizationHandler(const PolarizationHandler &handler)
Assigns PolarizationHandler.