libosmscout
0.1
|
#include <TiledMapRenderer.h>
Public Slots | |
virtual void | FlushVisualCaches (const std::chrono::milliseconds &idleMs) |
virtual void | Initialize () |
virtual void | InvalidateVisualCache () |
void | offlineTileRequest (uint32_t zoomLevel, uint32_t xtile, uint32_t ytile) |
virtual void | onDatabaseLoaded (osmscout::GeoBox boundingBox) |
void | onlineTileProviderChanged (const OnlineTileProvider &) |
void | onlineTileRequest (uint32_t zoomLevel, uint32_t xtile, uint32_t ytile) |
void | onlineTilesEnabledChanged (bool) |
void | onLoadJobFinished (QMap< QString, QMap< osmscout::TileKey, osmscout::TileRef >>) |
void | onOfflineMapChanged (bool) |
virtual void | onStylesheetFilenameChanged () |
void | tileDownloaded (uint32_t zoomLevel, uint32_t x, uint32_t y, QImage image, QByteArray downloadedData) |
void | tileDownloadFailed (uint32_t zoomLevel, uint32_t x, uint32_t y, bool zoomLevelOutOfRange) |
![]() | |
virtual void | FlushVisualCaches (const std::chrono::milliseconds &idleMs)=0 |
virtual void | Initialize ()=0 |
virtual void | InvalidateVisualCache ()=0 |
virtual void | onDatabaseLoaded (osmscout::GeoBox boundingBox)=0 |
virtual void | onFontNameChanged (const QString &) |
virtual void | onFontSizeChanged (double) |
virtual void | onMapDPIChange (double dpi) |
virtual void | onRenderSeaChanged (bool) |
virtual void | onShowAltLanguageChanged (bool) |
virtual void | onStylesheetFilenameChanged () |
virtual void | onUnitsChanged (const QString &) |
virtual void | SetScreen (const QScreen *) |
Signals | |
void | offlineMapChangedSignal (bool) |
void | onlineTileProviderSignal (OnlineTileProvider provider) |
void | onlineTilesEnabledSignal (bool) |
![]() | |
void | databaseLoadFinished (const osmscout::GeoBox &geoBox) |
void | fontNameSignal (QString) |
void | fontSizeSignal (double) |
void | mapDpiChangeSignal (double) |
void | Redraw () |
void | renderSeaSignal (bool) |
void | showAltLanguageSignal (bool) |
void | stylesheetFilenameChanged () |
void | TriggerDrawMap () |
void | unitsSignal (QString) |
Public Member Functions | |
virtual bool | RenderMap (QPainter &painter, const MapViewStruct &request) |
Render map defined by request to painter. More... | |
TiledMapRenderer (QThread *thread, SettingsRef settings, DBThreadRef dbThread, QString iconDirectory, QString tileCacheDirectory, size_t onlineTileCacheSize, size_t offlineTileCacheSize) | |
virtual | ~TiledMapRenderer () |
![]() | |
void | addOverlayObject (int id, const OverlayObjectRef &obj) |
std::map< int, OverlayObjectRef > | getOverlayObjects () const |
void | removeAllOverlayObjects () |
void | removeOverlayObject (int id) |
virtual | ~MapRenderer () |
Additional Inherited Members | |
![]() | |
void | getOverlayObjects (std::vector< OverlayObjectRef > &objs, osmscout::GeoBox requestBox) const |
MapRenderer (QThread *thread, SettingsRef settings, DBThreadRef dbThread, QString iconDirectory) | |
osmscout::GeoBox | overlayObjectsBox () const |
![]() | |
DBThreadRef | dbThread |
QString | fontName |
double | fontSize |
QString | iconDirectory |
QRecursiveMutex | lock |
double | mapDpi |
QMutex | overlayLock |
std::map< int, OverlayObjectRef > | overlayObjectMap |
bool | renderSea |
double | screenPixelRatio {1.0} |
SettingsRef | settings |
bool | showAltLanguage {false} |
QThread * | thread |
QString | units |
osmscout::TiledMapRenderer::TiledMapRenderer | ( | QThread * | thread, |
SettingsRef | settings, | ||
DBThreadRef | dbThread, | ||
QString | iconDirectory, | ||
QString | tileCacheDirectory, | ||
size_t | onlineTileCacheSize, | ||
size_t | offlineTileCacheSize | ||
) |
|
virtual |
|
virtualslot |
References osmscout::TileCache::cleanupCache().
|
virtualslot |
References osmscout::Log::Debug(), osmscout::OsmTileDownloader::downloaded(), osmscout::OsmTileDownloader::failed(), InvalidateVisualCache(), osmscout::MapRenderer::lock, osmscout::log, osmscout::OsmTileDownloader::onlineTileProviderChanged(), onlineTileProviderSignal(), onStylesheetFilenameChanged(), osmscout::MapRenderer::settings, tileDownloaded(), and tileDownloadFailed().
|
virtualslot |
References osmscout::TileCache::incEpoch(), and osmscout::MapRenderer::Redraw().
Referenced by Initialize(), and onlineTilesEnabledChanged().
|
signal |
Referenced by TiledMapRenderer().
|
slot |
References osmscout::MapRenderer::dbThread, osmscout::DBLoadJob::finished(), osmscout::TileCache::getEpoch(), osmscout::Magnification::GetLevel(), osmscout::MapRenderer::lock, osmscout::MapRenderer::mapDpi, osmscout::TileCache::mergeAndStartRequests(), onLoadJobFinished(), osmscout::OSMTile::osmTileOriginalWidth(), osmscout::TileCache::put(), osmscout::DBLoadJob::Run(), osmscout::MercatorProjection::Set(), osmscout::TileCache::startRequestProcess(), osmscout::OSMTile::tileDPI(), and osmscout::OSMTile::tileRelativeCoord().
Referenced by TiledMapRenderer().
|
virtualslot |
|
slot |
References osmscout::TileCache::invalidate(), and osmscout::MapRenderer::Redraw().
Referenced by TiledMapRenderer().
|
signal |
Referenced by Initialize(), and TiledMapRenderer().
|
slot |
|
slot |
References osmscout::TileCache::clearPendingRequests(), osmscout::TileCache::invalidate(), and InvalidateVisualCache().
Referenced by TiledMapRenderer().
|
signal |
Referenced by TiledMapRenderer().
|
slot |
References osmscout::DBLoadJob::Close(), osmscout::MapRenderer::dbThread, osmscout::Log::Error(), osmscout::MapRenderer::fontName, osmscout::MapRenderer::fontSize, osmscout::MagnificationLevel::Get(), osmscout::Projection::GetDimensions(), osmscout::TileCache::getEpoch(), osmscout::MapParameter::GetLocaleRef(), osmscout::MapRenderer::getOverlayObjects(), osmscout::MapRenderer::iconDirectory, osmscout::Imperial, osmscout::DBRenderJob::IsSuccess(), osmscout::MapRenderer::lock, osmscout::log, osmscout::MapRenderer::mapDpi, osmscout::Metrics, osmscout::TransPolygon::none, osmscout::OSMTile::osmTileOriginalWidth(), osmscout::TileCache::put(), osmscout::MapRenderer::Redraw(), osmscout::TileCache::reemitRequests(), osmscout::MapRenderer::renderSea, osmscout::DBRenderJob::Run(), osmscout::MapParameter::Scalable, osmscout::MapRenderer::screenPixelRatio, osmscout::MercatorProjection::Set(), osmscout::MapParameter::SetDebugData(), osmscout::MapParameter::SetDebugPerformance(), osmscout::Locale::SetDistanceUnits(), osmscout::MapParameter::SetFontName(), osmscout::MapParameter::SetFontSize(), osmscout::MapParameter::SetIconMode(), osmscout::MapParameter::SetIconPaths(), osmscout::MapParameter::SetLabelLineFitToArea(), osmscout::MapParameter::SetLabelLineFitToWidth(), osmscout::MapParameter::SetLabelLineMaxCharCount(), osmscout::MapParameter::SetLabelLineMinCharCount(), osmscout::MercatorProjection::SetLinearInterpolationUsage(), osmscout::MapParameter::SetOptimizeAreaNodes(), osmscout::MapParameter::SetOptimizeWayNodes(), osmscout::MapParameter::SetPatternMode(), osmscout::MapParameter::SetPatternPaths(), osmscout::MapParameter::SetRenderBackground(), osmscout::MapParameter::SetRenderSeaLand(), osmscout::MapParameter::SetRenderUnknowns(), osmscout::MapParameter::SetShowAltLanguage(), osmscout::MapRenderer::showAltLanguage, osmscout::OSMTile::tileDPI(), osmscout::OSMTile::tileRelativeCoord(), osmscout::MapRenderer::units, and osmscout::Log::Warn().
Referenced by offlineTileRequest().
|
slot |
|
virtualslot |
|
virtual |
Render map defined by request to painter.
painter | |
request |
Implements osmscout::MapRenderer.
References osmscout::TileCache::clearPendingRequests(), osmscout::TileCache::isRequestQueueEmpty(), osmscout::log, osmscout::TiledRenderingHelper::RenderTiles(), and osmscout::Log::Warn().
|
slot |
References osmscout::TileCache::put(), and osmscout::MapRenderer::Redraw().
Referenced by Initialize().
|
slot |
References osmscout::TileCache::contains(), osmscout::TileCache::removeRequest(), and osmscout::TileCache::request().
Referenced by Initialize(), and onlineTileRequest().