cesium-native  0.41.0
CesiumRasterOverlays::RasterOverlayDetails Struct Reference

Holds details of the TileRenderContent that are useful for raster overlays. More...

#include <CesiumRasterOverlays/RasterOverlayDetails.h>

Public Member Functions

 RasterOverlayDetails ()
 Construct an empty RasterOverlayDetails.
 
 RasterOverlayDetails (std::vector< CesiumGeospatial::Projection > &&rasterOverlayProjections, std::vector< CesiumGeometry::Rectangle > &&rasterOverlayRectangles, const CesiumGeospatial::BoundingRegion &boundingRegion)
 Construct a RasterOverlayDetails with given projections, the rectangles generated by the projections, and the bounding region covered those rectangles. More...
 
const CesiumGeometry::RectanglefindRectangleForOverlayProjection (const CesiumGeospatial::Projection &projection) const
 Finds the rectangle corresponding to a given projection in rasterOverlayProjections. More...
 
void merge (const RasterOverlayDetails &other, const CesiumGeospatial::Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID)
 Merge the other RasterOverlayDetails's projections, rectangles, and bounding region together. More...
 

Public Attributes

std::vector< CesiumGeospatial::ProjectionrasterOverlayProjections
 The raster overlay projections for which texture coordinates have been generated. More...
 
std::vector< CesiumGeometry::RectanglerasterOverlayRectangles
 The rectangle covered by this tile in each of the rasterOverlayProjections.
 
CesiumGeospatial::BoundingRegion boundingRegion
 The precise bounding region of this tile.
 

Detailed Description

Holds details of the TileRenderContent that are useful for raster overlays.

Definition at line 16 of file RasterOverlayDetails.h.

Constructor & Destructor Documentation

◆ RasterOverlayDetails()

CesiumRasterOverlays::RasterOverlayDetails::RasterOverlayDetails ( std::vector< CesiumGeospatial::Projection > &&  rasterOverlayProjections,
std::vector< CesiumGeometry::Rectangle > &&  rasterOverlayRectangles,
const CesiumGeospatial::BoundingRegion boundingRegion 
)

Construct a RasterOverlayDetails with given projections, the rectangles generated by the projections, and the bounding region covered those rectangles.

Parameters
rasterOverlayProjectionsThe raster overlay projections for which texture coordinates have been generated.
rasterOverlayRectanglesThe rectangle covered by this tile in each of the rasterOverlayProjections.
boundingRegionThe precise bounding region of this tile.

Member Function Documentation

◆ findRectangleForOverlayProjection()

const CesiumGeometry::Rectangle* CesiumRasterOverlays::RasterOverlayDetails::findRectangleForOverlayProjection ( const CesiumGeospatial::Projection projection) const

Finds the rectangle corresponding to a given projection in rasterOverlayProjections.

Parameters
projectionThe projection.
Returns
The tile's rectangle in the given projection, or nullptr if the projection is not in rasterOverlayProjections.

◆ merge()

void CesiumRasterOverlays::RasterOverlayDetails::merge ( const RasterOverlayDetails other,
const CesiumGeospatial::Ellipsoid &ellipsoid  CESIUM_DEFAULT_ELLIPSOID 
)

Merge the other RasterOverlayDetails's projections, rectangles, and bounding region together.

Parameters
otherThe other instance of RasterOverlayDetails that will be merged with this.

Member Data Documentation

◆ rasterOverlayProjections

std::vector<CesiumGeospatial::Projection> CesiumRasterOverlays::RasterOverlayDetails::rasterOverlayProjections

The raster overlay projections for which texture coordinates have been generated.

For the projection at index n, there is a set of texture coordinates with the attribute name _CESIUMOVERLAY_n that corresponds to that projection.

Definition at line 68 of file RasterOverlayDetails.h.


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