15 #ifndef BORNAGAIN_GUI_MODEL_DEVICE_BEAMDISTRIBUTIONITEM_H
16 #define BORNAGAIN_GUI_MODEL_DEVICE_BEAMDISTRIBUTIONITEM_H
20 #include "Param/Distrib/ParameterDistribution.h"
31 std::unique_ptr<ParameterDistribution>
Defines class DistributionItem and several subclasses.
Defines class SelectionProperty.
The BeamDistributionItem handles wavelength, inclination and azimuthal parameter distribution for Bea...
SelectionDescriptor< DistributionItem * > distributionSelection() const
virtual void serialize(Streamer &s)=0
T * setDistributionType()
DistributionItem * distribution() const
void setDistribution(DistributionItem *d)
virtual std::unique_ptr< IDistribution1D > createDistribution1D() const
void resetToValue(double value)
virtual double scaleFactor() const
std::unique_ptr< ParameterDistribution > getParameterDistributionForName(ParameterDistribution::WhichParameter which) const
virtual ~BeamDistributionItem()=default
SelectionProperty< DistributionItem * > m_distribution
virtual double meanValue() const
Describes a selection (various possibilities and the current one).
void set(T t, bool callInitializer=false)
Directly set the new item.
T get() const
Direct access to the stored pointer.
Supports serialization to or deserialization from QXmlStream.