|
cesium-native 0.52.0
|
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< const Tile *, TileSelectionState > &states) |
| Records the state of a given tile. | |
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.
| Cesium3DTilesSelection::DebugTileStateDatabase::DebugTileStateDatabase | ( | const std::string & | databaseFilename | ) |
Creates a new instance.
| databaseFilename | The full path and filename of the output SQLite database. |
| 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.
| frameNumber | The current frame number. |
| tileset | The tileset. |
| viewGroup | The view group. |
| void Cesium3DTilesSelection::DebugTileStateDatabase::recordTileState | ( | int32_t | frameNumber, |
| const Tile & | tile, | ||
| const std::unordered_map< const Tile *, TileSelectionState > & | states ) |
Records the state of a given tile.
The state is obtained from the provided map.
| frameNumber | The current frame number. |
| tile | The tile. |
| states | The lookup table for tile states. |
| 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.
| frameNumber | The current frame number. |
| viewGroup | The view group. |
| tile | The tile. |