• 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
ServerLayout.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,2011 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
9 //
10 
11 #ifndef MARBLE_SERVERLAYOUT_H
12 #define MARBLE_SERVERLAYOUT_H
13 
14 #include <QUrl>
15 
16 namespace Marble
17 {
18 class GeoSceneTiled;
19 class TileId;
20 
21 class ServerLayout
22 {
23 public:
24  explicit ServerLayout( GeoSceneTiled *textureLayer );
25  virtual ~ServerLayout();
26 
35  virtual QUrl downloadUrl( const QUrl &prototypeUrl, const TileId &id ) const = 0;
36 
41  virtual QString name() const = 0;
42 
43 protected:
44  GeoSceneTiled *const m_textureLayer;
45 };
46 
47 class MarbleServerLayout : public ServerLayout
48 {
49 public:
50  explicit MarbleServerLayout( GeoSceneTiled *textureLayer );
51 
55  virtual QUrl downloadUrl( const QUrl &prototypeUrl, const TileId & ) const;
56 
57  virtual QString name() const;
58 };
59 
60 class OsmServerLayout : public ServerLayout
61 {
62 public:
63  explicit OsmServerLayout( GeoSceneTiled *textureLayer );
64 
69  virtual QUrl downloadUrl( const QUrl &prototypeUrl, const TileId & ) const;
70 
71  virtual QString name() const;
72 };
73 
74 class CustomServerLayout : public ServerLayout
75 {
76 public:
77  explicit CustomServerLayout( GeoSceneTiled *texture );
78 
85  virtual QUrl downloadUrl( const QUrl &prototypeUrl, const TileId &id ) const;
86 
87  virtual QString name() const;
88 };
89 
90 class WmsServerLayout : public ServerLayout
91 {
92 public:
93  explicit WmsServerLayout( GeoSceneTiled *texture );
94 
103  virtual QUrl downloadUrl( const QUrl &prototypeUrl, const Marble::TileId &tileId ) const;
104 
105  virtual QString name() const;
106 
107  QString epsgCode() const;
108 };
109 
110 class QuadTreeServerLayout : public ServerLayout
111 {
112 public:
113  explicit QuadTreeServerLayout( GeoSceneTiled* textureLayer );
114  virtual QUrl downloadUrl( const QUrl &, const Marble::TileId & ) const;
115 
116  virtual QString name() const;
117 
118 private:
119  static QString encodeQuadTree( const Marble::TileId & );
120 };
121 
122 class TmsServerLayout : public ServerLayout
123 {
124 public:
125  explicit TmsServerLayout( GeoSceneTiled *textureLayer );
126 
133  virtual QUrl downloadUrl( const QUrl &prototypeUrl, const TileId & ) const;
134 
135  virtual QString name() const;
136 };
137 
138 }
139 
140 #endif
Marble::WmsServerLayout::epsgCode
QString epsgCode() const
Definition: ServerLayout.cpp:156
Marble::CustomServerLayout
Definition: ServerLayout.h:74
Marble::TmsServerLayout::TmsServerLayout
TmsServerLayout(GeoSceneTiled *textureLayer)
Definition: ServerLayout.cpp:207
Marble::QuadTreeServerLayout
Definition: ServerLayout.h:110
Marble::ServerLayout::ServerLayout
ServerLayout(GeoSceneTiled *textureLayer)
Definition: ServerLayout.cpp:27
Marble::TmsServerLayout::name
virtual QString name() const
Returns the name of the server layout to be used as the value in the mode attribute in the DGML file...
Definition: ServerLayout.cpp:231
Marble::ServerLayout::~ServerLayout
virtual ~ServerLayout()
Definition: ServerLayout.cpp:32
Marble::ServerLayout::name
virtual QString name() const =0
Returns the name of the server layout to be used as the value in the mode attribute in the DGML file...
Marble::ServerLayout::m_textureLayer
GeoSceneTiled *const m_textureLayer
Definition: ServerLayout.h:44
Marble::OsmServerLayout::name
virtual QString name() const
Returns the name of the server layout to be used as the value in the mode attribute in the DGML file...
Definition: ServerLayout.cpp:74
Marble::GeoSceneTiled
Definition: GeoSceneTiled.h:43
Marble::WmsServerLayout::downloadUrl
virtual QUrl downloadUrl(const QUrl &prototypeUrl, const Marble::TileId &tileId) const
Adds WMS query items to the prototypeUrl and returns the result.
Definition: ServerLayout.cpp:111
Marble::WmsServerLayout::WmsServerLayout
WmsServerLayout(GeoSceneTiled *texture)
Definition: ServerLayout.cpp:106
Marble::CustomServerLayout::downloadUrl
virtual QUrl downloadUrl(const QUrl &prototypeUrl, const TileId &id) const
Replaces escape sequences in the prototypeUrl by the values in id and returns the result...
Definition: ServerLayout.cpp:85
Marble::OsmServerLayout::OsmServerLayout
OsmServerLayout(GeoSceneTiled *textureLayer)
Definition: ServerLayout.cpp:55
Marble::MarbleServerLayout
Definition: ServerLayout.h:47
Marble::ServerLayout::downloadUrl
virtual QUrl downloadUrl(const QUrl &prototypeUrl, const TileId &id) const =0
Translates given tile id using a prototypeUrl into an URL that can be used for downloading.
Marble::TmsServerLayout::downloadUrl
virtual QUrl downloadUrl(const QUrl &prototypeUrl, const TileId &) const
Appends zoomLevel/x/2^zoomLevel-y-1.
Definition: ServerLayout.cpp:212
Marble::OsmServerLayout::downloadUrl
virtual QUrl downloadUrl(const QUrl &prototypeUrl, const TileId &) const
Appends zoomLevel/x/y.
Definition: ServerLayout.cpp:60
Marble::MarbleServerLayout::name
virtual QString name() const
Returns the name of the server layout to be used as the value in the mode attribute in the DGML file...
Definition: ServerLayout.cpp:49
Marble::TmsServerLayout
Definition: ServerLayout.h:122
Marble::WmsServerLayout
Definition: ServerLayout.h:90
QString
Marble::WmsServerLayout::name
virtual QString name() const
Returns the name of the server layout to be used as the value in the mode attribute in the DGML file...
Definition: ServerLayout.cpp:151
Marble::ServerLayout
Definition: ServerLayout.h:21
QUrl
Marble::OsmServerLayout
Definition: ServerLayout.h:60
Marble::TileId
Definition: TileId.h:27
Marble::MarbleServerLayout::downloadUrl
virtual QUrl downloadUrl(const QUrl &prototypeUrl, const TileId &) const
Completes the path of the prototypeUrl and returns it.
Definition: ServerLayout.cpp:41
Marble::QuadTreeServerLayout::downloadUrl
virtual QUrl downloadUrl(const QUrl &, const Marble::TileId &) const
Translates given tile id using a prototypeUrl into an URL that can be used for downloading.
Definition: ServerLayout.cpp:174
Marble::QuadTreeServerLayout::QuadTreeServerLayout
QuadTreeServerLayout(GeoSceneTiled *textureLayer)
Definition: ServerLayout.cpp:169
Marble::QuadTreeServerLayout::name
virtual QString name() const
Returns the name of the server layout to be used as the value in the mode attribute in the DGML file...
Definition: ServerLayout.cpp:187
Marble::CustomServerLayout::name
virtual QString name() const
Returns the name of the server layout to be used as the value in the mode attribute in the DGML file...
Definition: ServerLayout.cpp:100
Marble::MarbleServerLayout::MarbleServerLayout
MarbleServerLayout(GeoSceneTiled *textureLayer)
Definition: ServerLayout.cpp:36
Marble::CustomServerLayout::CustomServerLayout
CustomServerLayout(GeoSceneTiled *texture)
Definition: ServerLayout.cpp:80
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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