cesium-native  0.41.0
BoundingRegionBuilder.h
1 #pragma once
2 
3 #include "BoundingRegion.h"
4 #include "GlobeRectangle.h"
5 #include "Library.h"
6 
7 namespace CesiumGeospatial {
8 
9 class CESIUMGEOSPATIAL_API BoundingRegionBuilder {
10 public:
15 
25  toRegion(const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID) const;
26 
33  GlobeRectangle toGlobeRectangle() const;
34 
45  void setPoleTolerance(double tolerance) noexcept;
46 
57  double getPoleTolerance() const noexcept;
58 
68  bool expandToIncludePosition(const Cartographic& position);
69 
70 private:
76  double _poleTolerance;
77  GlobeRectangle _rectangle;
78  double _minimumHeight;
79  double _maximumHeight;
80 
94  bool _longitudeRangeIsEmpty;
95 };
96 
97 } // namespace CesiumGeospatial
BoundingRegionBuilder() noexcept
Constructs a new instance, starting with an empty bounding region.
A bounding volume specified as a longitude/latitude bounding box and a minimum and maximum height.
A position defined by longitude, latitude, and height.
Definition: Cartographic.h:12
A quadratic surface defined in Cartesian coordinates.
Definition: Ellipsoid.h:38
A two-dimensional, rectangular region on a globe, specified using longitude and latitude coordinates....
Classes for geospatial computations in Cesium.