Search for usage in LXR

#include <ztile.h>

Public Member Functions

constexpr ZTile (uint64_t _z, uint8_t _depth)
BoundingBox boundingBox () const
bool intersects (BoundingBox bbox) const
bool intersects (ZTile other) const
constexpr bool operator< (ZTile other) const
constexpr bool operator== (ZTile other) const
ZTile parent () const
std::array< ZTile, 4 > quadSplit () const
constexpr uint32_t size () const

Public Attributes

uint8_t depth = 0
uint64_t z = 0

Detailed Description

Tile in a quad tree made up out of z-order curve positions.

Definition at line 17 of file ztile.h.

Constructor & Destructor Documentation

◆ ZTile()

constexpr OSM::ZTile::ZTile ( uint64_t _z,
uint8_t _depth )

Definition at line 21 of file ztile.h.

Member Function Documentation

◆ boundingBox()

OSM::BoundingBox ZTile::boundingBox ( ) const

Definition at line 12 of file ztile.cpp.

◆ intersects() [1/2]

bool ZTile::intersects ( OSM::BoundingBox bbox) const

Definition at line 19 of file ztile.cpp.

◆ intersects() [2/2]

bool ZTile::intersects ( ZTile other) const

Definition at line 24 of file ztile.cpp.

◆ operator<()

constexpr bool OSM::ZTile::operator< ( ZTile other) const

Definition at line 26 of file ztile.h.

◆ operator==()

constexpr bool OSM::ZTile::operator== ( ZTile other) const

Definition at line 30 of file ztile.h.

◆ parent()

ZTile ZTile::parent ( ) const

The parent tile in a quad tree.

Definition at line 32 of file ztile.cpp.

◆ quadSplit()

std::array< ZTile, 4 > ZTile::quadSplit ( ) const

Split into four sub-tiles on one level below.

Definition at line 37 of file ztile.cpp.

◆ size()

constexpr uint32_t OSM::ZTile::size ( ) const

tile size in 1e7-th degrees

Definition at line 36 of file ztile.h.

Member Data Documentation

◆ depth

uint8_t OSM::ZTile::depth = 0

Definition at line 52 of file ztile.h.

◆ z

uint64_t OSM::ZTile::z = 0

Definition at line 51 of file ztile.h.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 21 2024 12:02:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.