cesium-native 0.67.0
Loading...
Searching...
No Matches
ConditionalContentWriter.h
1#pragma once
2
3#include <CesiumJsonWriter/ExtensionWriterContext.h>
4#include <CesiumTilesetJsonWriter/Library.h>
5
6// forward declarations
7namespace CesiumTilesetJson {
9}
10
12
18struct CESIUMTILESETJSONWRITER_API ConditionalContentWriterResult {
23 std::vector<std::byte> conditionalContentBytes;
24
28 std::vector<std::string> errors;
29
33 std::vector<std::string> warnings;
34};
35
39struct CESIUMTILESETJSONWRITER_API ConditionalContentWriterOptions {
43 bool prettyPrint = false;
44};
45
84
85} // namespace CesiumTilesetJsonWriter
A context for writing extensions where known extensions and their handlers can be registered.
CesiumJsonWriter::ExtensionWriterContext & getExtensions()
Gets the context used to control how conditional content extensions are written.
const CesiumJsonWriter::ExtensionWriterContext & getExtensions() const
Gets the context used to control how conditional content extensions are written.
ConditionalContentWriterResult writeConditionalContent(const CesiumTilesetJson::ConditionalContent &conditionalContent, const ConditionalContentWriterOptions &options=ConditionalContentWriterOptions()) const
Serializes the provided conditional content object into a byte vector using the provided flags to con...
ConditionalContentWriter()
Constructs a new instance.
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 CesiumTilesetJson::ConditionalContent.
bool prettyPrint
If the conditional content JSON should be pretty printed.
The result of writing a CesiumTilesetJson::ConditionalContent with ConditionalContentWriter::writeCon...
std::vector< std::string > warnings
Warnings, if any, that occurred during the write process.
std::vector< std::byte > conditionalContentBytes
The final generated std::vector<std::byte> of the conditional content JSON.
std::vector< std::string > errors
Errors, if any, that occurred during the write process.
Defines the structure of 3D Tiles content for the 3DTILES_content_conditional extension.