cesium-native
0.41.0
|
A collection of RasterOverlay instances that are associated with a Tileset. More...
#include <Cesium3DTilesSelection/RasterOverlayCollection.h>
Public Types | |
typedef std::vector< CesiumUtility::IntrusivePointer< CesiumRasterOverlays::RasterOverlay > >::const_iterator | const_iterator |
A constant iterator for RasterOverlay instances. | |
Public Member Functions | |
RasterOverlayCollection (Tile::LoadedLinkedList &loadedTiles, const TilesetExternals &externals, const CesiumGeospatial::Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID) noexcept | |
Creates a new instance. More... | |
RasterOverlayCollection (const RasterOverlayCollection &rhs)=delete | |
Deleted Copy constructor. More... | |
RasterOverlayCollection (RasterOverlayCollection &&rhs) noexcept=default | |
Move constructor. More... | |
RasterOverlayCollection & | operator= (const RasterOverlayCollection &rhs)=delete |
Deleted copy assignment. More... | |
RasterOverlayCollection & | operator= (RasterOverlayCollection &&rhs) noexcept=default |
Move assignment. More... | |
void | add (const CesiumUtility::IntrusivePointer< CesiumRasterOverlays::RasterOverlay > &pOverlay) |
Adds the given RasterOverlay to this collection. More... | |
void | remove (const CesiumUtility::IntrusivePointer< CesiumRasterOverlays::RasterOverlay > &pOverlay) noexcept |
Remove the given RasterOverlay from this collection. | |
const std::vector< CesiumUtility::IntrusivePointer< CesiumRasterOverlays::RasterOverlay > > & | getOverlays () const |
Gets the overlays in this collection. | |
const std::vector< CesiumUtility::IntrusivePointer< CesiumRasterOverlays::RasterOverlayTileProvider > > & | getTileProviders () const |
Gets the tile providers in this collection. Each tile provider corresponds with the overlay at the same position in the collection returned by getOverlays. | |
const std::vector< CesiumUtility::IntrusivePointer< CesiumRasterOverlays::RasterOverlayTileProvider > > & | getPlaceholderTileProviders () const |
Gets the placeholder tile providers in this collection. Each placeholder tile provider corresponds with the overlay at the same position in the collection returned by getOverlays. | |
CesiumRasterOverlays::RasterOverlayTileProvider * | findTileProviderForOverlay (CesiumRasterOverlays::RasterOverlay &overlay) noexcept |
Finds the tile provider for a given overlay. More... | |
const CesiumRasterOverlays::RasterOverlayTileProvider * | findTileProviderForOverlay (const CesiumRasterOverlays::RasterOverlay &overlay) const noexcept |
Finds the tile provider for a given overlay. More... | |
CesiumRasterOverlays::RasterOverlayTileProvider * | findPlaceholderTileProviderForOverlay (CesiumRasterOverlays::RasterOverlay &overlay) noexcept |
Finds the placeholder tile provider for a given overlay. More... | |
const CesiumRasterOverlays::RasterOverlayTileProvider * | findPlaceholderTileProviderForOverlay (const CesiumRasterOverlays::RasterOverlay &overlay) const noexcept |
Finds the placeholder tile provider for a given overlay. More... | |
const_iterator | begin () const noexcept |
Returns an iterator at the beginning of this collection. | |
const_iterator | end () const noexcept |
Returns an iterator at the end of this collection. | |
size_t | size () const noexcept |
Gets the number of overlays in the collection. | |
A collection of 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 RasterOverlayTileProvider will be created for each raster overlay that had been added. The raster overlay tile provider instances will be passed to the RasterOverlayTile instances that they create when the tiles are updated.
Definition at line 31 of file RasterOverlayCollection.h.
|
noexcept |
Creates a new instance.
loadedTiles | The list of loaded tiles. The collection does not own this list, so the list needs to be kept alive as long as the collection's lifetime |
externals | A collection of loading system to load a raster overlay |
|
delete |
Deleted Copy constructor.
rhs | The other instance. |
|
defaultnoexcept |
Move constructor.
rhs | The other instance. |
void Cesium3DTilesSelection::RasterOverlayCollection::add | ( | const CesiumUtility::IntrusivePointer< CesiumRasterOverlays::RasterOverlay > & | pOverlay | ) |
Adds the given RasterOverlay to this collection.
pOverlay | The pointer to the overlay. This may not be nullptr . |
|
noexcept |
Finds the placeholder tile provider for a given overlay.
If the specified raster overlay is not part of this collection, this method will return nullptr.
This method will return the placeholder tile provider even if the real one has been created. This is useful to create placeholder tiles when the rectangle in the overlay's projection is not yet known.
overlay | The overlay for which to obtain the tile provider. |
|
noexcept |
Finds the placeholder tile provider for a given overlay.
If the specified raster overlay is not part of this collection, this method will return nullptr.
This method will return the placeholder tile provider even if the real one has been created. This is useful to create placeholder tiles when the rectangle in the overlay's projection is not yet known.
overlay | The overlay for which to obtain the tile provider. |
|
noexcept |
Finds the tile provider for a given overlay.
If the specified raster overlay is not part of this collection, this method will return nullptr.
If the overlay's real tile provider hasn't finished being created yet, a placeholder will be returned. That is, its RasterOverlayTileProvider::isPlaceholder method will return true.
overlay | The overlay for which to obtain the tile provider. |
|
noexcept |
Finds the tile provider for a given overlay.
If the specified raster overlay is not part of this collection, this method will return nullptr.
If the overlay's real tile provider hasn't finished being created yet, a placeholder will be returned. That is, its RasterOverlayTileProvider::isPlaceholder method will return true.
overlay | The overlay for which to obtain the tile provider. |
|
delete |
Deleted copy assignment.
rhs | The other instance. |
|
defaultnoexcept |
Move assignment.
rhs | The other instance. |