OSM::ZTile

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

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

Definition at line 21 of file ztile.h.

Member Function Documentation

◆ boundingBox()

OSM::BoundingBox ZTile::boundingBox ( ) const
nodiscard

Definition at line 12 of file ztile.cpp.

◆ intersects() [1/2]

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

Definition at line 19 of file ztile.cpp.

◆ intersects() [2/2]

bool ZTile::intersects ( ZTile other) const
nodiscard

Definition at line 24 of file ztile.cpp.

◆ operator<()

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

Definition at line 26 of file ztile.h.

◆ operator==()

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

Definition at line 30 of file ztile.h.

◆ parent()

ZTile ZTile::parent ( ) const
nodiscard

The parent tile in a quad tree.

Definition at line 32 of file ztile.cpp.

◆ quadSplit()

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

Split into four sub-tiles on one level below.

Definition at line 37 of file ztile.cpp.

◆ size()

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

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 Nov 29 2024 11:55:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.