BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Describes properties of a 3D vector, consisting of three double values.
By using this class, the underlying data scheme is hidden from the user of the data. This e.g. eases SessionItem migration. The underlying implementation can be a R3 vector, a member array of three doubles, three double members, or any other construction to hold the three values.
VectorProperty DoubleDescriptor
Definition at line 31 of file VectorDescriptor.h.
Public Member Functions | |
VectorDescriptor ()=default | |
VectorDescriptor (const QString &label, const QString &tooltip, const variant< QString, Unit > &unit) | |
VectorDescriptor (const QString &label, const QString &tooltip, double *xVar, double *yVar, double *zVar, const variant< QString, Unit > &unit) | |
void | init (const QString &_label, const QString &_tooltip, const R3 *vec, const variant< QString, Unit > &_unit) |
Public Attributes | |
QString | label |
A label text (short, no trailing colon) More... | |
QString | tooltip |
Tooltip text. More... | |
function< QString()> | uid |
unique id describing this value. Used e.g. for undo/redo More... | |
DoubleDescriptor | x |
DoubleDescriptor | y |
DoubleDescriptor | z |
|
default |
|
inline |
Definition at line 35 of file VectorDescriptor.h.
References DoubleDescriptor::decimals, DoubleDescriptor::limits, DoubleDescriptor::tooltip, tooltip, x, y, and z.
|
inline |
Definition at line 54 of file VectorDescriptor.h.
References DoubleDescriptor::decimals, DoubleDescriptor::label, DoubleDescriptor::limits, DoubleDescriptor::tooltip, tooltip, DoubleDescriptor::unit, x, y, and z.
|
inline |
Definition at line 76 of file VectorDescriptor.h.
References DoubleDescriptor::decimals, DoubleDescriptor::get, DoubleDescriptor::label, label, DoubleDescriptor::limits, DoubleDescriptor::path, DoubleDescriptor::set, DoubleDescriptor::tooltip, tooltip, uid, DoubleDescriptor::unit, x, y, and z.
Referenced by VectorProperty::init().
QString VectorDescriptor::label |
A label text (short, no trailing colon)
Definition at line 108 of file VectorDescriptor.h.
Referenced by ParameterTreeBuilder::addParameterItem(), FormLayouter::addVector(), DetectorAlignmentEditor::addVector(), PolarizationAnalysisEditor::addVector(), and init().
QString VectorDescriptor::tooltip |
Tooltip text.
Definition at line 109 of file VectorDescriptor.h.
Referenced by VectorDescriptor(), and init().
function<QString()> VectorDescriptor::uid |
unique id describing this value. Used e.g. for undo/redo
Definition at line 113 of file VectorDescriptor.h.
Referenced by init(), VectorProperty::init(), and MaterialItem::magnetizationVector().
DoubleDescriptor VectorDescriptor::x |
Definition at line 110 of file VectorDescriptor.h.
Referenced by VectorDescriptor(), ParameterTreeBuilder::addParameterItem(), FormLayouter::addVector(), DetectorAlignmentEditor::addVector(), PolarizationAnalysisEditor::addVector(), LayerEditorUtils::addVectorToGrid(), init(), and MaterialItem::magnetizationVector().
DoubleDescriptor VectorDescriptor::y |
Definition at line 111 of file VectorDescriptor.h.
Referenced by VectorDescriptor(), ParameterTreeBuilder::addParameterItem(), FormLayouter::addVector(), DetectorAlignmentEditor::addVector(), PolarizationAnalysisEditor::addVector(), LayerEditorUtils::addVectorToGrid(), init(), and MaterialItem::magnetizationVector().
DoubleDescriptor VectorDescriptor::z |
Definition at line 112 of file VectorDescriptor.h.
Referenced by VectorDescriptor(), ParameterTreeBuilder::addParameterItem(), FormLayouter::addVector(), DetectorAlignmentEditor::addVector(), PolarizationAnalysisEditor::addVector(), LayerEditorUtils::addVectorToGrid(), init(), and MaterialItem::magnetizationVector().