QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
UrlFactory Class Reference

#include <QGCMapUrlEngine.h>

Static Public Member Functions

static QString getImageFormat (QStringView type, QByteArrayView image)
static QString getImageFormat (int qtMapId, QByteArrayView image)
static QUrl getTileURL (QStringView type, int x, int y, int zoom)
static QUrl getTileURL (int qtMapId, int x, int y, int zoom)
static quint32 averageSizeForType (QStringView type)
static bool isElevation (int qtMapId)
static int long2tileX (QStringView mapType, double lon, int z)
static int lat2tileY (QStringView mapType, double lat, int z)
static QGCTileSet getTileCount (int zoom, double topleftLon, double topleftLat, double bottomRightLon, double bottomRightLat, QStringView mapType)
static const QList< std::shared_ptr< const MapProvider > > & getProviders ()
static QStringList getElevationProviderTypes ()
static QStringList getProviderTypes ()
static int getQtMapIdFromProviderType (QStringView type)
static QString getProviderTypeFromQtMapId (int qtMapId)
static std::shared_ptr< const MapProvider > getMapProviderFromQtMapId (int qtMapId)
static std::shared_ptr< const MapProvider > getMapProviderFromProviderType (QStringView type)
static QString providerTypeFromHash (int hash)
static int hashFromProviderType (QStringView type)
static QString tileHashToType (QStringView tileHash)
static QString getTileHash (QStringView type, int x, int y, int z)

Detailed Description

Definition at line 17 of file QGCMapUrlEngine.h.

Member Function Documentation

◆ averageSizeForType()

quint32 UrlFactory::averageSizeForType ( QStringView type)
static

◆ getElevationProviderTypes()

QStringList UrlFactory::getElevationProviderTypes ( )
static

Definition at line 232 of file QGCMapUrlEngine.cpp.

Referenced by QGCMapEngineManager::mapProviderList().

◆ getImageFormat() [1/2]

QString UrlFactory::getImageFormat ( int qtMapId,
QByteArrayView image )
static

Definition at line 76 of file QGCMapUrlEngine.cpp.

References getMapProviderFromQtMapId().

◆ getImageFormat() [2/2]

QString UrlFactory::getImageFormat ( QStringView type,
QByteArrayView image )
static

Definition at line 86 of file QGCMapUrlEngine.cpp.

References getMapProviderFromProviderType().

◆ getMapProviderFromProviderType()

SharedMapProvider UrlFactory::getMapProviderFromProviderType ( QStringView type)
static

◆ getMapProviderFromQtMapId()

SharedMapProvider UrlFactory::getMapProviderFromQtMapId ( int qtMapId)
static

◆ getProviders()

const QList< std::shared_ptr< const MapProvider > > & UrlFactory::getProviders ( )
inlinestatic

◆ getProviderTypeFromQtMapId()

QString UrlFactory::getProviderTypeFromQtMapId ( int qtMapId)
static

◆ getProviderTypes()

QStringList UrlFactory::getProviderTypes ( )
static

Definition at line 244 of file QGCMapUrlEngine.cpp.

Referenced by QGCMapEngineManager::mapList().

◆ getQtMapIdFromProviderType()

int UrlFactory::getQtMapIdFromProviderType ( QStringView type)
static

◆ getTileCount()

QGCTileSet UrlFactory::getTileCount ( int zoom,
double topleftLon,
double topleftLat,
double bottomRightLon,
double bottomRightLat,
QStringView mapType )
static

◆ getTileHash()

QString UrlFactory::getTileHash ( QStringView type,
int x,
int y,
int z )
static

◆ getTileURL() [1/2]

QUrl UrlFactory::getTileURL ( int qtMapId,
int x,
int y,
int zoom )
static

Definition at line 96 of file QGCMapUrlEngine.cpp.

References getMapProviderFromQtMapId().

◆ getTileURL() [2/2]

QUrl UrlFactory::getTileURL ( QStringView type,
int x,
int y,
int zoom )
static

Definition at line 106 of file QGCMapUrlEngine.cpp.

References getMapProviderFromProviderType().

◆ hashFromProviderType()

int UrlFactory::hashFromProviderType ( QStringView type)
static

Definition at line 267 of file QGCMapUrlEngine.cpp.

Referenced by getTileHash(), and providerTypeFromHash().

◆ isElevation()

bool UrlFactory::isElevation ( int qtMapId)
static

Definition at line 126 of file QGCMapUrlEngine.cpp.

References getMapProviderFromQtMapId().

Referenced by QGCMapEngineManager::startDownload().

◆ lat2tileY()

int UrlFactory::lat2tileY ( QStringView mapType,
double lat,
int z )
static

Definition at line 146 of file QGCMapUrlEngine.cpp.

References getMapProviderFromProviderType().

◆ long2tileX()

int UrlFactory::long2tileX ( QStringView mapType,
double lon,
int z )
static

Definition at line 136 of file QGCMapUrlEngine.cpp.

References getMapProviderFromProviderType().

◆ providerTypeFromHash()

QString UrlFactory::providerTypeFromHash ( int hash)
static

Definition at line 254 of file QGCMapUrlEngine.cpp.

References hashFromProviderType().

Referenced by tileHashToType().

◆ tileHashToType()

QString UrlFactory::tileHashToType ( QStringView tileHash)
static

Definition at line 279 of file QGCMapUrlEngine.cpp.

References providerTypeFromHash().


The documentation for this class was generated from the following files: