#include <tile_source.h>
Signals | |
void | ErrorMessage (const std::string &error_msg) const |
void | InfoMessage (const std::string &info_msg) const |
Public Member Functions | |
virtual size_t | GenerateTileHash (int32_t level, int64_t x, int64_t y)=0 |
virtual QString | GenerateTileUrl (int32_t level, int64_t x, int64_t y)=0 |
virtual const QString & | GetBaseUrl () const |
virtual int32_t | GetMaxZoom () const |
virtual int32_t | GetMinZoom () const |
virtual const QString & | GetName () const |
virtual QString | GetType () const =0 |
virtual bool | IsCustom () const |
virtual void | SetBaseUrl (const QString &base_url) |
virtual void | SetCustom (bool is_custom) |
virtual void | SetMaxZoom (int32_t max_zoom) |
virtual void | SetMinZoom (int32_t min_zoom) |
virtual void | SetName (const QString &name) |
virtual | ~TileSource () |
Protected Member Functions | |
TileSource () | |
Protected Attributes | |
QString | base_url_ |
bool | is_custom_ |
int32_t | max_zoom_ |
int32_t | min_zoom_ |
QString | name_ |
Represents a network source for map tiles; contains information about how to connect to the source and how to retrieve tiles from it.
Implementations of this should be specific to a type of map server such as WMS, WMTS, or TMS, and implement the appropriate methods for retrieiving tiles from those servers.
Definition at line 47 of file tile_source.h.
|
inlinevirtual |
Definition at line 51 of file tile_source.h.
|
inlineprotected |
Definition at line 104 of file tile_source.h.
|
signal |
|
pure virtual |
Generates a hash that uniquely identifies the tile from this source at the specified level and coordinates.
level | The zoom level |
x | The X coordinate |
y | The Y coordinate |
Implemented in tile_map::BingSource, and tile_map::WmtsSource.
|
pure virtual |
Generates an HTTP or HTTPS URL that refers to a map tile from this source at the given level and x and y coordinates.
level | The zoom level |
x | The x coordinate |
y | The y coordinate |
Implemented in tile_map::BingSource, and tile_map::WmtsSource.
|
virtual |
Definition at line 35 of file tile_source.cpp.
|
virtual |
Definition at line 55 of file tile_source.cpp.
|
virtual |
Definition at line 65 of file tile_source.cpp.
|
virtual |
Definition at line 75 of file tile_source.cpp.
|
pure virtual |
Returns a string identifying the type of map source ("wmts", "bing", etc.)
Implemented in tile_map::BingSource, and tile_map::WmtsSource.
|
signal |
|
virtual |
Definition at line 45 of file tile_source.cpp.
|
virtual |
Definition at line 40 of file tile_source.cpp.
|
virtual |
Definition at line 50 of file tile_source.cpp.
|
virtual |
Definition at line 60 of file tile_source.cpp.
|
virtual |
Definition at line 70 of file tile_source.cpp.
|
virtual |
Definition at line 80 of file tile_source.cpp.
|
protected |
Definition at line 104 of file tile_source.h.
|
protected |
Definition at line 107 of file tile_source.h.
|
protected |
Definition at line 108 of file tile_source.h.
|
protected |
Definition at line 109 of file tile_source.h.
|
protected |
Definition at line 110 of file tile_source.h.