cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumGeometry::OctreeTileID Struct Reference

A structure serving as a unique identifier for a node in an octree. More...

#include <CesiumGeometry/OctreeTileID.h>

Public Member Functions

constexpr OctreeTileID ()
 Creates a new instance.
 
constexpr OctreeTileID (uint32_t level_, uint32_t x_, uint32_t y_, uint32_t z_) noexcept
 Creates a new instance.
 
constexpr bool operator== (const OctreeTileID &other) const noexcept
 Returns true if two identifiers are equal.
 
constexpr bool operator!= (const OctreeTileID &other) const noexcept
 Returns true if two identifiers are not equal.
 

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.
 
uint32_t z
 The z-coordinate of this tile ID.
 

Detailed Description

A structure serving as a unique identifier for a node in an octree.

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-, y-, and z-coordinate of the tile, referring to a grid coordinate system at the respective level.

Definition at line 18 of file OctreeTileID.h.

Constructor & Destructor Documentation

◆ OctreeTileID() [1/2]

CesiumGeometry::OctreeTileID::OctreeTileID ( )
inlineconstexpr

Creates a new instance.

Definition at line 23 of file OctreeTileID.h.

◆ OctreeTileID() [2/2]

CesiumGeometry::OctreeTileID::OctreeTileID ( uint32_t level_,
uint32_t x_,
uint32_t y_,
uint32_t z_ )
inlineconstexprnoexcept

Creates a new instance.

Parameters
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.
z_The z-coordinate of the tile.

Definition at line 33 of file OctreeTileID.h.

Member Function Documentation

◆ operator!=()

bool CesiumGeometry::OctreeTileID::operator!= ( const OctreeTileID & other) const
inlineconstexprnoexcept

Returns true if two identifiers are not equal.

Definition at line 51 of file OctreeTileID.h.

◆ operator==()

bool CesiumGeometry::OctreeTileID::operator== ( const OctreeTileID & other) const
inlineconstexprnoexcept

Returns true if two identifiers are equal.

Definition at line 43 of file OctreeTileID.h.

Member Data Documentation

◆ level

uint32_t CesiumGeometry::OctreeTileID::level

The level of this tile ID, with 0 being the root tile.

Definition at line 58 of file OctreeTileID.h.

◆ x

uint32_t CesiumGeometry::OctreeTileID::x

The x-coordinate of this tile ID.

Definition at line 63 of file OctreeTileID.h.

◆ y

uint32_t CesiumGeometry::OctreeTileID::y

The y-coordinate of this tile ID.

Definition at line 68 of file OctreeTileID.h.

◆ z

uint32_t CesiumGeometry::OctreeTileID::z

The z-coordinate of this tile ID.

Definition at line 73 of file OctreeTileID.h.


The documentation for this struct was generated from the following file: