Marble

GenericScanlineTextureMapper.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2011 Bernhard Beschow <[email protected]>
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 
18 namespace Marble
19 {
20 
21 class StackedTileLoader;
22 
23 class 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
MapQuality
This enum is used to choose the map quality shown in the view.
Definition: MarbleGlobal.h:74
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.