Provides functions for extracting bounding volumes types from the vectors stored in Cesium3DTiles::BoundingVolume
.
More...
#include <Cesium3DTilesContent/TileBoundingVolumes.h>
|
static std::optional< CesiumGeometry::OrientedBoundingBox > | getOrientedBoundingBox (const Cesium3DTiles::BoundingVolume &boundingVolume) |
| Gets the bounding box defined in a Cesium3DTiles::BoundingVolume , if any.
|
|
static void | setOrientedBoundingBox (Cesium3DTiles::BoundingVolume &boundingVolume, const CesiumGeometry::OrientedBoundingBox &boundingBox) |
| Sets the box property in a Cesium3DTiles::BoundingVolume based on an CesiumGeometry::OrientedBoundingBox .
|
|
static std::optional< CesiumGeospatial::BoundingRegion > | getBoundingRegion (const Cesium3DTiles::BoundingVolume &boundingVolume, const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84) |
| Gets the bounding region defined in a Cesium3DTiles::BoundingVolume , if any.
|
|
static void | setBoundingRegion (Cesium3DTiles::BoundingVolume &boundingVolume, const CesiumGeospatial::BoundingRegion &boundingRegion) |
| Sets the region property in a Cesium3DTiles::BoundingVolume based on a CesiumGeospatial::BoundingRegion .
|
|
static std::optional< CesiumGeometry::BoundingSphere > | getBoundingSphere (const Cesium3DTiles::BoundingVolume &boundingVolume) |
| Gets the bounding sphere defined in a Cesium3DTiles::BoundingVolume , if any.
|
|
static void | setBoundingSphere (Cesium3DTiles::BoundingVolume &boundingVolume, const CesiumGeometry::BoundingSphere &boundingSphere) |
| Sets the sphere property in a Cesium3DTiles::BoundingVolume based on a CesiumGeometry::BoundingSphere .
|
|
static std::optional< CesiumGeospatial::S2CellBoundingVolume > | getS2CellBoundingVolume (const Cesium3DTiles::BoundingVolume &boundingVolume, const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84) |
| Gets the S2 cell bounding volume defined in the 3DTILES_bounding_volume_S2 extension of a Cesium3DTiles::BoundingVolume , if any.
|
|
static void | setS2CellBoundingVolume (Cesium3DTiles::BoundingVolume &boundingVolume, const CesiumGeospatial::S2CellBoundingVolume &s2BoundingVolume) |
| Adds the 3DTILES_bounding_volume_S2 extension to a Cesium3DTiles::BoundingVolume based on a CesiumGeospatial::S2CellBoundingVolume .
|
|
Provides functions for extracting bounding volumes types from the vectors stored in Cesium3DTiles::BoundingVolume
.
Definition at line 20 of file TileBoundingVolumes.h.
◆ getBoundingRegion()
Gets the bounding region defined in a Cesium3DTiles::BoundingVolume
, if any.
- Parameters
-
boundingVolume | The bounding volume from which to get the region. |
ellipsoid | The ellipsoid on which the region should be defined. |
- Returns
- The region, or
std::nullopt
if the bounding volume does not define a region. The region is defined in geographic coordinates.
◆ getBoundingSphere()
Gets the bounding sphere defined in a Cesium3DTiles::BoundingVolume
, if any.
- Parameters
-
boundingVolume | The bounding volume from which to get the sphere. |
- Returns
- The sphere, or
std::nullopt
if the bounding volume does not define a sphere. The sphere is defined in the tile's coordinate system.
◆ getOrientedBoundingBox()
Gets the bounding box defined in a Cesium3DTiles::BoundingVolume
, if any.
- Parameters
-
boundingVolume | The bounding volume from which to get the box. |
- Returns
- The box, or
std::nullopt
if the bounding volume does not define a box. The box is defined in the tile's coordinate system.
◆ getS2CellBoundingVolume()
Gets the S2 cell bounding volume defined in the 3DTILES_bounding_volume_S2
extension of a Cesium3DTiles::BoundingVolume
, if any.
- Parameters
-
boundingVolume | The bounding volume from which to get the S2 cell bounding volume. |
ellipsoid | The ellipsoid on which the S2 cell should be defined. |
- Returns
- The S2 cell bounding volume, or
std::nullopt
if the bounding volume does not define an S2 cell bounding volume. The S2 cell bounding volume is defined in geographic coordinates.
◆ setBoundingRegion()
◆ setBoundingSphere()
◆ setOrientedBoundingBox()
◆ setS2CellBoundingVolume()
The documentation for this class was generated from the following file:
- /home/runner/work/cesium-native/cesium-native/Cesium3DTilesContent/include/Cesium3DTilesContent/TileBoundingVolumes.h