cesium-native  0.41.0
CesiumGltf::ModelSpec Struct Reference

The root object for a glTF asset. More...

#include <CesiumGltf/ModelSpec.h>

Inheritance diagram for CesiumGltf::ModelSpec:
CesiumUtility::ExtensibleObject CesiumGltf::Model

Public Attributes

std::vector< std::string > extensionsUsed
 Names of glTF extensions used in this asset.
 
std::vector< std::string > extensionsRequired
 Names of glTF extensions required to properly load this asset.
 
std::vector< CesiumGltf::Accessoraccessors
 An array of accessors. More...
 
std::vector< CesiumGltf::Animationanimations
 An array of keyframe animations.
 
CesiumGltf::Asset asset
 Metadata about the glTF asset.
 
std::vector< CesiumGltf::Bufferbuffers
 An array of buffers. More...
 
std::vector< CesiumGltf::BufferViewbufferViews
 An array of bufferViews. More...
 
std::vector< CesiumGltf::Cameracameras
 An array of cameras. More...
 
std::vector< CesiumGltf::Imageimages
 An array of images. More...
 
std::vector< CesiumGltf::Materialmaterials
 An array of materials. More...
 
std::vector< CesiumGltf::Meshmeshes
 An array of meshes. More...
 
std::vector< CesiumGltf::Nodenodes
 An array of nodes.
 
std::vector< CesiumGltf::Samplersamplers
 An array of samplers. More...
 
int32_t scene = -1
 The index of the default scene. More...
 
std::vector< CesiumGltf::Scenescenes
 An array of scenes.
 
std::vector< CesiumGltf::Skinskins
 An array of skins. More...
 
std::vector< CesiumGltf::Texturetextures
 An array of textures.
 
- Public Attributes inherited from CesiumUtility::ExtensibleObject
std::unordered_map< std::string, std::any > extensions
 The extensions attached to this object. More...
 
JsonValue::Object extras
 Application-specific data. More...
 
JsonValue::Object unknownProperties
 Unknown properties that exist on this object but do not have any representation in the statically-typed classes. More...
 

Static Public Attributes

static constexpr const char * TypeName = "Model"
 

Friends

struct Model
 

Additional Inherited Members

- Public Member Functions inherited from CesiumUtility::ExtensibleObject
template<typename T >
bool hasExtension () const noexcept
 Checks if an extension exists given its static type. More...
 
template<typename T >
const T * getExtension () const noexcept
 Gets an extension given its static type. More...
 
template<typename T >
T * getExtension () noexcept
 Gets an extension given its static type. More...
 
const JsonValuegetGenericExtension (const std::string &extensionName) const noexcept
 Gets a generic extension with the given name as a CesiumUtility::JsonValue. More...
 
JsonValuegetGenericExtension (const std::string &extensionName) noexcept
 Gets a generic extension with the given name as a CesiumUtility::JsonValue. More...
 
template<typename T , typename... ConstructorArgumentTypes>
T & addExtension (ConstructorArgumentTypes &&... constructorArguments)
 Adds a statically-typed extension to this object. More...
 
template<typename T >
void removeExtension ()
 Removes a statically-typed extension from this object. More...
 

Detailed Description

The root object for a glTF asset.

Definition at line 31 of file ModelSpec.h.

Member Data Documentation

◆ accessors

std::vector<CesiumGltf::Accessor> CesiumGltf::ModelSpec::accessors

An array of accessors.

An accessor is a typed view into a bufferView.

Definition at line 49 of file ModelSpec.h.

◆ buffers

std::vector<CesiumGltf::Buffer> CesiumGltf::ModelSpec::buffers

An array of buffers.

A buffer points to binary geometry, animation, or skins.

Definition at line 66 of file ModelSpec.h.

◆ bufferViews

std::vector<CesiumGltf::BufferView> CesiumGltf::ModelSpec::bufferViews

An array of bufferViews.

A bufferView is a view into a buffer generally representing a subset of the buffer.

Definition at line 74 of file ModelSpec.h.

◆ cameras

std::vector<CesiumGltf::Camera> CesiumGltf::ModelSpec::cameras

An array of cameras.

A camera defines a projection matrix.

Definition at line 81 of file ModelSpec.h.

◆ images

std::vector<CesiumGltf::Image> CesiumGltf::ModelSpec::images

An array of images.

An image defines data used to create a texture.

Definition at line 88 of file ModelSpec.h.

◆ materials

std::vector<CesiumGltf::Material> CesiumGltf::ModelSpec::materials

An array of materials.

A material defines the appearance of a primitive.

Definition at line 95 of file ModelSpec.h.

◆ meshes

std::vector<CesiumGltf::Mesh> CesiumGltf::ModelSpec::meshes

An array of meshes.

A mesh is a set of primitives to be rendered.

Definition at line 102 of file ModelSpec.h.

◆ samplers

std::vector<CesiumGltf::Sampler> CesiumGltf::ModelSpec::samplers

An array of samplers.

A sampler contains properties for texture filtering and wrapping modes.

Definition at line 114 of file ModelSpec.h.

◆ scene

int32_t CesiumGltf::ModelSpec::scene = -1

The index of the default scene.

This property MUST NOT be defined, when scenes is undefined.

Definition at line 121 of file ModelSpec.h.

◆ skins

std::vector<CesiumGltf::Skin> CesiumGltf::ModelSpec::skins

An array of skins.

A skin is defined by joints and matrices.

Definition at line 133 of file ModelSpec.h.


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