cesium-native 0.43.0
Loading...
Searching...
No Matches
Cesium3DTilesContent::AssetFetcher Struct Reference

#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< AssetFetcherResultget (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::IAssetAccessorpAssetAccessor
 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::THeaderrequestHeaders
 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AssetFetcher()

Cesium3DTilesContent::AssetFetcher::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_ )
inline

Creates an AssetFetcher with the given base URL and settings.

Parameters
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.

Member Function Documentation

◆ get()

CesiumAsync::Future< AssetFetcherResult > Cesium3DTilesContent::AssetFetcher::get ( const std::string & relativeUrl) const

Gets a buffer of bytes from the given relative URL.

Parameters
relativeUrlThe URL of the asset to fetch, relative to the baseUrl property.
Returns
A future that resolves into an AssetFetcherResult.

Member Data Documentation

◆ asyncSystem

CesiumAsync::AsyncSystem Cesium3DTilesContent::AssetFetcher::asyncSystem

The CesiumAsync::AsyncSystem used for this AssetFetcher.

Definition at line 79 of file GltfConverters.h.

◆ baseUrl

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.

◆ pAssetAccessor

std::shared_ptr<CesiumAsync::IAssetAccessor> Cesium3DTilesContent::AssetFetcher::pAssetAccessor

The CesiumAsync::IAssetAccessor used for this AssetFetcher.

Definition at line 84 of file GltfConverters.h.

◆ requestHeaders

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.

◆ tileTransform

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.

◆ upAxis

CesiumGeometry::Axis Cesium3DTilesContent::AssetFetcher::upAxis

The gltfUpAxis property that will be specified for loaded assets.

Definition at line 103 of file GltfConverters.h.


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