cesium-native 0.48.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
74private:
80 double _poleTolerance;
81 GlobeRectangle _rectangle;
82 double _minimumHeight;
83 double _maximumHeight;
84
98 bool _longitudeRangeIsEmpty;
99};
100
101} // 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.
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.