BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Holds values which can be used to describe a FixedBinAxis.
Use this as a member in your class to
This class is designed to work seamlessly with the serialization methods; just call it's serialize for both reading and writing. For UI integration just use AxisPropertyEditor.
Do not forget to call all three init functions from within the containing class's constructor!
Definition at line 38 of file AxisProperty.h.
Public Member Functions | |
std::unique_ptr< FixedBinAxis > | createAxis (double scaleFactor) const |
Creates an axis with empty title. More... | |
DOUBLE_PROPERTY (max, Max) | |
DOUBLE_PROPERTY (min, Min) | |
void | initMax (const QString &label, const QString &tooltip, double value, const variant< QString, Unit > &unit, const RealLimits &limits=RealLimits::nonnegative(), uint decimals=3) |
void | initMin (const QString &label, const QString &tooltip, double value, const variant< QString, Unit > &unit, const RealLimits &limits=RealLimits::nonnegative(), uint decimals=3) |
void | initNbins (const QString &label, const QString &tooltip, uint n=100, const variant< QString, Unit > &unit="nbins") |
void | rwAxisProperty (Streamer &s, const QString &tag) |
void | serialize (Streamer &s) |
UINT_PROPERTY (nbins, Nbins) | |
std::unique_ptr< FixedBinAxis > AxisProperty::createAxis | ( | double | scaleFactor | ) | const |
Creates an axis with empty title.
Definition at line 40 of file AxisProperty.cpp.
AxisProperty::DOUBLE_PROPERTY | ( | max | , |
Max | |||
) |
AxisProperty::DOUBLE_PROPERTY | ( | min | , |
Min | |||
) |
void AxisProperty::initMax | ( | const QString & | label, |
const QString & | tooltip, | ||
double | value, | ||
const variant< QString, Unit > & | unit, | ||
const RealLimits & | limits = RealLimits::nonnegative() , |
||
uint | decimals = 3 |
||
) |
Definition at line 33 of file AxisProperty.cpp.
void AxisProperty::initMin | ( | const QString & | label, |
const QString & | tooltip, | ||
double | value, | ||
const variant< QString, Unit > & | unit, | ||
const RealLimits & | limits = RealLimits::nonnegative() , |
||
uint | decimals = 3 |
||
) |
Definition at line 26 of file AxisProperty.cpp.
void AxisProperty::initNbins | ( | const QString & | label, |
const QString & | tooltip, | ||
uint | n = 100 , |
||
const variant< QString, Unit > & | unit = "nbins" |
||
) |
Definition at line 19 of file AxisProperty.cpp.
void AxisProperty::rwAxisProperty | ( | Streamer & | s, |
const QString & | tag | ||
) |
Definition at line 46 of file AxisProperty.cpp.
References Streamer::assertVersion(), Streamer::finish(), Serialize::rwProperty(), and Streamer::start().
void AxisProperty::serialize | ( | Streamer & | s | ) |
AxisProperty::UINT_PROPERTY | ( | nbins | , |
Nbins | |||
) |