The QKnxCloudCover class is a datapoint type for storing the scale of the sky obscured by clouds when observed from a particular location. 更多...
头: | #include <QKnxCloudCover> |
qmake: | QT += knx |
Since: | Qt 5.12 |
继承: | QKnx1Byte |
该类在 Qt 5.12 引入。
enum class | Scale { Cloudless, Sunny, Sunshiny, LightlyCloudy, ScatteredClouds, …, Invalid } |
QKnxCloudCover (QKnxCloudCover::Scale scale ) | |
QKnxCloudCover () | |
QKnxCloudCover::Scale | cloudCover () const |
bool | setCloudCover (QKnxCloudCover::Scale scale ) |
Okta is the usual unit of measurement of the cloud cover. The cloud cover is correlated to the sunshine duration as the least cloudy locales are the sunniest ones while the cloudiest areas are the least sunny places.
This is a fixed size datapoint type with the length of 1 byte.
另请参阅 QKnxDatapointType , QKnx1Byte ,和 Qt KNX Datapoint Type Classes .
This enum holds the unit of measurement (Okta) used to describe the amount of cloud cover at any given location. Sky conditions are estimated in terms of how many eighths of the sky are covered in cloud, ranging from completely clear sky through to completely overcast.
常量 | 值 | 描述 |
---|---|---|
QKnxCloudCover::Scale::Cloudless
|
0x00
|
Denotes a sky that is completely clear. |
QKnxCloudCover::Scale::Sunny
|
0x01
|
Denotes a cloud amount of 1/8 or less, but not
Cloudless
.
|
QKnxCloudCover::Scale::Sunshiny
|
0x02
|
Denotes a cloud amount of 2/8 or less, but not
Sunny
.
|
QKnxCloudCover::Scale::LightlyCloudy
|
0x03
|
Denotes a cloud amount of 3/8 or less, but not
Sunshiny
.
|
QKnxCloudCover::Scale::ScatteredClouds
|
0x04
|
Denotes a cloud amount of 4/8, so the sky is half cloudy. |
QKnxCloudCover::Scale::Cloudy
|
0x05
|
Denotes a cloud amount of 5/8 or more, but not
VeryCloudy
.
|
QKnxCloudCover::Scale::VeryCloudy
|
0x06
|
Denotes a cloud amount of 6/8 or more, but not
AlmostOvercast
.
|
QKnxCloudCover::Scale::AlmostOvercast
|
0x07
|
Denotes a cloud amount of 7/8 or more, but not
Overcast
.
|
QKnxCloudCover::Scale::Overcast
|
0x08
|
Denotes a sky with full cloud cover and no breaks. |
QKnxCloudCover::Scale::ObstructedFromView
|
0x09
|
Denotes a sky obscured by fog or other meteorological phenomena. |
QKnxCloudCover::Scale::Invalid
|
0xff
|
The value is invalid. |
Creates a fixed size datapoint type with the cloud cover scale set to scale .
Creates a fixed size datapoint type with the cloud cover scale set to
Cloudless
.
Returns the cloud cover scale stored in the datapoint type.
另请参阅 setCloudCover ().
Sets the cloud cover scale stored in the datapoint type to scale .
返回
true
若
scale
was set; otherwise returns
false
.
另请参阅 cloudCover ().