3#include <CesiumJsonWriter/ExtensionWriterContext.h>
4#include <CesiumTilesetJsonWriter/Library.h>
A context for writing extensions where known extensions and their handlers can be registered.
TilesetWriter()
Constructs a new instance.
const CesiumJsonWriter::ExtensionWriterContext & getExtensions() const
Gets the context used to control how tileset extensions are written.
TilesetWriterResult writeTileset(const CesiumTilesetJson::Tileset &tileset, const TilesetWriterOptions &options=TilesetWriterOptions()) const
Serializes the provided tileset object into a byte vector using the provided flags to convert.
CesiumJsonWriter::ExtensionWriterContext & getExtensions()
Gets the context used to control how tileset extensions are written.
Classes for writing a tileset.json from 3D Tiles 1.1.
Classes to represent a tileset.json from 3D Tiles 1.1.
Options for how to write a tileset.
bool prettyPrint
If the tileset JSON should be pretty printed.
The result of writing a tileset with TilesetWriter::writeTileset.
std::vector< std::byte > tilesetBytes
The final generated std::vector<std::byte> of the tileset.
std::vector< std::string > errors
Errors, if any, that occurred during the write process.
std::vector< std::string > warnings
Warnings, if any, that occurred during the write process.
This class is not meant to be instantiated directly. Use Tileset instead.