3#include <Cesium3DTilesReader/Library.h>
4#include <Cesium3DTilesReader/SubtreeReader.h>
5#include <CesiumAsync/AsyncSystem.h>
6#include <CesiumAsync/Future.h>
7#include <CesiumAsync/IAssetAccessor.h>
60 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
61 const std::string& url,
62 const std::vector<CesiumAsync::IAssetAccessor::THeader>& headers = {})
83 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
84 const std::shared_ptr<CesiumAsync::IAssetRequest>& pRequest)
109 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
110 const std::string& url,
111 const std::vector<CesiumAsync::IAssetAccessor::THeader>& requestHeaders,
112 const std::span<const std::byte>& data)
const noexcept;
118 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
119 const std::string& url,
120 const std::vector<CesiumAsync::IAssetAccessor::THeader>& requestHeaders,
121 const std::span<const std::byte>& data)
const noexcept;
125 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
126 const std::string& url,
127 const std::vector<CesiumAsync::IAssetAccessor::THeader>& requestHeaders,
128 const std::span<const std::byte>& data)
const noexcept;
132 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
133 const std::string& url,
134 const std::vector<CesiumAsync::IAssetAccessor::THeader>& requestHeaders,
Reads 3D Tiles subtrees from a binary or JSON subtree file.
CesiumAsync::Future< CesiumJsonReader::ReadJsonResult< Cesium3DTiles::Subtree > > load(const CesiumAsync::AsyncSystem &asyncSystem, const std::shared_ptr< CesiumAsync::IAssetAccessor > &pAssetAccessor, const std::shared_ptr< CesiumAsync::IAssetRequest > &pRequest) const noexcept
Asynchronously loads a subtree from a request.
SubtreeFileReader()
Constructs a new instance.
const CesiumJsonReader::JsonReaderOptions & getOptions() const
Gets the options controlling how the JSON is read.
CesiumAsync::Future< CesiumJsonReader::ReadJsonResult< Cesium3DTiles::Subtree > > load(const CesiumAsync::AsyncSystem &asyncSystem, const std::shared_ptr< CesiumAsync::IAssetAccessor > &pAssetAccessor, const std::string &url, const std::vector< CesiumAsync::IAssetAccessor::THeader > &headers={}) const noexcept
Asynchronously loads a subtree from a URL.
CesiumJsonReader::JsonReaderOptions & getOptions()
Gets the options controlling how the JSON is read.
CesiumAsync::Future< CesiumJsonReader::ReadJsonResult< Cesium3DTiles::Subtree > > load(const CesiumAsync::AsyncSystem &asyncSystem, const std::shared_ptr< CesiumAsync::IAssetAccessor > &pAssetAccessor, const std::string &url, const std::vector< CesiumAsync::IAssetAccessor::THeader > &requestHeaders, const std::span< const std::byte > &data) const noexcept
Asynchronously loads loads a subtree from data obtained from a URL.
Reads Subtree instances from JSON.
A system for managing asynchronous requests and tasks.
A value that will be available in the future, as produced by AsyncSystem.
Holds options for reading statically-typed data structures from JSON.
Classes for reading 3D Tiles.
The result of JsonReader::readJson.