Marble

GeoDataScreenOverlay.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2// SPDX-FileCopyrightText: 2012 Mohammed Nafees <nafees.technocool@gmail.com>
3
4#ifndef GEODATASCREENOVERLAY_H
5#define GEODATASCREENOVERLAY_H
6
7#include "GeoDataOverlay.h"
8#include "GeoDataVec2.h"
9#include "MarbleGlobal.h"
10
11namespace Marble
12{
13
14class GeoDataScreenOverlayPrivate;
15
16/**
17 */
18class GEODATA_EXPORT GeoDataScreenOverlay : public GeoDataOverlay
19{
20public:
21 GeoDataScreenOverlay();
22
23 GeoDataScreenOverlay(const GeoDataScreenOverlay &other);
24
25 ~GeoDataScreenOverlay() override;
26
27 GeoDataScreenOverlay &operator=(const GeoDataScreenOverlay &other);
28 bool operator==(const GeoDataScreenOverlay &other) const;
29 bool operator!=(const GeoDataScreenOverlay &other) const;
30
31 GeoDataFeature *clone() const override;
32
33 /** Provides type information for downcasting a GeoNode */
34 const char *nodeType() const override;
35
36 GeoDataVec2 overlayXY() const;
37 void setOverlayXY(const GeoDataVec2 &vec2);
38 void setOverlayXY(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit);
39
40 GeoDataVec2 screenXY() const;
41 void setScreenXY(const GeoDataVec2 &vec2);
42 void setScreenXY(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit);
43
44 GeoDataVec2 rotationXY() const;
45 void setRotationXY(const GeoDataVec2 &vec2);
46 void setRotationXY(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit);
47
48 GeoDataVec2 size() const;
49 void setSize(const GeoDataVec2 &vec2);
50 void setSize(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit);
51
52 qreal rotation() const;
53 void setRotation(qreal rotation);
54
55private:
56 Q_DECLARE_PRIVATE(GeoDataScreenOverlay)
57};
58
59}
60
61#endif
KIOCORE_EXPORT bool operator!=(const UDSEntry &entry, const UDSEntry &other)
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
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 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.