6 #ifndef SWIFT_MISC_WEATHER_CLOUDLAYER_H
7 #define SWIFT_MISC_WEATHER_CLOUDLAYER_H
21 namespace swift::misc::weather
63 IndexBase = swift::misc::CPropertyIndexRef::GlobalIndexCCloudLayer,
65 IndexPrecipitationRate,
112 void setCoverage(Coverage coverage);
115 Coverage getCoverage()
const;
130 QString convertToQString(
bool i18n =
false)
const;
135 double m_precipitationRate = 0;
136 Precipitation m_precipitation = NoPrecipitation;
137 Clouds m_clouds = NoClouds;
138 int m_coveragePercent {};
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
Altitude as used in aviation, can be AGL or MSL altitude.
ColumnIndex
Base class enums.
Value object for a cloud layer.
Clouds getClouds() const
Get cloud type.
Precipitation
Precipitation Type.
void setBase(const misc::aviation::CAltitude &base)
Set base.
int getCoveragePercent() const
Get coverage in %.
misc::aviation::CAltitude getTop() const
Get layer top.
CCloudLayer()=default
Default constructor.
double getPrecipitationRate() const
Get precipitation rate in mm/h.
misc::aviation::CAltitude getBase() const
Get base.
void setPrecipitationRate(double rate)
Set precipitation rate in mm/h.
void setClouds(Clouds type)
Set cloud type.
void setCoveragePercent(int coverage)
Set coverage in %.
Precipitation getPrecipitation() const
Get precipitation.
void setPrecipitation(Precipitation type)
Set precipitation.
void setTop(const misc::aviation::CAltitude &top)
Set layer top.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...