Marble

GeoDataLatLonQuad.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2013 Mayank Madan <maddiemadan@gmail.com>
4//
5
6#ifndef GEODATALATLONQUAD_H
7#define GEODATALATLONQUAD_H
8
9#include "GeoDataCoordinates.h"
10#include "GeoDataObject.h"
11#include "MarbleGlobal.h"
12
13namespace Marble
14{
15
16class GeoDataLatLonQuadPrivate;
17
18/**
19 */
20class GEODATA_EXPORT GeoDataLatLonQuad : public GeoDataObject
21{
22public:
23 GeoDataLatLonQuad();
24
25 GeoDataLatLonQuad(const GeoDataLatLonQuad &other);
26
27 GeoDataLatLonQuad &operator=(const GeoDataLatLonQuad &other);
28 bool operator==(const GeoDataLatLonQuad &other) const;
29 bool operator!=(const GeoDataLatLonQuad &other) const;
30
31 ~GeoDataLatLonQuad() override;
32
33 /** Provides type information for downcasting a GeoNode */
34 const char *nodeType() const override;
35
36 qreal bottomLeftLatitude(GeoDataCoordinates::Unit unit) const;
37 qreal bottomRightLatitude(GeoDataCoordinates::Unit unit) const;
38 qreal topRightLatitude(GeoDataCoordinates::Unit unit) const;
39 qreal topLeftLatitude(GeoDataCoordinates::Unit unit) const;
40
41 qreal bottomLeftLongitude(GeoDataCoordinates::Unit unit) const;
42 qreal bottomRightLongitude(GeoDataCoordinates::Unit unit) const;
43 qreal topRightLongitude(GeoDataCoordinates::Unit unit) const;
44 qreal topLeftLongitude(GeoDataCoordinates::Unit unit) const;
45
46 void setBottomLeftLatitude(qreal latitude, GeoDataCoordinates::Unit unit);
47 void setBottomRightLatitude(qreal latitude, GeoDataCoordinates::Unit unit);
48 void setTopRightLatitude(qreal latitude, GeoDataCoordinates::Unit unit);
49 void setTopLeftLatitude(qreal latitude, GeoDataCoordinates::Unit unit);
50
51 void setBottomLeftLongitude(qreal longitude, GeoDataCoordinates::Unit unit);
52 void setBottomRightLongitude(qreal longitude, GeoDataCoordinates::Unit unit);
53 void setTopRightLongitude(qreal longitude, GeoDataCoordinates::Unit unit);
54 void setTopLeftLongitude(qreal longitude, GeoDataCoordinates::Unit unit);
55
56 GeoDataCoordinates &bottomLeft() const;
57 void setBottomLeft(const GeoDataCoordinates &coordinates);
58
59 GeoDataCoordinates &bottomRight() const;
60 void setBottomRight(const GeoDataCoordinates &coordinates);
61
62 GeoDataCoordinates &topRight() const;
63 void setTopRight(const GeoDataCoordinates &coordinates);
64
65 GeoDataCoordinates &topLeft() const;
66 void setTopLeft(const GeoDataCoordinates &coordinates);
67
68 bool isValid() const;
69
70private:
71 GeoDataLatLonQuadPrivate *const d;
72};
73
74}
75
76#endif
KIOCORE_EXPORT bool operator!=(const UDSEntry &entry, const UDSEntry &other)
bool isValid(QStringView ifopt)
bool operator==(const StyleDelim &l, const StyleDelim &r)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.