BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 95 of file DistributionItems.h.
Public Member Functions | |
DistributionGateItem () | |
std::unique_ptr< IDistribution1D > | createDistribution (double scale=1.0) const override |
DoubleDescriptors | distributionValues (bool withMean=true) const override |
DOUBLE_PROPERTY (maximum, Maximum) | |
DOUBLE_PROPERTY (minimum, Minimum) | |
DOUBLE_PROPERTY (sigmaFactor, SigmaFactor) | |
bool | hasSigmaFactor () const |
void | initDistribution (double value) override |
template<typename T > | |
bool | is () const |
RealLimits | limits () const |
void | serialize (Streamer &s) |
Serialization of contents. More... | |
virtual void | setLimits (const RealLimits &limits) |
void | setRange (double min, double max) |
void | setUnit (const variant< QString, Unit > &unit) override |
Set the unit of the distributed value. More... | |
UINT_PROPERTY (numberOfSamples, NumberOfSamples) | |
Protected Member Functions | |
void | addToSerialization (DoubleProperty *d) |
void | initSigmaFactor () |
Protected Attributes | |
RealLimits | m_limits |
Private Attributes | |
QVector< DoubleProperty * > | m_serializationProperties |
DistributionGateItem::DistributionGateItem | ( | ) |
Definition at line 126 of file DistributionItems.cpp.
References DistributionItem::addToSerialization(), and unitless.
|
protectedinherited |
Definition at line 40 of file DistributionItems.cpp.
References DistributionItem::m_serializationProperties.
Referenced by DistributionCosineItem::DistributionCosineItem(), DistributionGateItem(), DistributionGaussianItem::DistributionGaussianItem(), DistributionLogNormalItem::DistributionLogNormalItem(), DistributionLorentzItem::DistributionLorentzItem(), DistributionTrapezoidItem::DistributionTrapezoidItem(), SymmetricResolutionItem::SymmetricResolutionItem(), and DistributionItem::initSigmaFactor().
|
overridevirtual |
Implements DistributionItem.
Definition at line 141 of file DistributionItems.cpp.
|
overridevirtual |
Implements DistributionItem.
Definition at line 161 of file DistributionItems.cpp.
DistributionGateItem::DOUBLE_PROPERTY | ( | maximum | , |
Maximum | |||
) |
DistributionGateItem::DOUBLE_PROPERTY | ( | minimum | , |
Minimum | |||
) |
|
inherited |
|
inherited |
Definition at line 45 of file DistributionItems.cpp.
Referenced by DistributionPlot::plot_multiple_values().
|
overridevirtual |
Reimplemented from DistributionItem.
Definition at line 146 of file DistributionItems.cpp.
|
protectedinherited |
Definition at line 34 of file DistributionItems.cpp.
References DistributionItem::addToSerialization(), and unitless.
Referenced by DistributionCosineItem::DistributionCosineItem(), DistributionGaussianItem::DistributionGaussianItem(), DistributionLogNormalItem::DistributionLogNormalItem(), and DistributionLorentzItem::DistributionLorentzItem().
|
inlineinherited |
Definition at line 33 of file DistributionItems.h.
Referenced by DistributionPlot::plot_distributions(), DistributionPlot::plot_multiple_values(), and DistributionPlot::plot_single_value().
|
inherited |
Definition at line 62 of file DistributionItems.cpp.
References DistributionItem::m_limits.
Referenced by DistributionPlot::plot_multiple_values(), DistributionItem::setLimits(), and SymmetricResolutionItem::setLimits().
|
inherited |
Serialization of contents.
Important: limits and a changed unit (with setUnit) will not be serialized here. They have to be set again by the owner of DistributionItem after reading it
Definition at line 50 of file DistributionItems.cpp.
References Streamer::assertVersion(), DistributionItem::m_serializationProperties, and Serialize::rwProperty().
|
virtualinherited |
Reimplemented in SymmetricResolutionItem.
Definition at line 29 of file DistributionItems.cpp.
References DistributionItem::limits(), and DistributionItem::m_limits.
Referenced by BeamAzimuthalAngleItem::initDistribution(), BeamInclinationAngleItem::initDistribution(), BeamAzimuthalAngleItem::serialize(), BeamInclinationAngleItem::serialize(), BeamWavelengthItem::serialize(), SpecularBeamInclinationItem::serialize(), and SymmetricResolutionItem::setLimits().
void DistributionGateItem::setRange | ( | double | min, |
double | max | ||
) |
Definition at line 155 of file DistributionItems.cpp.
|
overridevirtual |
Set the unit of the distributed value.
Implements DistributionItem.
Definition at line 135 of file DistributionItems.cpp.
|
inherited |
|
protectedinherited |
|
privateinherited |
Definition at line 67 of file DistributionItems.h.
Referenced by DistributionItem::addToSerialization(), and DistributionItem::serialize().