libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::TileKey Class Reference

#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)
 

Constructor & Destructor Documentation

◆ TileKey()

osmscout::TileKey::TileKey ( const Magnification magnification,
const TileId id 
)

Member Function Documentation

◆ GetBoundingBox()

GeoBox osmscout::TileKey::GetBoundingBox ( ) const

Return the bounding box of the tile.

References osmscout::cellDimension.

Referenced by osmscout::TileIdBox::GetBoundingBox().

◆ GetDisplayText()

std::string osmscout::TileKey::GetDisplayText ( ) const

Return a short human readable description of the tile id.

◆ GetId()

TileId osmscout::TileKey::GetId ( ) const
inline

◆ GetLevel()

uint32_t osmscout::TileKey::GetLevel ( ) const
inline

◆ GetParent()

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().

◆ operator!=()

bool osmscout::TileKey::operator!= ( const TileKey other) const

Compare tile ids for inequality.

◆ operator<()

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.

◆ operator==()

bool osmscout::TileKey::operator== ( const TileKey other) const

Compare tile ids for equality.


The documentation for this class was generated from the following files: