cesium-native 0.44.2
Loading...
Searching...
No Matches
RasterOverlayDetails.h
1#pragma once
2
3#include <CesiumGeometry/Rectangle.h>
4#include <CesiumGeospatial/BoundingRegion.h>
5#include <CesiumGeospatial/Projection.h>
6#include <CesiumRasterOverlays/Library.h>
7
8#include <vector>
9
10namespace CesiumRasterOverlays {
15struct CESIUMRASTEROVERLAYS_API RasterOverlayDetails {
20
33 std::vector<CesiumGeospatial::Projection>&& rasterOverlayProjections,
34 std::vector<CesiumGeometry::Rectangle>&& rasterOverlayRectangles,
35 const CesiumGeospatial::BoundingRegion& boundingRegion);
36
46 const CesiumGeospatial::Projection& projection) const;
47
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:39
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 Cesium3DTilesSelection::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=CesiumGeospatial::Ellipsoid::WGS84)
Merge the other RasterOverlayDetails's projections, rectangles, and bounding region together.