alaCarte Maps
Renderer for OpenStreetMap tiles
|
A MetaIdentifier identifies a set of Tiles that a rendered together. More...
#include <meta_identifier.hpp>
Public Member Functions | |
MetaIdentifier (const TileIdentifier &origin) | |
TESTABLE int | getWidth () const |
TESTABLE int | getHeight () const |
bool | contains (const shared_ptr< TileIdentifier > tid) const |
TESTABLE const std::vector< shared_ptr< TileIdentifier > > & | getIdentifiers () const |
TESTABLE void | getSubIdentifiers (std::vector< shared_ptr< MetaIdentifier >> &tiles) const |
get all tiles that are below this tile on the next zoom level. More... | |
Public Member Functions inherited from TileIdentifier | |
TileIdentifier (int x, int y, int zoom, string styleSheetpath, Format imageFormat) | |
Constructs a new TileIdentifier with the given parameters. More... | |
TESTABLE int | getX () const |
Returns the x coordinate of the Tile. More... | |
TESTABLE int | getY () const |
Returns the y coordinate of the Tile. More... | |
TESTABLE int | getZoom () const |
Returns the zoom level of the Tile. More... | |
TESTABLE Format | getImageFormat () const |
Returns the image Format of the Tile. More... | |
TESTABLE const string & | getImageFormatString () const |
Returns the image Format of the Tile. More... | |
TESTABLE const string & | getStylesheetPath () const |
Returns the path to the Stylesheet which should be used for rendering. More... | |
TESTABLE bool | isDefaultIdentifier () const |
Determine whether this is the Identifier for the default tile. More... | |
TESTABLE bool | isNoneDataIdentifier () const |
Static Public Member Functions | |
static shared_ptr< MetaIdentifier > | Create (const shared_ptr< TileIdentifier > &origin) |
This file is part of alaCarte. More... | |
Static Public Member Functions inherited from TileIdentifier | |
static shared_ptr< TileIdentifier > | Create (const string &url, shared_ptr< StylesheetManager > StylesheetManager, const shared_ptr< Configuration > &config) |
Constructs a new TileIdentifier with the given url. More... | |
static shared_ptr< TileIdentifier > | CreateEmptyTID (const string &stylesheetPath, TileIdentifier::Format format) |
Return the TileIdentifier used for Tiles without data. More... | |
static int | stringToInt (const char *c) |
Converts the given char* to integer. More... | |
Private Attributes | |
int | width |
with of the meta tile in tiles More... | |
int | height |
height of the meta tile in tiles More... | |
std::vector< shared_ptr< TileIdentifier > > | tids |
list of all contained tiles More... | |
Additional Inherited Members | |
Public Types inherited from TileIdentifier | |
enum | Format { PNG, SVG, enumSize } |
Enumeration which contains all supported image formats. More... | |
Protected Attributes inherited from TileIdentifier | |
int | x |
x coordinate of the Tile. More... | |
int | y |
y coordinate of the Tile. More... | |
int | zoom |
zoom level of the Tile. More... | |
string | styleSheetpath |
path to the Stylesheet which should be used for rendering. More... | |
Format | imageFormat |
Format of the image. More... | |
A MetaIdentifier identifies a set of Tiles that a rendered together.
Definition at line 31 of file meta_identifier.hpp.
MetaIdentifier::MetaIdentifier | ( | const TileIdentifier & | origin | ) |
Definition at line 36 of file meta_identifier.cpp.
bool MetaIdentifier::contains | ( | const shared_ptr< TileIdentifier > | tid | ) | const |
Definition at line 77 of file meta_identifier.cpp.
|
static |
This file is part of alaCarte.
alaCarte is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
alaCarte is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with alaCarte. If not, see http://www.gnu.org/licenses/.
Copyright alaCarte 2012-2013 Simon Dreher, Florian Jacob, Tobias Kahlert, Patrick Niklaus, Bernhard Scheirle, Lisa Winter Maintainer: Simon Dreher Constructs a new TileIdentifier with the given parameters.
topLeft | corner of the meta-tile |
Definition at line 31 of file meta_identifier.cpp.
int MetaIdentifier::getHeight | ( | ) | const |
Definition at line 72 of file meta_identifier.cpp.
const std::vector< shared_ptr< TileIdentifier > > & MetaIdentifier::getIdentifiers | ( | ) | const |
Definition at line 62 of file meta_identifier.cpp.
void MetaIdentifier::getSubIdentifiers | ( | std::vector< shared_ptr< MetaIdentifier >> & | tiles | ) | const |
get all tiles that are below this tile on the next zoom level.
Used by RequestManager to enqueue meta tile for pre-rendering.
Definition at line 91 of file meta_identifier.cpp.
int MetaIdentifier::getWidth | ( | ) | const |
Definition at line 67 of file meta_identifier.cpp.
|
private |
height of the meta tile in tiles
Definition at line 48 of file meta_identifier.hpp.
|
private |
list of all contained tiles
Definition at line 50 of file meta_identifier.hpp.
|
private |
with of the meta tile in tiles
Definition at line 46 of file meta_identifier.hpp.