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 = {})
68 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
69 const std::shared_ptr<CesiumAsync::IAssetRequest>& pRequest)
75 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
76 const std::string& url,
77 const std::vector<CesiumAsync::IAssetAccessor::THeader>& requestHeaders,
78 const gsl::span<const std::byte>& data)
const noexcept;
84 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
85 const std::string& url,
86 const std::vector<CesiumAsync::IAssetAccessor::THeader>& requestHeaders,
87 const gsl::span<const std::byte>& data)
const noexcept;
91 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
92 const std::string& url,
93 const std::vector<CesiumAsync::IAssetAccessor::THeader>& requestHeaders,
94 const gsl::span<const std::byte>& data)
const noexcept;
98 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
99 const std::string& url,
100 const std::vector<CesiumAsync::IAssetAccessor::THeader>& requestHeaders,
104 SubtreeReader _reader;
Reads 3D Tiles subtrees from a binary or JSON subtree file.
SubtreeFileReader()
Constructs a new instance.
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.
const CesiumJsonReader::JsonReaderOptions & getOptions() const
Gets the options controlling how the JSON is read.
CesiumJsonReader::JsonReaderOptions & getOptions()
Gets the options controlling how the JSON is read.
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 Reader::readJson.