16 #include "Base/Axis/FixedBinAxis.h"
112 return std::make_unique<FixedBinAxis>(
title().toStdString(),
binCount(),
min() * scale,
173 Serialize::rwBaseClass<BasicAxisItem>(s,
"base",
this);
const int max_detector_pixels
Defines various axis items.
static bool isLogScalePropertyName(const QString &name)
static constexpr auto P_LOCK_MIN_MAX
static constexpr auto P_IS_LOGSCALE
void serialize(Streamer &s) override
SessionItem * logScaleItem() const
void setLogScale(bool value)
void setLocked(bool locked)
SessionItem * maxItem() const
bool isTitleVisible() const
SessionItem * binsItem() const
void setVisibilityValue(bool b)
DoubleDescriptor min(const QString &unit=QString()) const
static bool isVisibilityPropertyName(const QString &name)
static constexpr auto P_NBINS
static bool isBoundsPropertiesName(const QString &name)
either lower bound or upper bound property name
SessionItem * visibilityItem() const
bool visibilityValue() const
SessionItem * minItem() const
void setBinCount(size_t value)
virtual void serialize(Streamer &s)
~BasicAxisItem() override
static constexpr auto P_IS_VISIBLE
static constexpr auto P_TITLE
SessionItem * titleItem() const
static constexpr auto P_MAX_DEG
void setLowerBound(double value)
static constexpr auto P_TITLE_IS_VISIBLE
void setUpperBound(double value)
static bool isTitlePropertyName(const QString &name)
static constexpr auto P_MIN_DEG
virtual std::unique_ptr< IAxis > createAxis(double scale) const
DoubleDescriptor max(const QString &unit=QString()) const
static bool isTitleVisiblePropertyName(const QString &name)
void setTitle(const QString &title)
Describes properties of a double value which are necessary to allow GUI representation,...
QString label
A label text (short, no trailing colon)
Base class for a GUI data item.
SessionItem * addProperty(const QString &name, const QVariant &variant)
Add new property item and register new tag. name is the tag name and the display name....
SessionItem & setDecimals(int n)
QVariant value() const
Get value.
QVariant getItemValue(const QString &tag) const
Directly access value of item under given tag.
void setItemValue(const QString &tag, const QVariant &variant) const
Directly set value of item under given tag.
SessionItem * getItem(const QString &tag="", int row=0) const
Returns item in given row of given tag.
SessionItem & setLimits(const RealLimits &value)
Supports serialization to or deserialization from QXmlStream.
void assertVersion(unsigned expectedVersion) const
As reader, throws DeserializationException unless the expected version is read. As writer,...
QString const & name(EShape k)