Marble

GeoDataScreenOverlay.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 // SPDX-FileCopyrightText: 2012 Mohammed Nafees <[email protected]>
3 
4 #ifndef GEODATASCREENOVERLAY_H
5 #define GEODATASCREENOVERLAY_H
6 
7 #include "GeoDataOverlay.h"
8 #include "GeoDataVec2.h"
9 #include "MarbleGlobal.h"
10 
11 namespace Marble {
12 
13 class GeoDataScreenOverlayPrivate;
14 
15 /**
16  */
17 class GEODATA_EXPORT GeoDataScreenOverlay: public GeoDataOverlay
18 {
19 public:
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 
54 private:
55  Q_DECLARE_PRIVATE(GeoDataScreenOverlay)
56 };
57 
58 }
59 
60 #endif
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
bool operator!=(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.