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

#include <TileId.h>

Public Member Functions

TileIdBoxConstIterator begin () const
 
TileIdBoxConstIterator end () const
 
GeoBox GetBoundingBox (const Magnification &magnification) const
 Return the bounding box of the region defined by the box. More...
 
TileId GetCenter () const
 
uint32_t GetCount () const
 
std::string GetDisplayText () const
 
uint32_t GetHeight () const
 
TileId GetMax () const
 
uint32_t GetMaxX () const
 
uint32_t GetMaxY () const
 
TileId GetMin () const
 
uint32_t GetMinX () const
 
uint32_t GetMinY () const
 
uint32_t GetWidth () const
 
TileIdBox Include (const TileId &tileId) const
 
TileIdBox Include (const TileIdBox &other) const
 
TileIdBox Intersection (const TileIdBox &other) const
 
bool Intersects (const TileIdBox &other) const
 
bool operator== (const TileIdBox &other) const
 
 TileIdBox (const Magnification &magnification, const GeoBox &boundingBox)
 
 TileIdBox (const TileId &a, const TileId &b)
 

Detailed Description

A bounding box defined by two tile ids that span a rectangular region (in tile coordinate system)

Constructor & Destructor Documentation

◆ TileIdBox() [1/2]

osmscout::TileIdBox::TileIdBox ( const TileId a,
const TileId b 
)

◆ TileIdBox() [2/2]

osmscout::TileIdBox::TileIdBox ( const Magnification magnification,
const GeoBox boundingBox 
)
inline

Member Function Documentation

◆ begin()

TileIdBoxConstIterator osmscout::TileIdBox::begin ( ) const
inline

◆ end()

TileIdBoxConstIterator osmscout::TileIdBox::end ( ) const
inline

◆ GetBoundingBox()

GeoBox osmscout::TileIdBox::GetBoundingBox ( const Magnification magnification) const

Return the bounding box of the region defined by the box.

Returns
The GeoBox defining the resulting area

References osmscout::GeoBox::GetBottomLeft(), osmscout::TileKey::GetBoundingBox(), osmscout::TileId::GetX(), and osmscout::TileId::GetY().

Referenced by osmscout::ElevationService< DataLoader >::ElevationProfile(), and osmscout::AreaIndex::Open().

◆ GetCenter()

TileId osmscout::TileIdBox::GetCenter ( ) const
inline

◆ GetCount()

uint32_t osmscout::TileIdBox::GetCount ( ) const
inline

◆ GetDisplayText()

std::string osmscout::TileIdBox::GetDisplayText ( ) const
inline

◆ GetHeight()

uint32_t osmscout::TileIdBox::GetHeight ( ) const
inline

◆ GetMax()

TileId osmscout::TileIdBox::GetMax ( ) const
inline

◆ GetMaxX()

uint32_t osmscout::TileIdBox::GetMaxX ( ) const
inline

◆ GetMaxY()

uint32_t osmscout::TileIdBox::GetMaxY ( ) const
inline

◆ GetMin()

TileId osmscout::TileIdBox::GetMin ( ) const
inline

◆ GetMinX()

uint32_t osmscout::TileIdBox::GetMinX ( ) const
inline

◆ GetMinY()

uint32_t osmscout::TileIdBox::GetMinY ( ) const
inline

◆ GetWidth()

uint32_t osmscout::TileIdBox::GetWidth ( ) const
inline

◆ Include() [1/2]

TileIdBox osmscout::TileIdBox::Include ( const TileId tileId) const

◆ Include() [2/2]

TileIdBox osmscout::TileIdBox::Include ( const TileIdBox other) const

◆ Intersection()

TileIdBox osmscout::TileIdBox::Intersection ( const TileIdBox other) const

◆ Intersects()

bool osmscout::TileIdBox::Intersects ( const TileIdBox other) const

◆ operator==()

bool osmscout::TileIdBox::operator== ( const TileIdBox other) const
inline

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