8#ifndef KWEATHERCORE_CAPAREA_H
9#define KWEATHERCORE_CAPAREA_H
11#include "capnamedvalue.h"
12#include <kweathercore/kweathercore_export.h>
15#include <QSharedDataPointer>
27 float longitude = NAN;
31using CAPPolygon = std::vector<CAPCoordinate>;
37 Q_PROPERTY(
float latitude MEMBER latitude)
38 Q_PROPERTY(
float longitude MEMBER longitude)
39 Q_PROPERTY(
float radius MEMBER radius)
43 float longitude = NAN;
55 Q_PROPERTY(
QString description READ description)
56 Q_PROPERTY(
float altitude READ altitude)
57 Q_PROPERTY(
float ceiling READ ceiling)
68 void setDescription(
const QString &areaDesc);
71 const std::vector<CAPPolygon> &polygons()
const;
72 void addPolygon(CAPPolygon &&polygon);
75 const std::vector<CAPCircle> &circles()
const;
79 const std::vector<CAPNamedValue> &geoCodes()
const;
86 float altitude()
const;
87 void setAltitude(
float altitude);
93 float ceiling()
const;
94 void setCeiling(
float ceiling);
Affected area of a CAP alert message.
Geographic circle describing the target area of a CAP alert message.
A geographic coordinate as part of a polygon.
CAP key/value pairs as found in area geo codes, alert event codes or alert parameters.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 12:00:07 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.