Marble

GeoDataVec2.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2012 Mohammed Nafees <nafees.technocool@gmail.com>
4//
5
6#ifndef GEODATAVEC2_H
7#define GEODATAVEC2_H
8
9#include <QPointF>
10#include "geodata_export.h"
11
12class QString;
13
14namespace Marble {
15
16class GeoDataVec2Private;
17
18class GEODATA_EXPORT GeoDataVec2 : public QPointF
19{
20public:
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
40private:
41 GeoDataVec2Private* const d;
42};
43
44}
45
46#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 Fri Jun 21 2024 12:00:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.