BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Holds a 3D vector of type R3 as well as additional info like label, tooltip.
Use this as a member in your class to hold a 3D vector if you want to have support for serialization, and if this vector is editable on the UI.
For a more complete documentation about property classes, please refer to DoubleProperty.
Definition at line 33 of file VectorProperty.h.
Public Member Functions | |
VectorDescriptor | descriptor () const |
R3 | get () const |
void | init (const QString &label, const QString &tooltip, const variant< QString, Unit > &unit, const QString &persistentTag) |
operator R3 () const | |
operator VectorDescriptor () const | |
QString | persistentTag () const |
R3 & | r3 () |
void | set (const R3 &d) |
void | setUid (const QString &uid) |
QString | uid () const |
Private Attributes | |
VectorDescriptor | m_descriptor |
QString | m_persistentTag |
QString | m_uid |
R3 | m_value |
|
inline |
|
inline |
Definition at line 42 of file VectorProperty.h.
References m_value.
Referenced by Serialize::rwProperty().
void VectorProperty::init | ( | const QString & | label, |
const QString & | tooltip, | ||
const variant< QString, Unit > & | unit, | ||
const QString & | persistentTag | ||
) |
Definition at line 20 of file VectorProperty.cpp.
References VectorDescriptor::init(), m_descriptor, m_persistentTag, m_uid, m_value, persistentTag(), and VectorDescriptor::uid.
Referenced by ItemWithParticles::ItemWithParticles(), MesoCrystalItem::MesoCrystalItem(), and MultiLayerItem::MultiLayerItem().
|
inline |
|
inline |
|
inline |
Definition at line 44 of file VectorProperty.h.
References m_persistentTag.
Referenced by init(), and Serialize::rwProperty().
|
inline |
|
inline |
Definition at line 41 of file VectorProperty.h.
References m_value.
Referenced by Serialize::rwProperty(), MultiLayerItem::setExternalField(), ItemWithParticles::setPosition(), MesoCrystalItem::setRawDataVectorA(), MesoCrystalItem::setRawDataVectorB(), and MesoCrystalItem::setRawDataVectorC().
|
inline |
Definition at line 46 of file VectorProperty.h.
Referenced by Serialize::rwProperty().
|
inline |
Definition at line 45 of file VectorProperty.h.
References m_uid.
Referenced by Serialize::rwProperty(), and setUid().
|
private |
Definition at line 55 of file VectorProperty.h.
Referenced by descriptor(), init(), and operator VectorDescriptor().
|
private |
Definition at line 52 of file VectorProperty.h.
Referenced by init(), and persistentTag().
|
private |
Definition at line 53 of file VectorProperty.h.
|
private |
Definition at line 51 of file VectorProperty.h.
Referenced by get(), init(), operator R3(), r3(), and set().