#include <PlaneMapRenderer.h>
◆ PlaneMapRenderer()
osmscout::PlaneMapRenderer::PlaneMapRenderer |
( |
QThread * |
thread, |
|
|
SettingsRef |
settings, |
|
|
DBThreadRef |
dbThread, |
|
|
QString |
iconDirectory |
|
) |
| |
◆ ~PlaneMapRenderer()
osmscout::PlaneMapRenderer::~PlaneMapRenderer |
( |
| ) |
|
|
virtual |
◆ DrawMap
void osmscout::PlaneMapRenderer::DrawMap |
( |
| ) |
|
|
slot |
Actual map drawing into the back buffer.
References osmscout::DBLoadJob::Close(), osmscout::MapRenderer::dbThread, osmscout::Log::Debug(), osmscout::Log::Error(), osmscout::MapRenderer::fontName, osmscout::MapRenderer::fontSize, osmscout::DBLoadJob::GetAllTiles(), osmscout::Projection::GetAngle(), osmscout::Projection::GetCenter(), osmscout::Projection::GetDimensions(), osmscout::Projection::GetDPI(), osmscout::Projection::GetHeight(), osmscout::Magnification::GetLevel(), osmscout::MapParameter::GetLocaleRef(), osmscout::Projection::GetMagnification(), osmscout::MapRenderer::getOverlayObjects(), osmscout::Projection::GetWidth(), osmscout::MapRenderer::iconDirectory, osmscout::Imperial, osmscout::DBLoadJob::IsFinished(), osmscout::DBRenderJob::IsSuccess(), osmscout::MapRenderer::lock, osmscout::log, osmscout::Metrics, osmscout::TransPolygon::none, osmscout::MapRenderer::Redraw(), osmscout::MapRenderer::renderSea, osmscout::DBRenderJob::Run(), osmscout::MapParameter::Scalable, 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::MapParameter::SetWarningCoordCountLimit(), osmscout::MapParameter::SetWarningObjectCountLimit(), osmscout::MapRenderer::showAltLanguage, osmscout::MapRenderer::thread, osmscout::MapRenderer::units, and osmscout::Log::Warn().
Referenced by PlaneMapRenderer().
◆ FlushVisualCaches
void osmscout::PlaneMapRenderer::FlushVisualCaches |
( |
const std::chrono::milliseconds & |
idleMs | ) |
|
|
virtualslot |
◆ HandleInitialRenderingRequest
void osmscout::PlaneMapRenderer::HandleInitialRenderingRequest |
( |
| ) |
|
|
slot |
◆ HandleTileStatusChanged
void osmscout::PlaneMapRenderer::HandleTileStatusChanged |
( |
QString |
dbPath, |
|
|
const osmscout::TileRef |
tile |
|
) |
| |
|
slot |
◆ Initialize
void osmscout::PlaneMapRenderer::Initialize |
( |
| ) |
|
|
virtualslot |
◆ InvalidateVisualCache
void osmscout::PlaneMapRenderer::InvalidateVisualCache |
( |
| ) |
|
|
virtualslot |
◆ onDatabaseLoaded
void osmscout::PlaneMapRenderer::onDatabaseLoaded |
( |
osmscout::GeoBox |
boundingBox | ) |
|
|
virtualslot |
◆ onLoadJobFinished
◆ onStylesheetFilenameChanged
void osmscout::PlaneMapRenderer::onStylesheetFilenameChanged |
( |
| ) |
|
|
virtualslot |
◆ RenderMap()
bool osmscout::PlaneMapRenderer::RenderMap |
( |
QPainter & |
painter, |
|
|
const MapViewStruct & |
request |
|
) |
| |
|
virtual |
Render map defined by request to painter.
- Parameters
-
- Returns
- true if rendered map is complete
Implements osmscout::MapRenderer.
References osmscout::MercatorProjection::GeoToPixel(), osmscout::Color::GetA(), osmscout::Projection::GetAngle(), osmscout::Color::GetB(), osmscout::Color::GetG(), osmscout::Projection::GetHeight(), osmscout::Color::GetR(), osmscout::Projection::GetWidth(), osmscout::Vertex2D::GetX(), osmscout::Vertex2D::GetY(), osmscout::log, osmscout::MapRenderer::mapDpi, osmscout::MercatorProjection::PixelToGeo(), osmscout::MercatorProjection::Set(), TriggerMapRenderingSignal(), and osmscout::Log::Warn().
◆ TriggerInitialRendering
void osmscout::PlaneMapRenderer::TriggerInitialRendering |
( |
| ) |
|
|
signal |
◆ TriggerMapRendering
void osmscout::PlaneMapRenderer::TriggerMapRendering |
( |
const MapViewStruct & |
request, |
|
|
size_t |
requestEpoch |
|
) |
| |
|
slot |
References osmscout::DBLoadJob::Close(), osmscout::MapRenderer::dbThread, osmscout::Log::Debug(), osmscout::DBLoadJob::finished(), osmscout::Magnification::GetLevel(), HandleTileStatusChanged(), osmscout::MapRenderer::lock, osmscout::log, osmscout::MapRenderer::mapDpi, onLoadJobFinished(), osmscout::DBLoadJob::Run(), osmscout::MercatorProjection::Set(), osmscout::MapRenderer::thread, osmscout::DBLoadJob::tileStateChanged(), TriggerInitialRendering(), and osmscout::Log::Warn().
Referenced by PlaneMapRenderer().
◆ TriggerMapRenderingSignal
void osmscout::PlaneMapRenderer::TriggerMapRenderingSignal |
( |
const MapViewStruct & |
request, |
|
|
size_t |
requestEpoch |
|
) |
| |
|
signal |
The documentation for this class was generated from the following files: