• 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
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 <QSize>
20 #include <QVector>
21 #include <QList>
22 
23 #include "GeoSceneTextureTile.h"
24 #include "RenderState.h"
25 
26 class QImage;
27 class QString;
28 
29 namespace Marble
30 {
31 
32 class GeoDataGroundOverlay;
33 class SunLocator;
34 class StackedTile;
35 class Tile;
36 class TileId;
37 class TileLoader;
38 
39 class MergedLayerDecorator
40 {
41  public:
42  MergedLayerDecorator( TileLoader * const tileLoader, const SunLocator* sunLocator );
43  virtual ~MergedLayerDecorator();
44 
45  void setTextureLayers( const QVector<const GeoSceneTextureTile *> &textureLayers );
46  void updateGroundOverlays( const QList<const GeoDataGroundOverlay *> &groundOverlays );
47 
48  int textureLayersSize() const;
49 
54  int maximumTileLevel() const;
55 
56  int tileColumnCount( int level ) const;
57 
58  int tileRowCount( int level ) const;
59 
60  GeoSceneTextureTile::Projection tileProjection() const;
61 
62  QSize tileSize() const;
63 
64  StackedTile *loadTile( const TileId &id );
65 
66  StackedTile *updateTile( const StackedTile &stackedTile, const TileId &tileId, const QImage &tileImage );
67 
68  void downloadStackedTile( const TileId &id, DownloadUsage usage );
69 
70  void setShowSunShading( bool show );
71  bool showSunShading() const;
72 
73  void setShowCityLights( bool show );
74  bool showCityLights() const;
75 
76  void setShowTileId(bool show);
77 
78  RenderState renderState( const TileId &stackedTileId ) const;
79 
80  protected:
81  Q_DISABLE_COPY( MergedLayerDecorator )
82 
83  class Private;
84  Private *const d;
85 };
86 
87 }
88 
89 #endif
Marble::MergedLayerDecorator::showCityLights
bool showCityLights() const
Definition: MergedLayerDecorator.cpp:392
Marble::MergedLayerDecorator::showSunShading
bool showSunShading() const
Definition: MergedLayerDecorator.cpp:382
Marble::MergedLayerDecorator::setShowSunShading
void setShowSunShading(bool show)
Definition: MergedLayerDecorator.cpp:377
Marble::DownloadUsage
DownloadUsage
This enum is used to describe the type of download.
Definition: MarbleGlobal.h:164
Marble::GeoSceneTiled::Projection
Projection
Definition: GeoSceneTiled.h:47
Marble::MergedLayerDecorator::tileProjection
GeoSceneTextureTile::Projection tileProjection() const
Definition: MergedLayerDecorator.cpp:150
Marble::MergedLayerDecorator::MergedLayerDecorator
MergedLayerDecorator(TileLoader *const tileLoader, const SunLocator *sunLocator)
Definition: MergedLayerDecorator.cpp:88
Marble::MergedLayerDecorator::setTextureLayers
void setTextureLayers(const QVector< const GeoSceneTextureTile * > &textureLayers)
Definition: MergedLayerDecorator.cpp:99
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:157
Marble::MergedLayerDecorator::updateGroundOverlays
void updateGroundOverlays(const QList< const GeoDataGroundOverlay * > &groundOverlays)
Definition: MergedLayerDecorator.cpp:116
Marble::MergedLayerDecorator
Definition: MergedLayerDecorator.h:39
Marble::MergedLayerDecorator::~MergedLayerDecorator
virtual ~MergedLayerDecorator()
Definition: MergedLayerDecorator.cpp:94
Marble::SunLocator
Definition: SunLocator.h:33
RenderState.h
Marble::MergedLayerDecorator::textureLayersSize
int textureLayersSize() const
Definition: MergedLayerDecorator.cpp:122
Marble::MergedLayerDecorator::tileRowCount
int tileRowCount(int level) const
Definition: MergedLayerDecorator.cpp:141
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:127
QString
QList
Marble::RenderState
Definition: RenderState.h:22
QSize
QImage
Marble::MergedLayerDecorator::tileColumnCount
int tileColumnCount(int level) const
Definition: MergedLayerDecorator.cpp:132
Marble::MergedLayerDecorator::updateTile
StackedTile * updateTile(const StackedTile &stackedTile, const TileId &tileId, const QImage &tileImage)
Definition: MergedLayerDecorator.cpp:347
Marble::TileId
Definition: TileId.h:27
QVector
Marble::MergedLayerDecorator::loadTile
StackedTile * loadTile(const TileId &id)
Definition: MergedLayerDecorator.cpp:289
Marble::MergedLayerDecorator::setShowCityLights
void setShowCityLights(bool show)
Definition: MergedLayerDecorator.cpp:387
Marble::MergedLayerDecorator::downloadStackedTile
void downloadStackedTile(const TileId &id, DownloadUsage usage)
Definition: MergedLayerDecorator.cpp:366
GeoSceneTextureTile.h
Marble::MergedLayerDecorator::d
Private *const d
Definition: MergedLayerDecorator.h:83
Marble::MergedLayerDecorator::setShowTileId
void setShowTileId(bool show)
Definition: MergedLayerDecorator.cpp:397
Marble::MergedLayerDecorator::renderState
RenderState renderState(const TileId &stackedTileId) const
Definition: MergedLayerDecorator.cpp:318
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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