cesium-native 0.43.0
Loading...
Searching...
No Matches
Cesium3DTilesContent::TileBoundingVolumes Class Reference

Provides functions for extracting bounding volumes types from the vectors stored in Cesium3DTiles::BoundingVolume. More...

#include <Cesium3DTilesContent/TileBoundingVolumes.h>

Static Public Member Functions

static std::optional< CesiumGeometry::OrientedBoundingBoxgetOrientedBoundingBox (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::BoundingRegiongetBoundingRegion (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::BoundingSpheregetBoundingSphere (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::S2CellBoundingVolumegetS2CellBoundingVolume (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.
 

Detailed Description

Provides functions for extracting bounding volumes types from the vectors stored in Cesium3DTiles::BoundingVolume.

Definition at line 20 of file TileBoundingVolumes.h.

Member Function Documentation

◆ getBoundingRegion()

static std::optional< CesiumGeospatial::BoundingRegion > Cesium3DTilesContent::TileBoundingVolumes::getBoundingRegion ( const Cesium3DTiles::BoundingVolume & boundingVolume,
const CesiumGeospatial::Ellipsoid & ellipsoid = CesiumGeospatial::Ellipsoid::WGS84 )
static

Gets the bounding region defined in a Cesium3DTiles::BoundingVolume, if any.

Parameters
boundingVolumeThe bounding volume from which to get the region.
ellipsoidThe 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()

static std::optional< CesiumGeometry::BoundingSphere > Cesium3DTilesContent::TileBoundingVolumes::getBoundingSphere ( const Cesium3DTiles::BoundingVolume & boundingVolume)
static

Gets the bounding sphere defined in a Cesium3DTiles::BoundingVolume, if any.

Parameters
boundingVolumeThe 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()

static std::optional< CesiumGeometry::OrientedBoundingBox > Cesium3DTilesContent::TileBoundingVolumes::getOrientedBoundingBox ( const Cesium3DTiles::BoundingVolume & boundingVolume)
static

Gets the bounding box defined in a Cesium3DTiles::BoundingVolume, if any.

Parameters
boundingVolumeThe 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()

static std::optional< CesiumGeospatial::S2CellBoundingVolume > Cesium3DTilesContent::TileBoundingVolumes::getS2CellBoundingVolume ( const Cesium3DTiles::BoundingVolume & boundingVolume,
const CesiumGeospatial::Ellipsoid & ellipsoid = CesiumGeospatial::Ellipsoid::WGS84 )
static

Gets the S2 cell bounding volume defined in the 3DTILES_bounding_volume_S2 extension of a Cesium3DTiles::BoundingVolume, if any.

Parameters
boundingVolumeThe bounding volume from which to get the S2 cell bounding volume.
ellipsoidThe 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()

static void Cesium3DTilesContent::TileBoundingVolumes::setBoundingRegion ( Cesium3DTiles::BoundingVolume & boundingVolume,
const CesiumGeospatial::BoundingRegion & boundingRegion )
static

Sets the region property in a Cesium3DTiles::BoundingVolume based on a CesiumGeospatial::BoundingRegion.

Other bounding volume types, if any, are not modified.

Parameters
boundingVolumeThe bounding volume to set.
boundingRegionThe bounding region with which to set the property.

◆ setBoundingSphere()

static void Cesium3DTilesContent::TileBoundingVolumes::setBoundingSphere ( Cesium3DTiles::BoundingVolume & boundingVolume,
const CesiumGeometry::BoundingSphere & boundingSphere )
static

Sets the sphere property in a Cesium3DTiles::BoundingVolume based on a CesiumGeometry::BoundingSphere.

Other bounding volume types, if any, are not modified.

Parameters
boundingVolumeThe bounding volume to set.
boundingSphereThe bounding sphere with which to set the property.

◆ setOrientedBoundingBox()

static void Cesium3DTilesContent::TileBoundingVolumes::setOrientedBoundingBox ( Cesium3DTiles::BoundingVolume & boundingVolume,
const CesiumGeometry::OrientedBoundingBox & boundingBox )
static

Sets the box property in a Cesium3DTiles::BoundingVolume based on an CesiumGeometry::OrientedBoundingBox.

Other bounding volume types, if any, are not modified.

Parameters
boundingVolumeThe bounding volume to set.
boundingBoxThe bounding box with which to set the property.

◆ setS2CellBoundingVolume()

static void Cesium3DTilesContent::TileBoundingVolumes::setS2CellBoundingVolume ( Cesium3DTiles::BoundingVolume & boundingVolume,
const CesiumGeospatial::S2CellBoundingVolume & s2BoundingVolume )
static

Adds the 3DTILES_bounding_volume_S2 extension to a Cesium3DTiles::BoundingVolume based on a CesiumGeospatial::S2CellBoundingVolume.

Other bounding volume types, if any, are not modified.

Parameters
boundingVolumeThe bounding volume to set.
s2BoundingVolumeThe S2 bounding volume with which to set the property.

The documentation for this class was generated from the following file: