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

#include <QGCCachedTileSet.h>

+ Inheritance diagram for QGCCachedTileSet:
+ Collaboration diagram for QGCCachedTileSet:

Signals

void deletingChanged ()
 
void downloadingChanged ()
 
void totalTileCountChanged ()
 
void uniqueTileCountChanged ()
 
void uniqueTileSizeChanged ()
 
void totalTilesSizeChanged ()
 
void savedTileCountChanged ()
 
void savedTileSizeChanged ()
 
void completeChanged ()
 
void errorCountChanged ()
 
void selectedChanged ()
 
void nameChanged ()
 

Public Member Functions

 QGCCachedTileSet (const QString &name, QObject *parent=nullptr)
 
 ~QGCCachedTileSet ()
 
Q_INVOKABLE void createDownloadTask ()
 
Q_INVOKABLE void resumeDownloadTask ()
 
Q_INVOKABLE void cancelDownloadTask ()
 
const QString & name () const
 
const QString & mapTypeStr () const
 
double topleftLat () const
 
double topleftLon () const
 
double bottomRightLat () const
 
double bottomRightLon () const
 
quint32 totalTileCount () const
 
QString totalTileCountStr () const
 
quint64 totalTilesSize () const
 
QString totalTilesSizeStr () const
 
quint32 uniqueTileCount () const
 
QString uniqueTileCountStr () const
 
quint64 uniqueTileSize () const
 
QString uniqueTileSizeStr () const
 
quint32 savedTileCount () const
 
QString savedTileCountStr () const
 
quint64 savedTileSize () const
 
QString savedTileSizeStr () const
 
QString downloadStatus () const
 
int minZoom () const
 
int maxZoom () const
 
const QDateTime & creationDate () const
 
quint64 id () const
 
const QString & type () const
 
bool complete () const
 
bool defaultSet () const
 
bool deleting () const
 
bool downloading () const
 
quint32 errorCount () const
 
QString errorCountStr () const
 
bool selected () const
 
void setManager (QGCMapEngineManager *mgr)
 
void setSelected (bool sel)
 
void setName (const QString &name)
 
void setMapTypeStr (const QString &typeStr)
 
void setTopleftLat (double lat)
 
void setTopleftLon (double lon)
 
void setBottomRightLat (double lat)
 
void setBottomRightLon (double lon)
 
void setUniqueTileCount (quint32 num)
 
void setTotalTileCount (quint32 num)
 
void setSavedTileCount (quint32 num)
 
void setUniqueTileSize (quint64 size)
 
void setTotalTileSize (quint64 size)
 
void setSavedTileSize (quint64 size)
 
void setMinZoom (int zoom)
 
void setMaxZoom (int zoom)
 
void setCreationDate (const QDateTime &date)
 
void setId (quint64 id)
 
void setType (const QString &type)
 
void setDefaultSet (bool def)
 
void setDeleting (bool del)
 
void setDownloading (bool down)
 
void setErrorCount (quint32 count)
 

Detailed Description

Definition at line 15 of file QGCCachedTileSet.h.

Constructor & Destructor Documentation

◆ QGCCachedTileSet()

QGCCachedTileSet::QGCCachedTileSet ( const QString &  name,
QObject *  parent = nullptr 
)
explicit

Definition at line 16 of file QGCCachedTileSet.cpp.

◆ ~QGCCachedTileSet()

QGCCachedTileSet::~QGCCachedTileSet ( )

Definition at line 23 of file QGCCachedTileSet.cpp.

Member Function Documentation

◆ bottomRightLat()

double QGCCachedTileSet::bottomRightLat ( ) const
inline

Definition at line 64 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::exportSets().

◆ bottomRightLon()

double QGCCachedTileSet::bottomRightLon ( ) const
inline

Definition at line 65 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::exportSets().

◆ cancelDownloadTask()

void QGCCachedTileSet::cancelDownloadTask ( )

Definition at line 81 of file QGCCachedTileSet.cpp.

◆ complete()

bool QGCCachedTileSet::complete ( ) const
inline

Definition at line 86 of file QGCCachedTileSet.h.

◆ completeChanged

void QGCCachedTileSet::completeChanged ( )
signal

◆ createDownloadTask()

◆ creationDate()

const QDateTime & QGCCachedTileSet::creationDate ( ) const
inline

Definition at line 83 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::exportSets().

◆ defaultSet()

bool QGCCachedTileSet::defaultSet ( ) const
inline

◆ deleting()

bool QGCCachedTileSet::deleting ( ) const
inline

Definition at line 88 of file QGCCachedTileSet.h.

◆ deletingChanged

void QGCCachedTileSet::deletingChanged ( )
signal

Referenced by setDeleting().

◆ downloading()

bool QGCCachedTileSet::downloading ( ) const
inline

Definition at line 89 of file QGCCachedTileSet.h.

◆ downloadingChanged

void QGCCachedTileSet::downloadingChanged ( )
signal

Referenced by setDownloading().

◆ downloadStatus()

QString QGCCachedTileSet::downloadStatus ( ) const

Definition at line 28 of file QGCCachedTileSet.cpp.

References savedTileSizeStr(), and totalTilesSizeStr().

◆ errorCount()

quint32 QGCCachedTileSet::errorCount ( ) const
inline

Definition at line 90 of file QGCCachedTileSet.h.

◆ errorCountChanged

void QGCCachedTileSet::errorCountChanged ( )
signal

Referenced by setErrorCount().

◆ errorCountStr()

QString QGCCachedTileSet::errorCountStr ( ) const

Definition at line 301 of file QGCCachedTileSet.cpp.

References QGC::numberToString().

◆ id()

quint64 QGCCachedTileSet::id ( ) const
inline

◆ mapTypeStr()

const QString & QGCCachedTileSet::mapTypeStr ( ) const
inline

Definition at line 60 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::exportSets().

◆ maxZoom()

int QGCCachedTileSet::maxZoom ( ) const
inline

Definition at line 82 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::exportSets().

◆ minZoom()

int QGCCachedTileSet::minZoom ( ) const
inline

Definition at line 81 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::exportSets().

◆ name()

const QString & QGCCachedTileSet::name ( ) const
inline

◆ nameChanged

void QGCCachedTileSet::nameChanged ( )
signal

◆ resumeDownloadTask()

void QGCCachedTileSet::resumeDownloadTask ( )

◆ savedTileCount()

quint32 QGCCachedTileSet::savedTileCount ( ) const
inline

Definition at line 75 of file QGCCachedTileSet.h.

◆ savedTileCountChanged

void QGCCachedTileSet::savedTileCountChanged ( )
signal

Referenced by setSavedTileCount().

◆ savedTileCountStr()

QString QGCCachedTileSet::savedTileCountStr ( ) const

Definition at line 326 of file QGCCachedTileSet.cpp.

References QGC::numberToString().

◆ savedTileSize()

quint64 QGCCachedTileSet::savedTileSize ( ) const
inline

Definition at line 77 of file QGCCachedTileSet.h.

◆ savedTileSizeChanged

void QGCCachedTileSet::savedTileSizeChanged ( )
signal

Referenced by setSavedTileSize().

◆ savedTileSizeStr()

QString QGCCachedTileSet::savedTileSizeStr ( ) const

Definition at line 331 of file QGCCachedTileSet.cpp.

References QGC::bigSizeToString().

Referenced by downloadStatus().

◆ selected()

bool QGCCachedTileSet::selected ( ) const
inline

◆ selectedChanged

void QGCCachedTileSet::selectedChanged ( )
signal

Referenced by setSelected().

◆ setBottomRightLat()

void QGCCachedTileSet::setBottomRightLat ( double  lat)
inline

Definition at line 101 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::startDownload().

◆ setBottomRightLon()

void QGCCachedTileSet::setBottomRightLon ( double  lon)
inline

Definition at line 102 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::startDownload().

◆ setCreationDate()

void QGCCachedTileSet::setCreationDate ( const QDateTime &  date)
inline

Definition at line 113 of file QGCCachedTileSet.h.

◆ setDefaultSet()

void QGCCachedTileSet::setDefaultSet ( bool  def)
inline

Definition at line 116 of file QGCCachedTileSet.h.

◆ setDeleting()

void QGCCachedTileSet::setDeleting ( bool  del)
inline

Definition at line 117 of file QGCCachedTileSet.h.

References deletingChanged().

Referenced by QGCMapEngineManager::deleteTileSet().

◆ setDownloading()

void QGCCachedTileSet::setDownloading ( bool  down)
inline

Definition at line 118 of file QGCCachedTileSet.h.

References downloadingChanged().

Referenced by createDownloadTask().

◆ setErrorCount()

void QGCCachedTileSet::setErrorCount ( quint32  count)
inline

Definition at line 119 of file QGCCachedTileSet.h.

References errorCountChanged().

Referenced by createDownloadTask().

◆ setId()

void QGCCachedTileSet::setId ( quint64  id)
inline

Definition at line 114 of file QGCCachedTileSet.h.

References id().

◆ setManager()

void QGCCachedTileSet::setManager ( QGCMapEngineManager mgr)
inline

Definition at line 94 of file QGCCachedTileSet.h.

◆ setMapTypeStr()

void QGCCachedTileSet::setMapTypeStr ( const QString &  typeStr)
inline

Definition at line 98 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::startDownload().

◆ setMaxZoom()

void QGCCachedTileSet::setMaxZoom ( int  zoom)
inline

Definition at line 112 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::startDownload().

◆ setMinZoom()

void QGCCachedTileSet::setMinZoom ( int  zoom)
inline

Definition at line 111 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::startDownload().

◆ setName()

void QGCCachedTileSet::setName ( const QString &  name)
inline

Definition at line 96 of file QGCCachedTileSet.h.

References name(), and nameChanged().

Referenced by QGCMapEngineManager::renameTileSet().

◆ setSavedTileCount()

void QGCCachedTileSet::setSavedTileCount ( quint32  num)
inline

Definition at line 106 of file QGCCachedTileSet.h.

References savedTileCountChanged().

◆ setSavedTileSize()

void QGCCachedTileSet::setSavedTileSize ( quint64  size)
inline

Definition at line 109 of file QGCCachedTileSet.h.

References savedTileSizeChanged().

◆ setSelected()

void QGCCachedTileSet::setSelected ( bool  sel)

◆ setTopleftLat()

void QGCCachedTileSet::setTopleftLat ( double  lat)
inline

Definition at line 99 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::startDownload().

◆ setTopleftLon()

void QGCCachedTileSet::setTopleftLon ( double  lon)
inline

Definition at line 100 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::startDownload().

◆ setTotalTileCount()

void QGCCachedTileSet::setTotalTileCount ( quint32  num)
inline

Definition at line 105 of file QGCCachedTileSet.h.

References totalTileCountChanged().

Referenced by QGCMapEngineManager::startDownload().

◆ setTotalTileSize()

void QGCCachedTileSet::setTotalTileSize ( quint64  size)
inline

Definition at line 108 of file QGCCachedTileSet.h.

References totalTilesSizeChanged().

Referenced by QGCMapEngineManager::startDownload().

◆ setType()

void QGCCachedTileSet::setType ( const QString &  type)
inline

Definition at line 115 of file QGCCachedTileSet.h.

References type().

Referenced by QGCMapEngineManager::startDownload().

◆ setUniqueTileCount()

void QGCCachedTileSet::setUniqueTileCount ( quint32  num)
inline

Definition at line 104 of file QGCCachedTileSet.h.

References uniqueTileCountChanged().

◆ setUniqueTileSize()

void QGCCachedTileSet::setUniqueTileSize ( quint64  size)
inline

Definition at line 107 of file QGCCachedTileSet.h.

References uniqueTileSizeChanged().

◆ topleftLat()

double QGCCachedTileSet::topleftLat ( ) const
inline

Definition at line 62 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::exportSets().

◆ topleftLon()

double QGCCachedTileSet::topleftLon ( ) const
inline

Definition at line 63 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::exportSets().

◆ totalTileCount()

quint32 QGCCachedTileSet::totalTileCount ( ) const
inline

Definition at line 67 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::exportSets().

◆ totalTileCountChanged

void QGCCachedTileSet::totalTileCountChanged ( )
signal

◆ totalTileCountStr()

QString QGCCachedTileSet::totalTileCountStr ( ) const

Definition at line 306 of file QGCCachedTileSet.cpp.

References QGC::numberToString().

◆ totalTilesSize()

quint64 QGCCachedTileSet::totalTilesSize ( ) const
inline

Definition at line 69 of file QGCCachedTileSet.h.

◆ totalTilesSizeChanged

void QGCCachedTileSet::totalTilesSizeChanged ( )
signal

◆ totalTilesSizeStr()

QString QGCCachedTileSet::totalTilesSizeStr ( ) const

Definition at line 311 of file QGCCachedTileSet.cpp.

References QGC::bigSizeToString().

Referenced by downloadStatus().

◆ type()

const QString & QGCCachedTileSet::type ( ) const
inline

Definition at line 85 of file QGCCachedTileSet.h.

Referenced by QGCMapEngineManager::exportSets(), and setType().

◆ uniqueTileCount()

quint32 QGCCachedTileSet::uniqueTileCount ( ) const
inline

Definition at line 71 of file QGCCachedTileSet.h.

◆ uniqueTileCountChanged

void QGCCachedTileSet::uniqueTileCountChanged ( )
signal

Referenced by setUniqueTileCount().

◆ uniqueTileCountStr()

QString QGCCachedTileSet::uniqueTileCountStr ( ) const

Definition at line 321 of file QGCCachedTileSet.cpp.

References QGC::numberToString().

◆ uniqueTileSize()

quint64 QGCCachedTileSet::uniqueTileSize ( ) const
inline

Definition at line 73 of file QGCCachedTileSet.h.

◆ uniqueTileSizeChanged

void QGCCachedTileSet::uniqueTileSizeChanged ( )
signal

Referenced by setUniqueTileSize().

◆ uniqueTileSizeStr()

QString QGCCachedTileSet::uniqueTileSizeStr ( ) const

Definition at line 316 of file QGCCachedTileSet.cpp.

References QGC::bigSizeToString().


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