16 #include "Device/Resolution/ResolutionFunction2DGaussian.h"
19 std::unique_ptr<IResolutionFunction2D>
27 m_sigmaX.init(
"Sigma X",
"Resolution along horizontal axis", 0.02,
Unit::degree, 3,
28 RealLimits::lowerLimited(0.0),
"sigmaX");
29 m_sigmaY.init(
"Sigma Y",
"Resolution along vertical axis", 0.02,
Unit::degree, 3,
30 RealLimits::lowerLimited(0.0),
"sigmaY");
33 std::unique_ptr<IResolutionFunction2D>
36 return std::make_unique<ResolutionFunction2DGaussian>(scale * m_sigmaX, scale * m_sigmaY);
41 m_sigmaX.setUnit(unit);
42 m_sigmaY.setUnit(unit);
Defines family of ResolutionFunctionItem.
void setUnit(const std::variant< QString, Unit > &unit) override
Set the unit of the distributed value.
std::unique_ptr< IResolutionFunction2D > createResolutionFunction(double scale=1.0) const override
ResolutionFunction2DGaussianItem()
void serialize(Streamer &s) override
std::unique_ptr< IResolutionFunction2D > createResolutionFunction(double scale=1.0) 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)