libosmscout
0.1
|
#include <TileId.h>
Public Member Functions | |
GeoBox | GetBoundingBox () const |
Return the bounding box of the tile. More... | |
std::string | GetDisplayText () const |
Return a short human readable description of the tile id. More... | |
TileId | GetId () const |
uint32_t | GetLevel () const |
TileKey | GetParent () const |
Return the parent tile. More... | |
bool | operator!= (const TileKey &other) const |
Compare tile ids for inequality. More... | |
bool | operator< (const TileKey &other) const |
Compare tile ids by their order. More... | |
bool | operator== (const TileKey &other) const |
Compare tile ids for equality. More... | |
TileKey (const Magnification &magnification, const TileId &id) | |
osmscout::TileKey::TileKey | ( | const Magnification & | magnification, |
const TileId & | id | ||
) |
GeoBox osmscout::TileKey::GetBoundingBox | ( | ) | const |
Return the bounding box of the tile.
References osmscout::cellDimension.
Referenced by osmscout::TileIdBox::GetBoundingBox().
std::string osmscout::TileKey::GetDisplayText | ( | ) | const |
Return a short human readable description of the tile id.
|
inline |
|
inline |
Referenced by osmscout::Tile::GetLevel().
TileKey osmscout::TileKey::GetParent | ( | ) | const |
Return the parent tile.
Note that the parent tile will cover a 4 times bigger region than the current tile.
Note that for tiles with level 0 no parent tile will exist. The method will assert in this case!
References osmscout::Magnification::SetLevel().
Referenced by osmscout::DataTileCache::PrefillDataFromCache().
bool osmscout::TileKey::operator!= | ( | const TileKey & | other | ) | const |
Compare tile ids for inequality.
bool osmscout::TileKey::operator< | ( | const TileKey & | other | ) | const |
Compare tile ids by their order.
Needed for sorting tile ids and placing them into (some) containers.
bool osmscout::TileKey::operator== | ( | const TileKey & | other | ) | const |
Compare tile ids for equality.