cesium-native 0.47.0
Loading...
Searching...
No Matches
Cesium3DTilesSelection::LoadedTileEnumerator Class Reference

A "virtual collection" that allows enumeration through the loaded tiles in a subtree rooted at a given Tile. More...

#include <Cesium3DTilesSelection/LoadedTileEnumerator.h>

Classes

class  iterator
 An iterator over Tile instances. More...
 

Public Types

using const_iterator = LoadedConstTileEnumerator::const_iterator
 An iterator over constant Tile instances.
 

Public Member Functions

 LoadedTileEnumerator (Tile *pRootTile) noexcept
 Creates a new instance to enumerate loaded tiles in the subtree rooted at pRootTile.
 
const_iterator begin () const noexcept
 Returns an iterator starting at the first tile.
 
const_iterator end () const noexcept
 Returns an iterator starting after the last tile.
 
iterator begin () noexcept
 Returns an iterator starting at the first tile.
 
iterator end () noexcept
 Returns an iterator starting after the last tile.
 

Detailed Description

A "virtual collection" that allows enumeration through the loaded tiles in a subtree rooted at a given Tile.

For the purposes of this enumeration, a loaded tile is one that is in a TileLoadState other than TileLoadState::Unloaded, or that has any children (or other descendants) that meet this criteria. We check the latter criteria by looking at Tile::getReferenceCount.

Definition at line 113 of file LoadedTileEnumerator.h.

Member Typedef Documentation

◆ const_iterator

Constructor & Destructor Documentation

◆ LoadedTileEnumerator()

Cesium3DTilesSelection::LoadedTileEnumerator::LoadedTileEnumerator ( Tile * pRootTile)
explicitnoexcept

Creates a new instance to enumerate loaded tiles in the subtree rooted at pRootTile.

If pRootTile is nullptr, then the iteration is empty (begin==end). Otherwise, the iteration will include at least pRootTile, even if it is not loaded.

Parameters
pRootTileThe root tile of the subtree.

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