Marble

MercatorScanlineTextureMapper.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2007 Carlos Licea <carlos _licea@hotmail.com>
4// SPDX-FileCopyrightText: 2008 Inge Wallin <inge@lysator.liu.se>
5// SPDX-FileCopyrightText: 2011 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
6//
7
8#ifndef MARBLE_MERCATORSCANLINETEXTUREMAPPER_H
9#define MARBLE_MERCATORSCANLINETEXTUREMAPPER_H
10
11#include "TextureMapperInterface.h"
12
13#include "MarbleGlobal.h"
14
15#include <QImage>
16#include <QThreadPool>
17
18namespace Marble
19{
20
21class StackedTileLoader;
22
23class MercatorScanlineTextureMapper : public TextureMapperInterface
24{
25public:
26 explicit MercatorScanlineTextureMapper(StackedTileLoader *tileLoader);
27
28 void mapTexture(GeoPainter *painter, const ViewportParams *viewport, int tileZoomLevel, const QRect &dirtyRect, TextureColorizer *texColorizer) override;
29
30private:
31 void mapTexture(const ViewportParams *viewport, int tileZoomLevel, MapQuality mapQuality);
32
33private:
34 class RenderJob;
35
36 StackedTileLoader *const m_tileLoader;
37 int m_radius;
38 QImage m_canvasImage;
39 int m_oldYPaintedTop;
40 QThreadPool m_threadPool;
41};
42
43}
44
45#endif
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.