16 #ifndef QGSQUICKUTILS_H    17 #define QGSQUICKUTILS_H    23 #include <QtPositioning/QGeoCoordinate>    34 #include "qgis_quick.h"    66     Q_PROPERTY( qreal dp READ screenDensity CONSTANT )
    75     qreal screenDensity() 
const;
    89     Q_INVOKABLE 
static QgsPointXY pointXY( 
double x, 
double y );
    96     Q_INVOKABLE 
static QgsPoint point( 
double x, 
double y, 
double z = std::numeric_limits<double>::quiet_NaN(), 
double m = std::numeric_limits<double>::quiet_NaN() );
   103     Q_INVOKABLE 
static QgsPoint coordinateToPoint( 
const QGeoCoordinate &coor );
   118     Q_INVOKABLE 
static double screenUnitsToMeters( 
QgsQuickMapSettings *mapSettings, 
int baseLengthPixels );
   124     Q_INVOKABLE 
static bool fileExists( 
const QString &path );
   130     Q_INVOKABLE 
static QString getFileName( 
const QString &path );
   135     Q_INVOKABLE 
static void logMessage( 
const QString &message,
   136                                         const QString &tag = QString( 
"QgsQuick" ),
   153     Q_INVOKABLE 
static const QUrl getThemeIcon( 
const QString &name );
   162     Q_INVOKABLE 
static const QUrl getEditorComponentSource( 
const QString &widgetName );
   169     Q_INVOKABLE 
static QString formatPoint(
   192     Q_INVOKABLE 
static QString formatDistance( 
double distance,
   210     static void humanReadableDistance( 
double srcDistance,
   213                                        double &destDistance,
   217     QString dumpScreenInfo() 
const;
   220     static void formatToMetricDistance( 
double srcDistance,
   222                                         double &destDistance,
   225     static void formatToImperialDistance( 
double srcDistance,
   227                                           double &destDistance,
   230     static void formatToUSCSDistance( 
double srcDistance,
   232                                       double &destDistance,
   236     static qreal calculateScreenDensity();
   238     qreal mScreenDensity;
   241 #endif // QGSQUICKUTILS_H SystemOfMeasurement
Systems of unit measurement. 
 
Encapsulating the common utilies for QgsQuick library. 
 
A class to represent a 2D point. 
 
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
 
MessageLevel
Level for messages This will be used both for message log and message bar in application. 
 
The QgsQuickMapSettings class encapsulates QgsMapSettings class to offer settings of configuration of...
 
International System of Units (SI) 
 
Contains information about the context in which a coordinate transform is executed. 
 
Point geometry type, with support for z-dimension and m-values. 
 
DistanceUnit
Units of distance. 
 
This class represents a coordinate reference system (CRS). 
 
Pair of QgsFeature and QgsVectorLayer. 
 
Represents a vector layer which manages a vector based data sets.