cesium-native 0.67.0
Loading...
Searching...
No Matches
BoundingVolumeReader.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumJsonReader/JsonReader.h>
6#include <CesiumJsonReader/JsonReaderOptions.h>
7#include <CesiumTilesetJson/BoundingVolume.h>
8#include <CesiumTilesetJsonReader/Library.h>
9
10#include <rapidjson/fwd.h>
11
12#include <span>
13#include <vector>
14
15namespace CesiumTilesetJson {
16struct BoundingVolume;
17} // namespace CesiumTilesetJson
18
20
25class CESIUMTILESETJSONREADER_API BoundingVolumeReader {
26public:
31
36
41
49 readFromJson(const std::span<const std::byte>& data) const;
50
58 readFromJson(const rapidjson::Value& value) const;
59
68 std::vector<CesiumTilesetJson::BoundingVolume>>
69 readArrayFromJson(const rapidjson::Value& value) const;
70
71private:
73};
74
75} // namespace CesiumTilesetJsonReader
Holds options for reading statically-typed data structures from JSON.
CesiumJsonReader::ReadJsonResult< std::vector< CesiumTilesetJson::BoundingVolume > > readArrayFromJson(const rapidjson::Value &value) const
Reads an array of instances of BoundingVolume from a rapidJson::Value.
const CesiumJsonReader::JsonReaderOptions & getOptions() const
Gets the options controlling how the JSON is read.
CesiumJsonReader::ReadJsonResult< CesiumTilesetJson::BoundingVolume > readFromJson(const rapidjson::Value &value) const
Reads an instance of BoundingVolume from a rapidJson::Value.
BoundingVolumeReader()
Constructs a new instance.
CesiumJsonReader::JsonReaderOptions & getOptions()
Gets the options controlling how the JSON is read.
CesiumJsonReader::ReadJsonResult< CesiumTilesetJson::BoundingVolume > readFromJson(const std::span< const std::byte > &data) const
Reads an instance of BoundingVolume from a byte buffer.
Classes for reading a tileset.json from 3D Tiles 1.1.
Definition Library.h:9
Classes to represent a tileset.json from 3D Tiles 1.1.
The result of JsonReader::readJson.
Definition JsonReader.h:23
A bounding volume that encloses a tile or its content. At least one bounding volume property is requi...