16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_SAMPLE_MATERIAL_REFRACTIVEMATERIALIMPL_H
21 #define BORNAGAIN_SAMPLE_MATERIAL_REFRACTIVEMATERIALIMPL_H
61 void print(std::ostream& ostr)
const override;
std::complex< double > complex_t
Defines magnetic material base implementation.
Defines and implements class Material.
Basic implementation for magnetized material.
kvector_t magnetization() const final
Returns the magnetization (in A/m)
A wrapper for underlying material implementation.
Material implementation based on refractive coefficiencts (valid for one wavelength value only)
const double m_delta
coefficient for refractive index
complex_t refractiveIndex2(double wavelength) const override
Returns squared refractive index.
complex_t materialData() const override
Returns underlying material data.
complex_t refractiveIndex(double wavelength) const override
Returns refractive index For this particular implementation returned value does not depend on passed ...
void print(std::ostream &ostr) const override
Prints object data.
RefractiveMaterialImpl * clone() const override
Returns pointer to a copy of material.
virtual ~RefractiveMaterialImpl()=default
RefractiveMaterialImpl(const std::string &name, double delta, double beta, kvector_t magnetization)
const double m_beta
coefficient for refractive index
complex_t scalarSubtrSLD(const WavevectorInfo &wavevectors) const override
Returns ( - sld), sld (in ) being the scattering length density.
MATERIAL_TYPES typeID() const override
Returns type of material implementation.
friend Material HomogeneousMaterial(const std::string &, double, double, kvector_t)
Holds all wavevector information relevant for calculating form factors.
QString const & name(EShape k)