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
13class GeoDataScreenOverlayPrivate;
14
15/**
16 */
17class GEODATA_EXPORT GeoDataScreenOverlay: public GeoDataOverlay
18{
19public:
20 GeoDataScreenOverlay();
21
22 GeoDataScreenOverlay( const GeoDataScreenOverlay &other );
23
24 ~GeoDataScreenOverlay() override;
25
26 GeoDataScreenOverlay& operator=( const GeoDataScreenOverlay &other );
27 bool operator==( const GeoDataScreenOverlay &other ) const;
28 bool operator!=( const GeoDataScreenOverlay &other ) const;
29
30 GeoDataFeature * clone() const override;
31
32 /** Provides type information for downcasting a GeoNode */
33 const char* nodeType() const override;
34
35 GeoDataVec2 overlayXY() const;
36 void setOverlayXY( const GeoDataVec2 &vec2 );
37 void setOverlayXY(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit);
38
39 GeoDataVec2 screenXY() const;
40 void setScreenXY( const GeoDataVec2 &vec2 );
41 void setScreenXY(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit);
42
43 GeoDataVec2 rotationXY() const;
44 void setRotationXY( const GeoDataVec2 &vec2 );
45 void setRotationXY(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit);
46
47 GeoDataVec2 size() const;
48 void setSize( const GeoDataVec2 &vec2 );
49 void setSize(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit);
50
51 qreal rotation() const;
52 void setRotation( qreal rotation );
53
54private:
55 Q_DECLARE_PRIVATE(GeoDataScreenOverlay)
56};
57
58}
59
60#endif
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
bool operator!=(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.