16 #include "Base/Util/Assert.h"
20 const variant<QString, Unit>& unit)
22 m_nbins.init(label, tooltip, n, unit,
"nbins");
27 const variant<QString, Unit>& unit,
const RealLimits& limits,
30 m_min.init(label, tooltip, value, unit, decimals, limits,
"min");
34 const variant<QString, Unit>& unit,
const RealLimits& limits,
37 m_max.init(label, tooltip, value, unit, decimals, limits,
"max");
42 return std::make_unique<FixedBinAxis>(std::string(), m_nbins, m_min * scaleFactor,
Defines class AxisProperty.
void rwAxisProperty(Streamer &s, const QString &tag)
void initNbins(const QString &label, const QString &tooltip, uint n=100, const variant< QString, Unit > &unit="nbins")
void initMin(const QString &label, const QString &tooltip, double value, const variant< QString, Unit > &unit, const RealLimits &limits=RealLimits::nonnegative(), uint decimals=3)
std::unique_ptr< FixedBinAxis > createAxis(double scaleFactor) const
Creates an axis with empty title.
void initMax(const QString &label, const QString &tooltip, double value, const variant< QString, Unit > &unit, const RealLimits &limits=RealLimits::nonnegative(), uint decimals=3)
Supports serialization to or deserialization from QXmlStream.
void start(const QString &tag)
void finish(const QString &tag)
void assertVersion(unsigned expectedVersion) const
As reader, throws DeserializationException unless the expected version is read. As writer,...
void rwProperty(Streamer &s, DoubleProperty &d)