4 #include "QuadtreeTileID.h"
7 #include <glm/vec2.hpp>
31 uint32_t rootTilesY) noexcept;
39 return this->_rectangle;
75 std::optional<CesiumGeometry::QuadtreeTileID>
Defines how a rectangular region is divided into quadtree tiles.
uint32_t getNumberOfYTilesAtLevel(uint32_t level) const noexcept
Returns the number of tiles, in y-direction, at the given level.
uint32_t getRootTilesY() const noexcept
Returns the number of root tiles, in y-direction.
QuadtreeTilingScheme(const CesiumGeometry::Rectangle &rectangle, uint32_t rootTilesX, uint32_t rootTilesY) noexcept
Constructs a new instance.
std::optional< CesiumGeometry::QuadtreeTileID > positionToTile(const glm::dvec2 &position, uint32_t level) const noexcept
Computes the CesiumGeometry::QuadtreeTileID for a given position and level.
uint32_t getRootTilesX() const noexcept
Returns the number of root tiles, in x-direction.
uint32_t getNumberOfXTilesAtLevel(uint32_t level) const noexcept
Returns the number of tiles, in x-direction, at the given level.
const CesiumGeometry::Rectangle & getRectangle() const noexcept
Return the overall rectangle that is tiled.
CesiumGeometry::Rectangle tileToRectangle(const CesiumGeometry::QuadtreeTileID &tileID) const noexcept
Returns the CesiumGeometry::Rectangle that is covered by the specified tile.
Basic geometry classes for Cesium.
Uniquely identifies a node in a quadtree.