alaCarte Maps
Renderer for OpenStreetMap tiles
|
#include <tile.hpp>
Public Types | |
typedef shared_ptr< std::vector< uint8_t > > | ImageType |
Public Member Functions | |
Tile (const shared_ptr< TileIdentifier > &id) | |
This file is part of alaCarte. More... | |
~Tile () | |
TESTABLE bool | isRendered () const |
Returns if the Tile is already rendered. More... | |
TESTABLE const ImageType & | getImage () const |
Returns the rendered image. More... | |
TESTABLE void | setImage (const ImageType &image) |
Sets the image of this Tile. More... | |
TESTABLE const shared_ptr< TileIdentifier > & | getIdentifier () const |
Returns the TileIdentifier of this Tile. More... | |
Private Attributes | |
ImageType | image |
Pointer to a memory block, which contains the rendered Image. More... | |
const shared_ptr< TileIdentifier > | id |
TileIdentifier which identifies this Tile. More... | |
typedef shared_ptr< std::vector<uint8_t> > Tile::ImageType |
Tile::Tile | ( | const shared_ptr< TileIdentifier > & | id | ) |
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: Tobias Kahlert Constructs a new Tile with the given TileIdentifier.
id | The TileIdentifier which identifies the Tile. |
const shared_ptr< TileIdentifier > & Tile::getIdentifier | ( | ) | const |
Returns the TileIdentifier of this Tile.
const Tile::ImageType & Tile::getImage | ( | ) | const |
bool Tile::isRendered | ( | ) | const |
void Tile::setImage | ( | const ImageType & | image | ) |
|
private |
TileIdentifier which identifies this Tile.
|
private |