16 #include "Base/Const/Units.h"
44 return std::make_unique<Profile1DCauchy>(
omega());
51 return std::make_unique<Profile1DGauss>(
omega());
58 return std::make_unique<Profile1DGate>(
omega());
65 return std::make_unique<Profile1DTriangle>(
omega());
72 return std::make_unique<Profile1DCosine>(
omega());
79 m_eta.
init(
"Eta",
"Parameter [0,1] to balance between Cauchy (eta=0.0) and Gauss (eta=1.0)",
85 return std::make_unique<Profile1DVoigt>(
omega(),
m_eta);
115 "Angle in direct space between first lattice vector and x-axis of the distribution", 0.0,
166 return std::make_unique<Profile2DCauchy>(
omegaX(),
omegaY(), Units::deg2rad(
gamma()));
173 return std::make_unique<Profile2DGauss>(
omegaX(),
omegaY(), Units::deg2rad(
gamma()));
180 return std::make_unique<Profile2DGate>(
omegaX(),
omegaY(), Units::deg2rad(
gamma()));
187 return std::make_unique<Profile2DCone>(
omegaX(),
omegaY(), Units::deg2rad(
gamma()));
194 m_eta.
init(
"Eta",
"Parameter [0,1] to balance between Cauchy (eta=0.0) and Gauss (eta=1.0)",
QList< DoubleDescriptor > DoubleDescriptors
Defines Profile1DItem's classes.
Describes properties of a double value which are necessary to allow GUI representation,...
void set(double d)
Set the contained value.
void init(const QString &label, const QString &tooltip, double value, const variant< QString, Unit > &unit, const QString &persistentTag)
std::unique_ptr< IProfile1D > createProfile() const override
std::unique_ptr< IProfile1D > createProfile() const override
std::unique_ptr< IProfile1D > createProfile() const override
std::unique_ptr< IProfile1D > createProfile() const override
virtual DoubleDescriptors valueDescriptors() const
virtual void serialize(Streamer &s)
DoubleDescriptor omega() const
std::unique_ptr< IProfile1D > createProfile() const override
std::unique_ptr< IProfile1D > createProfile() const override
DoubleDescriptor eta() const
void serialize(Streamer &s) override
DoubleDescriptors valueDescriptors() const override
std::unique_ptr< IProfile2D > createProfile() const override
std::unique_ptr< IProfile2D > createProfile() const override
std::unique_ptr< IProfile2D > createProfile() const override
std::unique_ptr< IProfile2D > createProfile() const override
virtual DoubleDescriptors valueDescriptors() const
DoubleDescriptor omegaX() const
void setOmegaX(double omega_x)
DoubleDescriptor gamma() const
void setOmegaY(double omega_y)
virtual void serialize(Streamer &s)
DoubleDescriptor omegaY() const
void setGamma(double gamma)
DoubleDescriptors valueDescriptors() const override
void serialize(Streamer &s) override
DoubleDescriptor eta() const
std::unique_ptr< IProfile2D > createProfile() const override
Supports serialization to or deserialization from QXmlStream.
void assertVersion(unsigned expectedVersion) const
As reader, throws DeserializationException unless the expected version is read. As writer,...
void rwProperty(Streamer &s, DoubleProperty &d)