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

marble

  • kde-4.x
  • 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 <[email protected]>
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 StackedTileLoader;
28 
29 class TileScalingTextureMapper : public QObject, public TextureMapperInterface
30 {
31  Q_OBJECT
32 
33  public:
34  explicit TileScalingTextureMapper( StackedTileLoader *tileLoader, QObject *parent = nullptr );
35 
36  void mapTexture( GeoPainter *painter,
37  const ViewportParams *viewport,
38  int tileZoomLevel,
39  const QRect &dirtyRect,
40  TextureColorizer *texColorizer ) override;
41 
42  private Q_SLOTS:
43  void removePixmap( const TileId &tileId );
44  void clearPixmaps();
45 
46  private:
47  void mapTexture( GeoPainter *painter,
48  const ViewportParams *viewport,
49  int tileZoomLevel,
50  TextureColorizer *texColorizer );
51 
52  private:
53  StackedTileLoader *const m_tileLoader;
54  QCache<TileId, const QPixmap> m_cache;
55  QImage m_canvasImage;
56  int m_radius;
57 };
58 
59 }
60 
61 #endif
TileId.h
Marble::TileScalingTextureMapper::TileScalingTextureMapper
TileScalingTextureMapper(StackedTileLoader *tileLoader, QObject *parent=nullptr)
Definition: TileScalingTextureMapper.cpp:34
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:93
Marble::StackedTileLoader
Tile loading from a quad tree.
Definition: StackedTileLoader.h:59
QRect
Marble::TextureMapperInterface
Definition: TextureMapperInterface.h:25
QObject
TextureMapperInterface.h
QCache
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:46
Marble::TileScalingTextureMapper
Definition: TileScalingTextureMapper.h:29
Marble::TextureColorizer
Definition: TextureColorizer.h:32
QImage
Marble::TileId
Definition: TileId.h:25
Marble::TileScalingTextureMapper::mapTexture
void mapTexture(GeoPainter *painter, const ViewportParams *viewport, int tileZoomLevel, const QRect &dirtyRect, TextureColorizer *texColorizer) override
Definition: TileScalingTextureMapper.cpp:47
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Dec 6 2019 03:04:08 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
  •   KmPlot
  • libkeduvocdocument
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   src
  •   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