BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The BeamDistributionItem handles wavelength, inclination and azimuthal parameter distribution for BeamItem.
Definition at line 25 of file BeamDistributionItem.h.
Public Member Functions | |
virtual | ~BeamDistributionItem ()=default |
DistributionItem * | distribution () const |
SelectionDescriptor< DistributionItem * > | distributionSelection () const |
std::unique_ptr< ParameterDistribution > | getParameterDistributionForName (ParameterDistribution::WhichParameter which) const |
virtual double | meanValue () const |
void | resetToValue (double value) |
virtual double | scaleFactor () const |
virtual void | serialize (Streamer &s)=0 |
void | setDistribution (DistributionItem *d) |
template<typename T > | |
T * | setDistributionType () |
Protected Member Functions | |
virtual std::unique_ptr< IDistribution1D > | createDistribution1D () const |
Protected Attributes | |
SelectionProperty< DistributionItem * > | m_distribution |
|
virtualdefault |
|
protectedvirtual |
Definition at line 75 of file BeamDistributionItem.cpp.
References DistributionItem::createDistribution(), distribution(), and scaleFactor().
Referenced by getParameterDistributionForName(), and meanValue().
DistributionItem * BeamDistributionItem::distribution | ( | ) | const |
Definition at line 60 of file BeamDistributionItem.cpp.
References SelectionProperty< T >::get(), and m_distribution.
Referenced by ParameterTreeBuilder::addBeamDistribution(), createDistribution1D(), DistributionSelector::createDistributionWidgets(), getParameterDistributionForName(), meanValue(), SpecularBeamWavelengthItem::setToRange(), DistributionEditor::updatePlot(), and InclinationAnglesEditor::updatePlot().
SelectionDescriptor< DistributionItem * > BeamDistributionItem::distributionSelection | ( | ) | const |
Definition at line 65 of file BeamDistributionItem.cpp.
References m_distribution.
Referenced by DistributionSelector::DistributionSelector(), and DistributionSelector::refresh().
std::unique_ptr< ParameterDistribution > BeamDistributionItem::getParameterDistributionForName | ( | ParameterDistribution::WhichParameter | which | ) | const |
Definition at line 22 of file BeamDistributionItem.cpp.
References createDistribution1D(), distribution(), and scaleFactor().
|
virtual |
Definition at line 40 of file BeamDistributionItem.cpp.
References createDistribution1D(), distribution(), and scaleFactor().
Referenced by BeamAzimuthalAngleItem::azimuthalAngle(), BeamInclinationAngleItem::inclinationAngle(), and BeamWavelengthItem::wavelength().
void BeamDistributionItem::resetToValue | ( | double | value | ) |
Definition at line 48 of file BeamDistributionItem.cpp.
References m_distribution, and SelectionProperty< T >::set().
|
virtual |
Reimplemented in SpecularBeamInclinationItem, BeamInclinationAngleItem, and BeamAzimuthalAngleItem.
Definition at line 55 of file BeamDistributionItem.cpp.
Referenced by createDistribution1D(), getParameterDistributionForName(), and meanValue().
|
pure virtual |
Implemented in SpecularBeamInclinationItem, BeamWavelengthItem, BeamInclinationAngleItem, and BeamAzimuthalAngleItem.
void BeamDistributionItem::setDistribution | ( | DistributionItem * | d | ) |
Definition at line 70 of file BeamDistributionItem.cpp.
References m_distribution, and SelectionProperty< T >::set().
T * BeamDistributionItem::setDistributionType |
Definition at line 52 of file BeamDistributionItem.h.
References SelectionProperty< T >::get(), m_distribution, and SelectionProperty< T >::set().
|
protected |
Definition at line 48 of file BeamDistributionItem.h.
Referenced by BeamAzimuthalAngleItem::BeamAzimuthalAngleItem(), BeamInclinationAngleItem::BeamInclinationAngleItem(), BeamWavelengthItem::BeamWavelengthItem(), SpecularBeamInclinationItem::SpecularBeamInclinationItem(), distribution(), distributionSelection(), resetToValue(), BeamAzimuthalAngleItem::serialize(), BeamInclinationAngleItem::serialize(), BeamWavelengthItem::serialize(), SpecularBeamInclinationItem::serialize(), setDistribution(), and setDistributionType().