cesium-native 0.47.0
|
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. | |
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.
using Cesium3DTilesSelection::LoadedTileEnumerator::const_iterator = LoadedConstTileEnumerator::const_iterator |
An iterator over constant Tile
instances.
Definition at line 118 of file LoadedTileEnumerator.h.
|
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.
pRootTile | The root tile of the subtree. |