cesium-native 0.43.0
Loading...
Searching...
No Matches
TileReader.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <Cesium3DTiles/Tile.h>
6#include <Cesium3DTilesReader/Library.h>
7#include <CesiumJsonReader/JsonReader.h>
8#include <CesiumJsonReader/JsonReaderOptions.h>
9
10#include <rapidjson/fwd.h>
11
12#include <span>
13#include <vector>
14
15namespace Cesium3DTiles {
16struct Tile;
17} // namespace Cesium3DTiles
18
19namespace Cesium3DTilesReader {
20
24class CESIUM3DTILESREADER_API TileReader {
25public:
30
35
40
48 readFromJson(const std::span<const std::byte>& data) const;
49
57 readFromJson(const rapidjson::Value& value) const;
58
66 readArrayFromJson(const rapidjson::Value& value) const;
67
68private:
70};
71
72} // namespace Cesium3DTilesReader
Reads Tile instances from JSON.
Definition TileReader.h:24
TileReader()
Constructs a new instance.
CesiumJsonReader::ReadJsonResult< Cesium3DTiles::Tile > readFromJson(const rapidjson::Value &value) const
Reads an instance of Tile from a rapidJson::Value.
CesiumJsonReader::ReadJsonResult< std::vector< Cesium3DTiles::Tile > > readArrayFromJson(const rapidjson::Value &value) const
Reads an array of instances of Tile from a rapidJson::Value.
const CesiumJsonReader::JsonReaderOptions & getOptions() const
Gets the options controlling how the JSON is read.
CesiumJsonReader::ReadJsonResult< Cesium3DTiles::Tile > readFromJson(const std::span< const std::byte > &data) const
Reads an instance of Tile from a byte buffer.
CesiumJsonReader::JsonReaderOptions & getOptions()
Gets the options controlling how the JSON is read.
Holds options for reading statically-typed data structures from JSON.
Classes for reading 3D Tiles.
Definition Library.h:8
Classes for using 3D Tiles.
Definition Buffer.h:7
The result of JsonReader::readJson.
Definition JsonReader.h:23