Marble

GeoDataVec2.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2012 Mohammed Nafees <[email protected]>
4 //
5 
6 #ifndef GEODATAVEC2_H
7 #define GEODATAVEC2_H
8 
9 #include <QPointF>
10 #include "geodata_export.h"
11 
12 class QString;
13 
14 namespace Marble {
15 
16 class GeoDataVec2Private;
17 
18 class GEODATA_EXPORT GeoDataVec2 : public QPointF
19 {
20 public:
21  enum Unit {Fraction, Pixels, InsetPixels};
22 
23  GeoDataVec2();
24 
25  GeoDataVec2(qreal x, qreal y, const QString &xunit, const QString &yunit);
26 
27  GeoDataVec2( const GeoDataVec2 &other );
28 
29  GeoDataVec2& operator=( const GeoDataVec2 &other );
30  bool operator==( const GeoDataVec2 &other ) const;
31  bool operator!=( const GeoDataVec2 &other ) const;
32  ~GeoDataVec2();
33 
34  Unit xunit() const;
35  void setXunits( Unit xunit );
36 
37  Unit yunit() const;
38  void setYunits( Unit yunit );
39 
40 private:
41  GeoDataVec2Private* const d;
42 };
43 
44 }
45 
46 #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 Mon Oct 2 2023 03:52:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.