cesium-native
0.41.0
|
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::Rectangle * | findRectangleForOverlayProjection (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::Projection > | rasterOverlayProjections |
The raster overlay projections for which texture coordinates have been generated. More... | |
std::vector< CesiumGeometry::Rectangle > | rasterOverlayRectangles |
The rectangle covered by this tile in each of the rasterOverlayProjections. | |
CesiumGeospatial::BoundingRegion | boundingRegion |
The precise bounding region of this tile. | |
Holds details of the TileRenderContent that are useful for raster overlays.
Definition at line 16 of file RasterOverlayDetails.h.
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.
rasterOverlayProjections | The raster overlay projections for which texture coordinates have been generated. |
rasterOverlayRectangles | The rectangle covered by this tile in each of the rasterOverlayProjections. |
boundingRegion | The precise bounding region of this tile. |
const CesiumGeometry::Rectangle* CesiumRasterOverlays::RasterOverlayDetails::findRectangleForOverlayProjection | ( | const CesiumGeospatial::Projection & | projection | ) | const |
Finds the rectangle corresponding to a given projection in rasterOverlayProjections.
projection | The projection. |
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.
other | The other instance of RasterOverlayDetails that will be merged with this. |
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.