cesium-native 0.60.0
Loading...
Searching...
No Matches
BoundingRegionBuilder.h
1#pragma once
2
3#include <CesiumGeospatial/BoundingRegion.h>
4#include <CesiumGeospatial/GlobeRectangle.h>
5#include <CesiumGeospatial/Library.h>
6
7namespace CesiumGeospatial {
8
13class CESIUMGEOSPATIAL_API BoundingRegionBuilder {
14public:
19
29 toRegion(const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID) const;
30
38
49 void setPoleTolerance(double tolerance) noexcept;
50
61 double getPoleTolerance() const noexcept;
62
73
84
95
96private:
102 double _poleTolerance;
103 GlobeRectangle _rectangle;
104 double _minimumHeight;
105 double _maximumHeight;
106
120 bool _longitudeRangeIsEmpty;
121};
122
123} // namespace CesiumGeospatial
BoundingRegionBuilder() noexcept
Constructs a new instance, starting with an empty bounding region.
GlobeRectangle toGlobeRectangle() const
Gets the final globe rectangle from this builder.
double getPoleTolerance() const noexcept
Gets the distance from the North or South pole, in radians, that is considered "too close" to rely on...
bool expandToIncludePosition(const Cartographic &position)
Expands the bounding region to include the given position.
bool expandToIncludeBoundingRegion(const BoundingRegion &region)
Expands the bounding region to include the given bounding region.
bool expandToIncludeGlobeRectangle(const GlobeRectangle &rectangle)
Expands the bounding region to include the given globe rectangle.
void setPoleTolerance(double tolerance) noexcept
Sets the distance from the North or South pole, in radians, that is considered "too close" to rely on...
BoundingRegion toRegion(const Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84) const
Gets the final region from this builder.
A bounding volume specified as a longitude/latitude bounding box and a minimum and maximum height.
A position defined by longitude, latitude, and height.
A quadratic surface defined in Cartesian coordinates.
Definition Ellipsoid.h:39
A two-dimensional, rectangular region on a globe, specified using longitude and latitude coordinates....
Classes for geospatial computations in Cesium.