• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
SphericalScanlineTextureMapper.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2007 Torsten Rahn <tackat@kde.org>
9 // Copyright 2011 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
10 //
11 
12 #ifndef MARBLE_SPHERICALSCANLINETEXTUREMAPPER_H
13 #define MARBLE_SPHERICALSCANLINETEXTUREMAPPER_H
14 
15 
16 #include "TextureMapperInterface.h"
17 
18 #include "MarbleGlobal.h"
19 
20 #include <QThreadPool>
21 #include <QImage>
22 
23 
24 namespace Marble
25 {
26 
27 class StackedTileLoader;
28 
29 
30 /*
31  * @short Texture mapping onto a sphere
32  *
33  * This class provides a fast way to map textures onto a sphere
34  * without making use of hardware acceleration.
35  *
36  * @author Torsten Rahn <rahn@kde.org>
37  */
38 
39 class SphericalScanlineTextureMapper : public TextureMapperInterface
40 {
41  public:
42  explicit SphericalScanlineTextureMapper( StackedTileLoader *tileLoader );
43 
44  virtual void mapTexture( GeoPainter *painter,
45  const ViewportParams *viewport,
46  int tileZoomLevel,
47  const QRect &dirtyRect,
48  TextureColorizer *texColorizer );
49 
50  private:
51  void mapTexture( const ViewportParams *viewport, int tileZoomLevel, MapQuality mapQuality );
52 
53  private:
54  class RenderJob;
55  StackedTileLoader *const m_tileLoader;
56  int m_radius;
57  QImage m_canvasImage;
58  QThreadPool m_threadPool;
59 };
60 
61 }
62 
63 #endif
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
QThreadPool
Marble::MapQuality
MapQuality
This enum is used to choose the map quality shown in the view.
Definition: MarbleGlobal.h:82
Marble::StackedTileLoader
Tile loading from a quad tree.
Definition: StackedTileLoader.h:59
QRect
Marble::TextureMapperInterface
Definition: TextureMapperInterface.h:27
TextureMapperInterface.h
MarbleGlobal.h
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
Marble::TextureColorizer
Definition: TextureColorizer.h:33
QImage
Marble::SphericalScanlineTextureMapper::SphericalScanlineTextureMapper
SphericalScanlineTextureMapper(StackedTileLoader *tileLoader)
Definition: SphericalScanlineTextureMapper.cpp:64
Marble::SphericalScanlineTextureMapper
Definition: SphericalScanlineTextureMapper.h:39
Marble::SphericalScanlineTextureMapper::mapTexture
virtual void mapTexture(GeoPainter *painter, const ViewportParams *viewport, int tileZoomLevel, const QRect &dirtyRect, TextureColorizer *texColorizer)
Definition: SphericalScanlineTextureMapper.cpp:72
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal