cesium-native 0.43.0
Loading...
Searching...
No Matches
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
11namespace CesiumRasterOverlays {
16struct 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
57 void merge(
58 const RasterOverlayDetails& other,
59 const CesiumGeospatial::Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID);
60
69 std::vector<CesiumGeospatial::Projection> rasterOverlayProjections;
70
75 std::vector<CesiumGeometry::Rectangle> rasterOverlayRectangles;
76
81};
82} // 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 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.