Marble

EquirectScanlineTextureMapper.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_EQUIRECTSCANLINETEXTUREMAPPER_H
9#define MARBLE_EQUIRECTSCANLINETEXTUREMAPPER_H
10
11#include "TextureMapperInterface.h"
12
13#include "MarbleGlobal.h"
14
15#include <QImage>
16#include <QThreadPool>
17
18namespace Marble
19{
20class StackedTileLoader;
21
22class EquirectScanlineTextureMapper : public TextureMapperInterface
23{
24public:
25 explicit EquirectScanlineTextureMapper(StackedTileLoader *tileLoader);
26
27 void mapTexture(GeoPainter *painter, const ViewportParams *viewport, int tileZoomLevel, const QRect &dirtyRect, TextureColorizer *texColorizer) override;
28
29private:
30 void mapTexture(const ViewportParams *viewport, int tileZoomLevel, MapQuality mapQuality);
31
32private:
33 class RenderJob;
34
35 StackedTileLoader *const m_tileLoader;
36 int m_radius;
37 QImage m_canvasImage;
38 int m_oldYPaintedTop;
39 QThreadPool m_threadPool;
40};
41
42}
43
44#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 Fri Dec 20 2024 11:52:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.