15 #ifndef BORNAGAIN_GUI_MODEL_DESCRIPTOR_VECTORPROPERTY_H
16 #define BORNAGAIN_GUI_MODEL_DESCRIPTOR_VECTORPROPERTY_H
19 #include <heinz/Vectors3D.h>
35 void init(
const QString& label,
const QString& tooltip,
const variant<QString, Unit>& unit,
63 #define VECTOR_PROPERTY(nameLower, nameUpper) \
65 VectorProperty m_##nameLower; \
68 VectorDescriptor nameLower() const { return m_##nameLower; } \
69 void set##nameUpper(const R3& v) { m_##nameLower.set(v); }
Defines class VectorDescriptor.
Supports serialization to or deserialization from QXmlStream.
Describes properties of a 3D vector, consisting of three double values.
Holds a 3D vector of type R3 as well as additional info like label, tooltip.
QString persistentTag() const
void setUid(const QString &uid)
void init(const QString &label, const QString &tooltip, const variant< QString, Unit > &unit, const QString &persistentTag)
VectorDescriptor descriptor() const
VectorDescriptor m_descriptor
Functions to serialize various data types.
void rwProperty(Streamer &s, DoubleProperty &d)