15 #ifndef BORNAGAIN_GUI_MODEL_DEVICE_POINTWISEAXISITEM_H
16 #define BORNAGAIN_GUI_MODEL_DEVICE_POINTWISEAXISITEM_H
30 static constexpr
auto M_TYPE{
"PointwiseAxis"};
38 void init(
const IAxis&
axis,
const QString& units_label);
41 const IAxis*
axis()
const;
44 std::unique_ptr<IAxis>
createAxis(
double scale)
const override;
Defines various axis items.
Abstract base class for instrument-specific item classes.
Item for non-uniform axis with specified coordinates.
static constexpr auto M_TYPE
void deserializeBinaryData(const QByteArray &data) override
~PointwiseAxisItem() override
bool checkValidity() const
const SpecularInstrumentItem * m_instrumentItem
std::unique_ptr< IAxis > createAxis(double scale) const override
static constexpr auto P_NATIVE_AXIS_UNITS
void serialize(Streamer &s) override
void setOwningInstrument(const InstrumentItem *instrument)
std::unique_ptr< IAxis > m_axis
QByteArray serializeBinaryData() const override
const IAxis * axis() const
QString getUnitsLabel() const
void init(const IAxis &axis, const QString &units_label)
Supports serialization to or deserialization from QXmlStream.