QKnxCloudCover Class
The QKnxCloudCover class is a datapoint type for storing the scale of the sky obscured by clouds when observed from a particular location. More...
Header: | #include <QKnxCloudCover> |
qmake: | QT += knx |
Since: | Qt 5.12 |
Inherits: | QKnx1Byte |
This class was introduced in Qt 5.12.
Public Types
enum class | Scale { Cloudless, Sunny, Sunshiny, LightlyCloudy, ScatteredClouds, …, Invalid } |
Public Functions
QKnxCloudCover(QKnxCloudCover::Scale scale) | |
QKnxCloudCover() | |
QKnxCloudCover::Scale | cloudCover() const |
bool | setCloudCover(QKnxCloudCover::Scale scale) |
Detailed Description
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.
See also QKnxDatapointType, QKnx1Byte, and Qt KNX Datapoint Type Classes.
Member Type Documentation
enum class QKnxCloudCover::Scale
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.
Constant | Value | Description |
---|---|---|
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. |
Member Function Documentation
QKnxCloudCover::QKnxCloudCover(QKnxCloudCover::Scale scale)
Creates a fixed size datapoint type with the cloud cover scale set to scale.
QKnxCloudCover::QKnxCloudCover()
Creates a fixed size datapoint type with the cloud cover scale set to Cloudless
.
QKnxCloudCover::Scale QKnxCloudCover::cloudCover() const
Returns the cloud cover scale stored in the datapoint type.
See also setCloudCover().
bool QKnxCloudCover::setCloudCover(QKnxCloudCover::Scale scale)
Sets the cloud cover scale stored in the datapoint type to scale.
Returns true
if the scale was set; otherwise returns false
.
See also cloudCover().
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.