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

Helps debug the tile selection algorithm by recording the state of tiles each frame to a SQLite database. More...

#include <Cesium3DTilesSelection/DebugTileStateDatabase.h>

Public Member Functions

 DebugTileStateDatabase (const std::string &databaseFilename)
 Creates a new instance.
 
void recordAllTileStates (int32_t frameNumber, const Tileset &tileset, const TilesetViewGroup &viewGroup)
 Records the state of all tiles that are currently loaded by the given tileset.
 
void recordTileState (int32_t frameNumber, const TilesetViewGroup &viewGroup, const Tile &tile)
 Records the state of a given tile.
 
void recordTileState (int32_t frameNumber, const Tile &tile, const std::unordered_map< Tile::Pointer, TileSelectionState > &states)
 Records the state of a given tile.
 

Detailed Description

Helps debug the tile selection algorithm by recording the state of tiles each frame to a SQLite database.

Definition at line 19 of file DebugTileStateDatabase.h.

Constructor & Destructor Documentation

◆ DebugTileStateDatabase()

Cesium3DTilesSelection::DebugTileStateDatabase::DebugTileStateDatabase ( const std::string & databaseFilename)

Creates a new instance.

Parameters
databaseFilenameThe full path and filename of the output SQLite database.

Member Function Documentation

◆ recordAllTileStates()

void Cesium3DTilesSelection::DebugTileStateDatabase::recordAllTileStates ( int32_t frameNumber,
const Tileset & tileset,
const TilesetViewGroup & viewGroup )

Records the state of all tiles that are currently loaded by the given tileset.

The state is obtained from the view group's TilesetViewGroup::getTraversalState by calling CesiumUtility::TreeTraversalState::slowlyGetPreviousStates.

Parameters
frameNumberThe current frame number.
tilesetThe tileset.
viewGroupThe view group.

◆ recordTileState() [1/2]

void Cesium3DTilesSelection::DebugTileStateDatabase::recordTileState ( int32_t frameNumber,
const Tile & tile,
const std::unordered_map< Tile::Pointer, TileSelectionState > & states )

Records the state of a given tile.

The state is obtained from the provided map.

Parameters
frameNumberThe current frame number.
tileThe tile.
statesThe lookup table for tile states.

◆ recordTileState() [2/2]

void Cesium3DTilesSelection::DebugTileStateDatabase::recordTileState ( int32_t frameNumber,
const TilesetViewGroup & viewGroup,
const Tile & tile )

Records the state of a given tile.

The state is obtained from the view group's TilesetViewGroup::getTraversalState by calling CesiumUtility::TreeTraversalState::slowlyGetPreviousStates.

Parameters
frameNumberThe current frame number.
viewGroupThe view group.
tileThe tile.

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