#include <QGCMapEngineManager.h>
Definition at line 12 of file QGCMapEngineManager.h.
◆ ImportAction
| Enumerator |
|---|
| ActionNone | |
| ActionImporting | |
| ActionExporting | |
| ActionDone | |
Definition at line 39 of file QGCMapEngineManager.h.
◆ QGCMapEngineManager()
| QGCMapEngineManager::QGCMapEngineManager |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ ~QGCMapEngineManager()
| QGCMapEngineManager::~QGCMapEngineManager |
( |
| ) |
|
◆ actionProgress()
| int QGCMapEngineManager::actionProgress |
( |
| ) |
const |
|
inline |
◆ actionProgressChanged
| void QGCMapEngineManager::actionProgressChanged |
( |
| ) |
|
|
signal |
◆ deleteTileSet()
Definition at line 206 of file QGCMapEngineManager.cc.
References QGCMapEngine::addTask(), QmlObjectListModel::count(), QGCCachedTileSet::defaultSet(), QGCMapTask::error(), QmlObjectListModel::get(), getQGCMapEngine(), QGCCachedTileSet::id(), QGCCachedTileSet::name(), QGCResetTask::resetCompleted(), QGCCachedTileSet::setDeleting(), taskError(), and QGCDeleteTileSetTask::tileSetDeleted().
◆ elevationProviderList()
| QStringList QGCMapEngineManager::elevationProviderList |
( |
| ) |
|
|
static |
◆ errorMessage()
| QString QGCMapEngineManager::errorMessage |
( |
| ) |
const |
|
inline |
◆ errorMessageChanged
| void QGCMapEngineManager::errorMessageChanged |
( |
| ) |
|
|
signal |
◆ exportSets()
| bool QGCMapEngineManager::exportSets |
( |
const QString & |
path = QString() | ) |
|
Definition at line 389 of file QGCMapEngineManager.cc.
References QGCExportTileTask::actionCompleted(), ActionExporting, ActionNone, QGCExportTileTask::actionProgress(), QGCMapEngine::addTask(), QGCCachedTileSet::bottomRightLat(), TileSetRecord::bottomRightLat, QGCCachedTileSet::bottomRightLon(), TileSetRecord::bottomRightLon, QmlObjectListModel::count(), QGCCachedTileSet::creationDate(), TileSetRecord::date, QGCCachedTileSet::defaultSet(), TileSetRecord::defaultSet, QGCMapTask::error(), QmlObjectListModel::get(), getQGCMapEngine(), UrlFactory::getQtMapIdFromProviderType(), QGCCachedTileSet::id(), QGCCachedTileSet::mapTypeStr(), TileSetRecord::mapTypeStr, QGCCachedTileSet::maxZoom(), TileSetRecord::maxZoom, QGCCachedTileSet::minZoom(), TileSetRecord::minZoom, QGCCachedTileSet::name(), TileSetRecord::name, TileSetRecord::numTiles, QGCCachedTileSet::selected(), TileSetRecord::setID, setImportAction(), taskError(), QGCCachedTileSet::topleftLat(), TileSetRecord::topleftLat, QGCCachedTileSet::topleftLon(), TileSetRecord::topleftLon, QGCCachedTileSet::totalTileCount(), QGCCachedTileSet::type(), and TileSetRecord::type.
◆ fetchElevationChanged
| void QGCMapEngineManager::fetchElevationChanged |
( |
| ) |
|
|
signal |
◆ findName()
| bool QGCMapEngineManager::findName |
( |
const QString & |
name | ) |
const |
◆ freeDiskSpaceChanged
| void QGCMapEngineManager::freeDiskSpaceChanged |
( |
| ) |
|
|
signal |
◆ getUniqueName()
| QString QGCMapEngineManager::getUniqueName |
( |
| ) |
const |
◆ importAction()
◆ importActionChanged
| void QGCMapEngineManager::importActionChanged |
( |
| ) |
|
|
signal |
◆ importArchive()
| bool QGCMapEngineManager::importArchive |
( |
const QString & |
archivePath | ) |
|
Import tile sets from an archive file (.zip, .tar.gz, etc.) If the path is an archive, it will be extracted first, then imported.
- Parameters
-
| archivePath | Path to the archive file |
- Returns
- true if import/extraction started successfully
Definition at line 484 of file QGCMapEngineManager.cc.
References ActionImporting, QGCCompressionJob::extractArchive(), QGCCompressionJob::finished(), QGCCompression::isArchiveFile(), QGCCompressionJob::progressChanged(), setActionProgress(), setErrorMessage(), and setImportAction().
◆ importReplaceChanged
| void QGCMapEngineManager::importReplaceChanged |
( |
| ) |
|
|
signal |
◆ importSets()
| bool QGCMapEngineManager::importSets |
( |
const QString & |
path = QString() | ) |
|
◆ instance()
◆ loadSetting()
| QString QGCMapEngineManager::loadSetting |
( |
const QString & |
key, |
|
|
const QString & |
defaultValue |
|
) |
| |
|
static |
◆ loadTileSets()
| void QGCMapEngineManager::loadTileSets |
( |
| ) |
|
◆ mapList()
| QStringList QGCMapEngineManager::mapList |
( |
| ) |
|
|
static |
◆ mapProviderList()
| QStringList QGCMapEngineManager::mapProviderList |
( |
| ) |
|
|
static |
◆ mapTypeList()
| QStringList QGCMapEngineManager::mapTypeList |
( |
const QString & |
provider | ) |
|
|
static |
◆ renameTileSet()
| void QGCMapEngineManager::renameTileSet |
( |
QGCCachedTileSet * |
tileSet, |
|
|
const QString & |
newName |
|
) |
| |
◆ resetAction()
| Q_INVOKABLE void QGCMapEngineManager::resetAction |
( |
| ) |
|
|
inline |
◆ saveSetting()
| void QGCMapEngineManager::saveSetting |
( |
const QString & |
key, |
|
|
const QString & |
value |
|
) |
| |
|
static |
◆ selectAll()
| void QGCMapEngineManager::selectAll |
( |
| ) |
|
◆ selectedCount()
| int QGCMapEngineManager::selectedCount |
( |
| ) |
const |
◆ selectedCountChanged
| void QGCMapEngineManager::selectedCountChanged |
( |
| ) |
|
|
signal |
◆ selectNone()
| void QGCMapEngineManager::selectNone |
( |
| ) |
|
◆ setActionProgress()
| void QGCMapEngineManager::setActionProgress |
( |
int |
percentage | ) |
|
|
inline |
◆ setErrorMessage()
| void QGCMapEngineManager::setErrorMessage |
( |
const QString & |
error | ) |
|
|
inline |
◆ setImportAction()
| void QGCMapEngineManager::setImportAction |
( |
ImportAction |
action | ) |
|
|
inline |
◆ startDownload()
| void QGCMapEngineManager::startDownload |
( |
const QString & |
name, |
|
|
const QString & |
mapType |
|
) |
| |
Definition at line 120 of file QGCMapEngineManager.cc.
References QGCMapEngine::addTask(), QGCMapTask::error(), SettingsManager::flightMapSettings(), getQGCMapEngine(), UrlFactory::getQtMapIdFromProviderType(), SettingsManager::instance(), UrlFactory::isElevation(), QGCCachedTileSet::setBottomRightLat(), QGCCachedTileSet::setBottomRightLon(), QGCCachedTileSet::setMapTypeStr(), QGCCachedTileSet::setMaxZoom(), QGCCachedTileSet::setMinZoom(), QGCCachedTileSet::setTopleftLat(), QGCCachedTileSet::setTopleftLon(), QGCCachedTileSet::setTotalTileCount(), QGCCachedTileSet::setTotalTileSize(), QGCCachedTileSet::setType(), taskError(), QGCTileSet::tileCount, QGCCreateTileSetTask::tileSetSaved(), and QGCTileSet::tileSize.
◆ taskError
Definition at line 268 of file QGCMapEngineManager.cc.
References error, setErrorMessage(), QGCMapTask::taskCreateTileSet, QGCMapTask::taskDeleteTileSet, QGCMapTask::taskExport, QGCMapTask::taskFetchTileSets, QGCMapTask::taskGetTileDownloadList, QGCMapTask::taskReset, and QGCMapTask::taskUpdateTileDownloadState.
Referenced by QGCCachedTileSet::createDownloadTask(), deleteTileSet(), exportSets(), importSets(), loadTileSets(), renameTileSet(), and startDownload().
◆ tileCount()
| quint64 QGCMapEngineManager::tileCount |
( |
| ) |
const |
|
inline |
◆ tileCountChanged
| void QGCMapEngineManager::tileCountChanged |
( |
| ) |
|
|
signal |
◆ tileCountStr()
| QString QGCMapEngineManager::tileCountStr |
( |
| ) |
const |
◆ tileSets()
◆ tileSetsChanged
| void QGCMapEngineManager::tileSetsChanged |
( |
| ) |
|
|
signal |
◆ tileSize()
| quint64 QGCMapEngineManager::tileSize |
( |
| ) |
const |
|
inline |
◆ tileSizeChanged
| void QGCMapEngineManager::tileSizeChanged |
( |
| ) |
|
|
signal |
◆ tileSizeStr()
| QString QGCMapEngineManager::tileSizeStr |
( |
| ) |
const |
◆ updateForCurrentView()
| void QGCMapEngineManager::updateForCurrentView |
( |
double |
lon0, |
|
|
double |
lat0, |
|
|
double |
lon1, |
|
|
double |
lat1, |
|
|
int |
minZoom, |
|
|
int |
maxZoom, |
|
|
const QString & |
mapName |
|
) |
| |
The documentation for this class was generated from the following files: