cesium-native 0.43.0
|
#include <Cesium3DTilesContent/GltfConverters.h>
Public Member Functions | |
AssetFetcher (const CesiumAsync::AsyncSystem &asyncSystem_, const std::shared_ptr< CesiumAsync::IAssetAccessor > &pAssetAccessor_, const std::string &baseUrl_, const glm::dmat4 tileTransform_, const std::vector< CesiumAsync::IAssetAccessor::THeader > &requestHeaders_, CesiumGeometry::Axis upAxis_) | |
Creates an AssetFetcher with the given base URL and settings. | |
CesiumAsync::Future< AssetFetcherResult > | get (const std::string &relativeUrl) const |
Gets a buffer of bytes from the given relative URL. | |
Public Attributes | |
CesiumAsync::AsyncSystem | asyncSystem |
The CesiumAsync::AsyncSystem used for this AssetFetcher. | |
std::shared_ptr< CesiumAsync::IAssetAccessor > | pAssetAccessor |
The CesiumAsync::IAssetAccessor used for this AssetFetcher. | |
std::string | baseUrl |
The base URL that this AssetFetcher's requests will be relative to. | |
glm::dmat4 | tileTransform |
The transformation matrix applied to this tile. Used for East-North-Up transforms in i3dm. | |
std::vector< CesiumAsync::IAssetAccessor::THeader > | requestHeaders |
Headers that will be attached to each request made with this AssetFetcher. | |
CesiumGeometry::Axis | upAxis |
The gltfUpAxis property that will be specified for loaded assets. | |
Object that makes a recursive request to fetch an asset, mostly for the benefit of i3dm files.
Definition at line 37 of file GltfConverters.h.
|
inline |
Creates an AssetFetcher with the given base URL and settings.
asyncSystem_ | The CesiumAsync::AsyncSystem used for fetching assets asynchronously. |
pAssetAccessor_ | The CesiumAsync::IAssetAccessor providing the implementation for fetching assets from a remote server. |
baseUrl_ | The base URL that relative URLs passed to get will be relative to. |
tileTransform_ | A transformation matrix applied to this tile. |
requestHeaders_ | The headers to be used for a request made with the AssetFetcher. |
upAxis_ | The gltfUpAxis property to be set on loaded glTFs. |
Definition at line 52 of file GltfConverters.h.
CesiumAsync::Future< AssetFetcherResult > Cesium3DTilesContent::AssetFetcher::get | ( | const std::string & | relativeUrl | ) | const |
Gets a buffer of bytes from the given relative URL.
relativeUrl | The URL of the asset to fetch, relative to the baseUrl property. |
CesiumAsync::AsyncSystem Cesium3DTilesContent::AssetFetcher::asyncSystem |
The CesiumAsync::AsyncSystem used for this AssetFetcher.
Definition at line 79 of file GltfConverters.h.
std::string Cesium3DTilesContent::AssetFetcher::baseUrl |
The base URL that this AssetFetcher's requests will be relative to.
Definition at line 89 of file GltfConverters.h.
std::shared_ptr<CesiumAsync::IAssetAccessor> Cesium3DTilesContent::AssetFetcher::pAssetAccessor |
The CesiumAsync::IAssetAccessor used for this AssetFetcher.
Definition at line 84 of file GltfConverters.h.
std::vector<CesiumAsync::IAssetAccessor::THeader> Cesium3DTilesContent::AssetFetcher::requestHeaders |
Headers that will be attached to each request made with this AssetFetcher.
Definition at line 99 of file GltfConverters.h.
glm::dmat4 Cesium3DTilesContent::AssetFetcher::tileTransform |
The transformation matrix applied to this tile. Used for East-North-Up transforms in i3dm.
Definition at line 94 of file GltfConverters.h.
CesiumGeometry::Axis Cesium3DTilesContent::AssetFetcher::upAxis |
The gltfUpAxis
property that will be specified for loaded assets.
Definition at line 103 of file GltfConverters.h.