cesium-native  0.41.0
RasterOverlayDetails.h
1 #pragma once
2 
3 #include "Library.h"
4 
5 #include <CesiumGeometry/Rectangle.h>
6 #include <CesiumGeospatial/BoundingRegion.h>
7 #include <CesiumGeospatial/Projection.h>
8 
9 #include <vector>
10 
11 namespace CesiumRasterOverlays {
16 struct CESIUMRASTEROVERLAYS_API RasterOverlayDetails {
21 
34  std::vector<CesiumGeospatial::Projection>&& rasterOverlayProjections,
35  std::vector<CesiumGeometry::Rectangle>&& rasterOverlayRectangles,
36  const CesiumGeospatial::BoundingRegion& boundingRegion);
37 
47  const CesiumGeospatial::Projection& projection) const;
48 
56  void merge(
57  const RasterOverlayDetails& other,
58  const CesiumGeospatial::Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID);
59 
68  std::vector<CesiumGeospatial::Projection> rasterOverlayProjections;
69 
74  std::vector<CesiumGeometry::Rectangle> rasterOverlayRectangles;
75 
80 };
81 } // namespace CesiumRasterOverlays
A bounding volume specified as a longitude/latitude bounding box and a minimum and maximum height.
A quadratic surface defined in Cartesian coordinates.
Definition: Ellipsoid.h:38
std::variant< GeographicProjection, WebMercatorProjection > Projection
A projection.
Definition: Projection.h:25
Classes for raster overlays, which allow draping massive 2D textures over a model.
A 2D rectangle.
Definition: Rectangle.h:14
Holds details of the TileRenderContent that are useful for raster overlays.
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,...
std::vector< CesiumGeospatial::Projection > rasterOverlayProjections
The raster overlay projections for which texture coordinates have been generated.
RasterOverlayDetails()
Construct an empty RasterOverlayDetails.
CesiumGeospatial::BoundingRegion boundingRegion
The precise bounding region of this tile.
std::vector< CesiumGeometry::Rectangle > rasterOverlayRectangles
The rectangle covered by this tile in each of the rasterOverlayProjections.
const CesiumGeometry::Rectangle * findRectangleForOverlayProjection(const CesiumGeospatial::Projection &projection) const
Finds the rectangle corresponding to a given projection in rasterOverlayProjections.
void merge(const RasterOverlayDetails &other, const CesiumGeospatial::Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID)
Merge the other RasterOverlayDetails's projections, rectangles, and bounding region together.