16 #include "Base/Const/Units.h"
40 newDistribution->
setLimits(RealLimits::limited(-90.0, 90.0));
49 nd->setMeanDecimals(3);
98 newDistribution->
setLimits(RealLimits::limited(-90.0, 90.0));
101 double meanVal = 0.2;
103 meanVal = cd->mean();
106 nd->setMean(meanVal);
107 nd->setMeanDecimals(3);
Defines class BeamAngleItems.
Defines class DistributionItemCatalog.
static void initDistribution(DistributionItem *newDistribution, const DistributionItem *currentDistribution)
double azimuthalAngle() const
double scaleFactor() const override
void serialize(Streamer &s) override
SelectionProperty< DistributionItem * > m_distribution
virtual double meanValue() const
void serialize(Streamer &s) override
BeamInclinationAngleItem()
double inclinationAngle() const
double scaleFactor() const override
static void initDistribution(DistributionItem *newDistribution, const DistributionItem *currentDistribution)
static QVector< Type > types()
Available types of items.
virtual void setLimits(const RealLimits &limits)
virtual void initDistribution(double)
virtual void setUnit(const variant< QString, Unit > &unit)=0
Set the unit of the distributed value.
void initWithInitializer(const QString &label, const QString &tooltip, const QString &persistentTag, std::function< void(T newItem, const T oldItem)> initializer)
Initialize by means of a catalog class and an initializer function.
Supports serialization to or deserialization from QXmlStream.
QXmlStreamReader * xmlReader()
Returns stream reader or nullptr.
void assertVersion(unsigned expectedVersion) const
As reader, throws DeserializationException unless the expected version is read. As writer,...