libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::TileIdBox Class Referencefinal

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

#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.
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
bool Includes (const TileId &tile) 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

References TileIdBox().

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(), and osmscout::TileKey::GetBoundingBox().

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

Referenced by GetCount().

◆ 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

Referenced by GetCount().

◆ Include() [1/2]

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

◆ Include() [2/2]

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

◆ Includes()

bool osmscout::TileIdBox::Includes ( const TileId & tile) const
inline

◆ 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

References TileIdBox().


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