A collection of CesiumRasterOverlays::RasterOverlay instances that are associated with a Tileset.
More...
#include <Cesium3DTilesSelection/RasterOverlayCollection.h>
A collection of CesiumRasterOverlays::RasterOverlay instances that are associated with a Tileset.
The raster overlay instances may be added to the raster overlay collection of a tileset that is returned with Tileset::getOverlays. When the tileset is loaded, one CesiumRasterOverlays::RasterOverlayTileProvider will be created for each raster overlay that had been added. The raster overlay tile provider instances will be passed to the CesiumRasterOverlays::RasterOverlayTile instances that they create when the tiles are updated.
Definition at line 69 of file RasterOverlayCollection.h.
◆ const_iterator
Initial value:
GetOverlayFunctor,
CesiumUtility::TransformIterator< GetOverlayFunctor, std::vector< CesiumUtility::IntrusivePointer< CesiumRasterOverlays::ActivatedRasterOverlay > >::const_iterator > const_iterator
A constant iterator for CesiumRasterOverlays::RasterOverlay instances.
A RasterOverlay that has been activated for use. While a RasterOverlayTileProvider can be used direct...
A smart pointer that calls addReference and releaseReference on the controlled object.
A constant iterator for CesiumRasterOverlays::RasterOverlay instances.
Definition at line 212 of file RasterOverlayCollection.h.
◆ RasterOverlayCollection() [1/3]
Creates a new instance.
- Parameters
-
| loadedTiles | An enumerator for the loaded tiles. The raster overlay collection will copy this enumerator, and the copy must remain valid for the lifetime of the overlay collection or until setLoadedTileEnumerator is called with a new enumerator. |
| externals | A collection of loading system to load a raster overlay |
| ellipsoid | The CesiumGeospatial::Ellipsoid. |
◆ RasterOverlayCollection() [2/3]
Deleted Copy constructor.
- Parameters
-
◆ RasterOverlayCollection() [3/3]
Move constructor.
- Parameters
-
◆ add()
◆ addTileOverlays()
Adds raster overlays to a new Tile.
The tile should be in the TileLoadState::Unloaded or TileLoadState::FailedTemporarily state.
Any existing raster overlays on the tile will be cleared.
- Parameters
-
| tile | The tile for which to add the overlays. |
| tilesetOptions | The TilesetOptions for the tileset to which the tile belongs. |
- Returns
- The list of projections required by the overlays that were added to the tile.
◆ operator=() [1/2]
Deleted copy assignment.
- Parameters
-
◆ operator=() [2/2]
Move assignment.
- Parameters
-
◆ setLoadedTileEnumerator()
| void Cesium3DTilesSelection::RasterOverlayCollection::setLoadedTileEnumerator |
( |
const LoadedTileEnumerator & | loadedTiles | ) |
|
Provides a new LoadedTileEnumerator to use to update loaded tiles when a raster overlay is added or removed.
The raster overlay collection will copy this enumerator, and the copy must remain valid for the lifetime of the overlay collection or until setLoadedTileEnumerator is called with a new enumerator.
- Parameters
-
| loadedTiles | The new loaded tile enumerator. |
◆ updateTileOverlays()
Updates the raster overlays associated with a tile.
This method is called internally for each tile that is rendered, and gives the raster overlay system a chance to replace raster overlay placeholders with real tiles. Its return value is also used to determine whether or not this tile should be upsampled in order to attach further raster overlay detail.
- Parameters
-
| tile | The tile for which to update the overlays. |
| tilesetOptions | The TilesetOptions for the tileset to which the tile belongs. |
- Returns
- Details of the raster overlays attached to this tile.
The documentation for this class was generated from the following file:
- /home/runner/work/cesium-native/cesium-native/Cesium3DTilesSelection/include/Cesium3DTilesSelection/RasterOverlayCollection.h