• 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
TileScalingTextureMapper.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 2010-2012 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
9 //
10 
11 #ifndef MARBLE_TILESCALINGTEXTUREMAPPER_H
12 #define MARBLE_TILESCALINGTEXTUREMAPPER_H
13 
14 
15 #include <QObject>
16 #include "TextureMapperInterface.h"
17 
18 #include "TileId.h"
19 
20 #include <QCache>
21 #include <QImage>
22 #include <QPixmap>
23 
24 namespace Marble
25 {
26 
27 class TileScalingTextureMapper : public QObject, public TextureMapperInterface
28 {
29  Q_OBJECT
30 
31  public:
32  explicit TileScalingTextureMapper( StackedTileLoader *tileLoader, QObject *parent = 0 );
33 
34  virtual void mapTexture( GeoPainter *painter,
35  const ViewportParams *viewport,
36  int tileZoomLevel,
37  const QRect &dirtyRect,
38  TextureColorizer *texColorizer );
39 
40  private Q_SLOTS:
41  void removePixmap( const TileId &tileId );
42  void clearPixmaps();
43 
44  private:
45  void mapTexture( GeoPainter *painter,
46  const ViewportParams *viewport,
47  int tileZoomLevel,
48  TextureColorizer *texColorizer );
49 
50  private:
51  StackedTileLoader *const m_tileLoader;
52  QCache<TileId, const QPixmap> m_cache;
53  QImage m_canvasImage;
54  int m_radius;
55 };
56 
57 }
58 
59 #endif
TileId.h
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Marble::StackedTileLoader
Tile loading from a quad tree.
Definition: StackedTileLoader.h:59
QRect
Marble::TextureMapperInterface
Definition: TextureMapperInterface.h:27
QObject
TextureMapperInterface.h
Marble::TileScalingTextureMapper::mapTexture
virtual void mapTexture(GeoPainter *painter, const ViewportParams *viewport, int tileZoomLevel, const QRect &dirtyRect, TextureColorizer *texColorizer)
Definition: TileScalingTextureMapper.cpp:47
QCache
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
Marble::TileScalingTextureMapper
Definition: TileScalingTextureMapper.h:27
Marble::TextureColorizer
Definition: TextureColorizer.h:33
QImage
Marble::TileId
Definition: TileId.h:27
Marble::TileScalingTextureMapper::TileScalingTextureMapper
TileScalingTextureMapper(StackedTileLoader *tileLoader, QObject *parent=0)
Definition: TileScalingTextureMapper.cpp:34
QObject::parent
QObject * parent() const
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