cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumGltfReader::MeshReader Class Reference

Reads Mesh instances from JSON. More...

#include <CesiumGltfReader/MeshReader.h>

Public Member Functions

 MeshReader ()
 Constructs a new instance.
 
CesiumJsonReader::JsonReaderOptionsgetOptions ()
 Gets the options controlling how the JSON is read.
 
const CesiumJsonReader::JsonReaderOptionsgetOptions () const
 Gets the options controlling how the JSON is read.
 
CesiumJsonReader::ReadJsonResult< CesiumGltf::MeshreadFromJson (const std::span< const std::byte > &data) const
 Reads an instance of Mesh from a byte buffer.
 
CesiumJsonReader::ReadJsonResult< CesiumGltf::MeshreadFromJson (const rapidjson::Value &value) const
 Reads an instance of Mesh from a rapidJson::Value.
 
CesiumJsonReader::ReadJsonResult< std::vector< CesiumGltf::Mesh > > readArrayFromJson (const rapidjson::Value &value) const
 Reads an array of instances of Mesh from a rapidJson::Value.
 

Detailed Description

Reads Mesh instances from JSON.

Definition at line 24 of file MeshReader.h.

Member Function Documentation

◆ readArrayFromJson()

CesiumJsonReader::ReadJsonResult< std::vector< CesiumGltf::Mesh > > CesiumGltfReader::MeshReader::readArrayFromJson ( const rapidjson::Value & value) const

Reads an array of instances of Mesh from a rapidJson::Value.

Parameters
valueThe value from which to read the array of instances.
Returns
The result of reading the array of instances.

◆ readFromJson() [1/2]

CesiumJsonReader::ReadJsonResult< CesiumGltf::Mesh > CesiumGltfReader::MeshReader::readFromJson ( const rapidjson::Value & value) const

Reads an instance of Mesh from a rapidJson::Value.

Parameters
valueThe value from which to read the instance.
Returns
The result of reading the instance.

◆ readFromJson() [2/2]

CesiumJsonReader::ReadJsonResult< CesiumGltf::Mesh > CesiumGltfReader::MeshReader::readFromJson ( const std::span< const std::byte > & data) const

Reads an instance of Mesh from a byte buffer.

Parameters
dataThe buffer from which to read the instance.
Returns
The result of reading the instance.

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