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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
MergedLayerDecorator.h
Go to the documentation of this file.
1 // Copyright 2008 David Roberts <dvdr18@gmail.com>
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library. If not, see <http://www.gnu.org/licenses/>.
15 
16 #ifndef MARBLE_MERGEDLAYERDECORATOR_H
17 #define MARBLE_MERGEDLAYERDECORATOR_H
18 
19 #include <QSharedPointer>
20 #include <QSize>
21 #include <QVector>
22 #include <QList>
23 
24 #include "GeoSceneTextureTile.h"
25 #include "GeoDataGroundOverlay.h"
26 #include "MarbleGlobal.h"
27 
28 class QImage;
29 class QString;
30 
31 namespace Marble
32 {
33 
34 class SunLocator;
35 class StackedTile;
36 class Tile;
37 class TileId;
38 class TileLoader;
39 
40 class MergedLayerDecorator
41 {
42  public:
43  MergedLayerDecorator( TileLoader * const tileLoader, const SunLocator* sunLocator );
44  virtual ~MergedLayerDecorator();
45 
46  void setTextureLayers( const QVector<const GeoSceneTextureTile *> &textureLayers );
47  void updateGroundOverlays( const QList<const GeoDataGroundOverlay *> &groundOverlays );
48 
49  int textureLayersSize() const;
50 
55  int maximumTileLevel() const;
56 
57  int tileColumnCount( int level ) const;
58 
59  int tileRowCount( int level ) const;
60 
61  GeoSceneTextureTile::Projection tileProjection() const;
62 
63  QSize tileSize() const;
64 
65  StackedTile *loadTile( const TileId &id );
66 
67  StackedTile *updateTile( const StackedTile &stackedTile, const TileId &tileId, const QImage &tileImage );
68 
69  void downloadStackedTile( const TileId &id, DownloadUsage usage );
70 
71  void setShowSunShading( bool show );
72  bool showSunShading() const;
73 
74  void setShowCityLights( bool show );
75  bool showCityLights() const;
76 
77  void setShowTileId(bool show);
78 
79  protected:
80  Q_DISABLE_COPY( MergedLayerDecorator )
81 
82  class Private;
83  Private *const d;
84 };
85 
86 }
87 
88 #endif
Marble::MergedLayerDecorator::showCityLights
bool showCityLights() const
Definition: MergedLayerDecorator.cpp:371
Marble::MergedLayerDecorator::showSunShading
bool showSunShading() const
Definition: MergedLayerDecorator.cpp:361
Marble::MergedLayerDecorator::setShowSunShading
void setShowSunShading(bool show)
Definition: MergedLayerDecorator.cpp:356
GeoDataGroundOverlay.h
Marble::DownloadUsage
DownloadUsage
This enum is used to describe the type of download.
Definition: MarbleGlobal.h:160
Marble::GeoSceneTiled::Projection
Projection
Definition: GeoSceneTiled.h:47
Marble::MergedLayerDecorator::tileProjection
GeoSceneTextureTile::Projection tileProjection() const
Definition: MergedLayerDecorator.cpp:158
Marble::MergedLayerDecorator::MergedLayerDecorator
MergedLayerDecorator(TileLoader *const tileLoader, const SunLocator *sunLocator)
Definition: MergedLayerDecorator.cpp:96
Marble::MergedLayerDecorator::setTextureLayers
void setTextureLayers(const QVector< const GeoSceneTextureTile * > &textureLayers)
Definition: MergedLayerDecorator.cpp:107
Marble::StackedTile
A single tile that consists of a stack of Tile layers.
Definition: StackedTile.h:56
Marble::MergedLayerDecorator::tileSize
QSize tileSize() const
Definition: MergedLayerDecorator.cpp:165
Marble::MergedLayerDecorator::updateGroundOverlays
void updateGroundOverlays(const QList< const GeoDataGroundOverlay * > &groundOverlays)
Definition: MergedLayerDecorator.cpp:124
Marble::MergedLayerDecorator
Definition: MergedLayerDecorator.h:40
Marble::MergedLayerDecorator::~MergedLayerDecorator
virtual ~MergedLayerDecorator()
Definition: MergedLayerDecorator.cpp:102
Marble::SunLocator
Definition: SunLocator.h:33
Marble::MergedLayerDecorator::textureLayersSize
int textureLayersSize() const
Definition: MergedLayerDecorator.cpp:130
Marble::MergedLayerDecorator::tileRowCount
int tileRowCount(int level) const
Definition: MergedLayerDecorator.cpp:149
Marble::MergedLayerDecorator::maximumTileLevel
int maximumTileLevel() const
Returns the highest level in which some tiles are theoretically available for the current texture lay...
Definition: MergedLayerDecorator.cpp:135
MarbleGlobal.h
Marble::MergedLayerDecorator::tileColumnCount
int tileColumnCount(int level) const
Definition: MergedLayerDecorator.cpp:140
Marble::MergedLayerDecorator::updateTile
StackedTile * updateTile(const StackedTile &stackedTile, const TileId &tileId, const QImage &tileImage)
Definition: MergedLayerDecorator.cpp:326
Marble::TileId
Definition: TileId.h:27
Marble::MergedLayerDecorator::loadTile
StackedTile * loadTile(const TileId &id)
Definition: MergedLayerDecorator.cpp:297
Marble::MergedLayerDecorator::setShowCityLights
void setShowCityLights(bool show)
Definition: MergedLayerDecorator.cpp:366
Marble::MergedLayerDecorator::downloadStackedTile
void downloadStackedTile(const TileId &id, DownloadUsage usage)
Definition: MergedLayerDecorator.cpp:345
GeoSceneTextureTile.h
Marble::MergedLayerDecorator::d
Private *const d
Definition: MergedLayerDecorator.h:82
Marble::MergedLayerDecorator::setShowTileId
void setShowTileId(bool show)
Definition: MergedLayerDecorator.cpp:376
Marble::TileLoader
Definition: TileLoader.h:44
usage
void usage(const QString &app)
Definition: merge_ts_po.cpp:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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