QGIS API Documentation  3.20.0-Odense (decaadbb31)
qgsquickutils.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsquickutils.h
3  --------------------------------------
4  Date : Nov 2017
5  Copyright : (C) 2017 by Peter Petrik
6  Email : zilolv at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSQUICKUTILS_H
17 #define QGSQUICKUTILS_H
18 
19 
20 #include <QObject>
21 #include <QString>
22 #include <QUrl>
23 #include <QtPositioning/QGeoCoordinate>
24 #include <QModelIndex>
25 
26 #include <limits>
27 
28 #include "qgis.h"
30 #include "qgsmessagelog.h"
31 #include "qgspoint.h"
32 #include "qgspointxy.h"
33 #include "qgsunittypes.h"
34 #include "qgsquickmapsettings.h"
35 #include "qgis_quick.h"
36 #include "qgscoordinateformatter.h"
37 
38 
39 class QgsFeature;
40 class QgsVectorLayer;
42 
52 class QUICK_EXPORT QgsQuickUtils: public QObject
53 {
54  Q_OBJECT
55 
67  Q_PROPERTY( qreal dp READ screenDensity CONSTANT )
68 
69  public:
71  QgsQuickUtils( QObject *parent = nullptr );
73  ~QgsQuickUtils() = default;
74 
76  qreal screenDensity() const;
77 
78  private:
79  static qreal calculateScreenDensity();
80 
81  qreal mScreenDensity;
82 };
83 
84 #endif // QGSQUICKUTILS_H
This class represents a coordinate reference system (CRS).
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Definition: qgsfeature.h:56
Encapsulating the common utilities for QgsQuick library.
Definition: qgsquickutils.h:53
~QgsQuickUtils()=default
Destructor.
Represents a vector layer which manages a vector based data sets.