Marble

SphericalScanlineTextureMapper.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2007 Torsten Rahn <tackat@kde.org>
4// SPDX-FileCopyrightText: 2011 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
5//
6
7#ifndef MARBLE_SPHERICALSCANLINETEXTUREMAPPER_H
8#define MARBLE_SPHERICALSCANLINETEXTUREMAPPER_H
9
10#include "TextureMapperInterface.h"
11
12#include "MarbleGlobal.h"
13
14#include <QImage>
15#include <QThreadPool>
16
17namespace Marble
18{
19
20class StackedTileLoader;
21
22/*
23 * @short Texture mapping onto a sphere
24 *
25 * This class provides a fast way to map textures onto a sphere
26 * without making use of hardware acceleration.
27 *
28 * @author Torsten Rahn <rahn@kde.org>
29 */
30
31class SphericalScanlineTextureMapper : public TextureMapperInterface
32{
33public:
34 explicit SphericalScanlineTextureMapper(StackedTileLoader *tileLoader);
35
36 void mapTexture(GeoPainter *painter, const ViewportParams *viewport, int tileZoomLevel, const QRect &dirtyRect, TextureColorizer *texColorizer) override;
37
38private:
39 void mapTexture(const ViewportParams *viewport, int tileZoomLevel, MapQuality mapQuality);
40
41private:
42 class RenderJob;
43 StackedTileLoader *const m_tileLoader;
44 int m_radius;
45 QImage m_canvasImage;
46 QThreadPool m_threadPool;
47};
48
49}
50
51#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 18 2024 12:15:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.