cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumRasterOverlays::RasterOverlayDetails Struct Reference

Holds details of the Cesium3DTilesSelection::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.
 
const CesiumGeometry::RectanglefindRectangleForOverlayProjection (const CesiumGeospatial::Projection &projection) const
 Finds the rectangle corresponding to a given projection in rasterOverlayProjections.
 
void merge (const RasterOverlayDetails &other, const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84)
 Merge the other RasterOverlayDetails's projections, rectangles, and bounding region together.
 

Public Attributes

std::vector< CesiumGeospatial::ProjectionrasterOverlayProjections
 The raster overlay projections for which texture coordinates have been generated.
 
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 Cesium3DTilesSelection::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 = CesiumGeospatial::Ellipsoid::WGS84 )

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

Parameters
otherThe other instance of RasterOverlayDetails that will be merged with this.
ellipsoidThe CesiumGeospatial::Ellipsoid.

Member Data Documentation

◆ boundingRegion

CesiumGeospatial::BoundingRegion CesiumRasterOverlays::RasterOverlayDetails::boundingRegion

The precise bounding region of this tile.

Definition at line 80 of file RasterOverlayDetails.h.

◆ 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 69 of file RasterOverlayDetails.h.

◆ rasterOverlayRectangles

std::vector<CesiumGeometry::Rectangle> CesiumRasterOverlays::RasterOverlayDetails::rasterOverlayRectangles

The rectangle covered by this tile in each of the rasterOverlayProjections.

Definition at line 75 of file RasterOverlayDetails.h.


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