|
cesium-native 0.53.0
|
Uniquely identifies a node in a quadtree. More...
#include <CesiumGeometry/QuadtreeTileID.h>
Public Member Functions | |
| constexpr | QuadtreeTileID (uint32_t level_, uint32_t x_, uint32_t y_) noexcept |
| Creates a new instance. | |
| constexpr bool | operator== (const QuadtreeTileID &other) const noexcept |
Returns true if two identifiers are equal. | |
| constexpr bool | operator!= (const QuadtreeTileID &other) const noexcept |
Returns true if two identifiers are not equal. | |
| uint32_t | computeInvertedX (const QuadtreeTilingScheme &tilingScheme) const noexcept |
| Computes the inverse x-coordinate of this tile ID. | |
| uint32_t | computeInvertedY (const QuadtreeTilingScheme &tilingScheme) const noexcept |
| Computes the inverse y-coordinate of this tile ID. | |
| constexpr QuadtreeTileID | getParent () const noexcept |
| Gets the ID of the parent of the tile with this ID. | |
Public Attributes | |
| uint32_t | level |
| The level of this tile ID, with 0 being the root tile. | |
| uint32_t | x |
| The x-coordinate of this tile ID. | |
| uint32_t | y |
| The y-coordinate of this tile ID. | |
Uniquely identifies a node in a quadtree.
This is one form of a Cesium3DTilesSelection::TileID.
The identifier is composed of the level (with 0 being the level of the root tile), the x- and y-coordinate of the tile, referring to a grid coordinate system at the respective level.
Definition at line 20 of file QuadtreeTileID.h.
|
inlineconstexprnoexcept |
Creates a new instance.
| level_ | The level of the node, with 0 being the root |
| x_ | The x-coordinate of the tile |
| y_ | The y-coordinate of the tile |
Definition at line 29 of file QuadtreeTileID.h.
|
noexcept |
Computes the inverse x-coordinate of this tile ID.
This will compute the inverse x-coordinate of this tile ID, based on the given tiling scheme, which provides the number of tiles in x-direction for the level of this tile ID.
| tilingScheme | The QuadtreeTilingScheme. |
|
noexcept |
Computes the inverse y-coordinate of this tile ID.
This will compute the inverse y-coordinate of this tile ID, based on the given tiling scheme, which provides the number of tiles in y-direction for the level of this tile ID.
| tilingScheme | The QuadtreeTilingScheme. |
|
inlineconstexprnoexcept |
Gets the ID of the parent of the tile with this ID.
If this method is called on a level zero tile, it returns itself.
Definition at line 80 of file QuadtreeTileID.h.
|
inlineconstexprnoexcept |
Returns true if two identifiers are not equal.
Definition at line 43 of file QuadtreeTileID.h.
|
inlineconstexprnoexcept |
Returns true if two identifiers are equal.
Definition at line 35 of file QuadtreeTileID.h.
| uint32_t CesiumGeometry::QuadtreeTileID::level |
The level of this tile ID, with 0 being the root tile.
Definition at line 90 of file QuadtreeTileID.h.
| uint32_t CesiumGeometry::QuadtreeTileID::x |
The x-coordinate of this tile ID.
Definition at line 95 of file QuadtreeTileID.h.
| uint32_t CesiumGeometry::QuadtreeTileID::y |
The y-coordinate of this tile ID.
Definition at line 100 of file QuadtreeTileID.h.