Marble

GenericScanlineTextureMapper.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2011 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
4//
5
6#ifndef MARBLE_GENERICSCANLINETEXTUREMAPPER_H
7#define MARBLE_GENERICSCANLINETEXTUREMAPPER_H
8
9
10#include "TextureMapperInterface.h"
11
12#include <QThreadPool>
13#include <QImage>
14
15#include <MarbleGlobal.h>
16
17
18namespace Marble
19{
20
21class StackedTileLoader;
22
23class GenericScanlineTextureMapper : public TextureMapperInterface
24{
25 public:
26 explicit GenericScanlineTextureMapper( StackedTileLoader *tileLoader );
27
28 void mapTexture( GeoPainter *painter,
29 const ViewportParams *viewport,
30 int tileZoomLevel,
31 const QRect &dirtyRect,
32 TextureColorizer *texColorizer ) override;
33
34 private:
35 class RenderJob;
36
37 void mapTexture( const ViewportParams *viewport, int tileZoomLevel, MapQuality mapQuality );
38
39 StackedTileLoader *const m_tileLoader;
40 int m_radius;
41 QImage m_canvasImage;
42 QThreadPool m_threadPool;
43};
44
45}
46
47#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 Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.