From b6cf23118badec5b717204021d1c4070485cf9b1 Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Thu, 23 Mar 2023 23:24:05 +1100 Subject: [PATCH] Add doc and CHANGES.md update. --- CHANGES.md | 1 + .../include/Cesium3DTilesSelection/ITileExcluder.h | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index bb244d572..60cc48663 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -15,6 +15,7 @@ - Changed how `TilesetOptions::forbidHoles` works so that it loads much more quickly, while still guaranteeing there are no holes in the tileset. - Added `frameNumber` property to `ViewUpdateResult`. - Added getters for the `stride` and `data` fields of `AccessorView`. +- Added `startNewFrame` method to `ITileExcluder`. ##### Fixes :wrench: diff --git a/Cesium3DTilesSelection/include/Cesium3DTilesSelection/ITileExcluder.h b/Cesium3DTilesSelection/include/Cesium3DTilesSelection/ITileExcluder.h index 815940439..ed2bd9e32 100644 --- a/Cesium3DTilesSelection/include/Cesium3DTilesSelection/ITileExcluder.h +++ b/Cesium3DTilesSelection/include/Cesium3DTilesSelection/ITileExcluder.h @@ -11,7 +11,20 @@ class Tile; class ITileExcluder { public: virtual ~ITileExcluder() = default; + + /** + * @brief Indicates the start of a new frame, initiated with a call to {@link Tileset::updateView}. + */ virtual void startNewFrame() noexcept {} + + /** + * @brief Determines whether a given tile should be excluded. + * + * @param tile The tile to test + * @return true if this tile and all of its descendants in the bounding volume + * hiearchy should be excluded from loading and rendering. + * @return false if this tile should be included. + */ virtual bool shouldExclude(const Tile& tile) const noexcept = 0; };