cesium-native  0.41.0
Cesium3DTilesSelection::RasterOverlayCollection Class Referencefinal

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...
 
RasterOverlayCollectionoperator= (const RasterOverlayCollection &rhs)=delete
 Deleted copy assignment. More...
 
RasterOverlayCollectionoperator= (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::RasterOverlayTileProviderfindTileProviderForOverlay (CesiumRasterOverlays::RasterOverlay &overlay) noexcept
 Finds the tile provider for a given overlay. More...
 
const CesiumRasterOverlays::RasterOverlayTileProviderfindTileProviderForOverlay (const CesiumRasterOverlays::RasterOverlay &overlay) const noexcept
 Finds the tile provider for a given overlay. More...
 
CesiumRasterOverlays::RasterOverlayTileProviderfindPlaceholderTileProviderForOverlay (CesiumRasterOverlays::RasterOverlay &overlay) noexcept
 Finds the placeholder tile provider for a given overlay. More...
 
const CesiumRasterOverlays::RasterOverlayTileProviderfindPlaceholderTileProviderForOverlay (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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RasterOverlayCollection() [1/3]

Cesium3DTilesSelection::RasterOverlayCollection::RasterOverlayCollection ( Tile::LoadedLinkedList loadedTiles,
const TilesetExternals externals,
const CesiumGeospatial::Ellipsoid &ellipsoid  CESIUM_DEFAULT_ELLIPSOID 
)
noexcept

Creates a new instance.

Parameters
loadedTilesThe 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
externalsA collection of loading system to load a raster overlay

◆ RasterOverlayCollection() [2/3]

Cesium3DTilesSelection::RasterOverlayCollection::RasterOverlayCollection ( const RasterOverlayCollection rhs)
delete

Deleted Copy constructor.

Parameters
rhsThe other instance.

◆ RasterOverlayCollection() [3/3]

Cesium3DTilesSelection::RasterOverlayCollection::RasterOverlayCollection ( RasterOverlayCollection &&  rhs)
defaultnoexcept

Move constructor.

Parameters
rhsThe other instance.

Member Function Documentation

◆ add()

void Cesium3DTilesSelection::RasterOverlayCollection::add ( const CesiumUtility::IntrusivePointer< CesiumRasterOverlays::RasterOverlay > &  pOverlay)

Adds the given RasterOverlay to this collection.

Parameters
pOverlayThe pointer to the overlay. This may not be nullptr.

◆ findPlaceholderTileProviderForOverlay() [1/2]

CesiumRasterOverlays::RasterOverlayTileProvider* Cesium3DTilesSelection::RasterOverlayCollection::findPlaceholderTileProviderForOverlay ( CesiumRasterOverlays::RasterOverlay overlay)
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.

Parameters
overlayThe overlay for which to obtain the tile provider.
Returns
The placeholder tile provider, if any, corresponding to the raster overlay.

◆ findPlaceholderTileProviderForOverlay() [2/2]

const CesiumRasterOverlays::RasterOverlayTileProvider* Cesium3DTilesSelection::RasterOverlayCollection::findPlaceholderTileProviderForOverlay ( const CesiumRasterOverlays::RasterOverlay overlay) const
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.

Parameters
overlayThe overlay for which to obtain the tile provider.
Returns
The placeholder tile provider, if any, corresponding to the raster overlay.

◆ findTileProviderForOverlay() [1/2]

CesiumRasterOverlays::RasterOverlayTileProvider* Cesium3DTilesSelection::RasterOverlayCollection::findTileProviderForOverlay ( CesiumRasterOverlays::RasterOverlay overlay)
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.

Parameters
overlayThe overlay for which to obtain the tile provider.
Returns
The tile provider, if any, corresponding to the raster overlay.

◆ findTileProviderForOverlay() [2/2]

const CesiumRasterOverlays::RasterOverlayTileProvider* Cesium3DTilesSelection::RasterOverlayCollection::findTileProviderForOverlay ( const CesiumRasterOverlays::RasterOverlay overlay) const
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.

Parameters
overlayThe overlay for which to obtain the tile provider.
Returns
The tile provider, if any, corresponding to the raster overlay.

◆ operator=() [1/2]

RasterOverlayCollection& Cesium3DTilesSelection::RasterOverlayCollection::operator= ( const RasterOverlayCollection rhs)
delete

Deleted copy assignment.

Parameters
rhsThe other instance.

◆ operator=() [2/2]

RasterOverlayCollection& Cesium3DTilesSelection::RasterOverlayCollection::operator= ( RasterOverlayCollection &&  rhs)
defaultnoexcept

Move assignment.

Parameters
rhsThe other instance.

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