Loading...
Searching...
No Matches
object Class Reference

glTF binary object More...

#include <foamGltfObject.H>

Inheritance diagram for object:
Collaboration diagram for object:

Public Member Functions

 object ()
 Default construct.
 object (const word &name)
 Construct with name.
template<class Type>
void addData (const Type &fld)
 Add data to the buffer.
template<class Type1, class Type2>
void addData (const Type1 &fld1, const Type2 &fld2)
 Add data to the buffer from 2 containers of the same size.
const Foam::List< float > & data () const noexcept
 Return const access to the data buffer.
Public Member Functions inherited from base
 base ()
 Default construct.
 base (const word &name)
 Construct with name.
 ~base ()=default
 Destructor.
label & id () noexcept
 Return access to the ID.
const wordname () const noexcept
 Return const access to the name.
void write (Ostream &os) const
 Write.
void operator= (const base &gltf)

Additional Inherited Members

Protected Attributes inherited from base
word name_
 Name.
label id_
 ID.

Detailed Description

glTF binary object

Note
Implements the glTF v2 specification
Source files

Definition at line 53 of file foamGltfObject.H.

Constructor & Destructor Documentation

◆ object() [1/2]

object ( )

Default construct.

Definition at line 26 of file foamGltfObject.C.

References Foam::abort(), base::base(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ object() [2/2]

object ( const word & name)
explicit

Construct with name.

Definition at line 40 of file foamGltfObject.C.

References Foam::abort(), base::base(), Foam::FatalError, FatalErrorInFunction, and base::name().

Here is the call graph for this function:

Member Function Documentation

◆ addData() [1/2]

template<class Type>
void addData ( const Type & fld)

Add data to the buffer.

Definition at line 22 of file foamGltfObjectTemplates.C.

References Foam::component(), fld(), and forAll.

Here is the call graph for this function:

◆ addData() [2/2]

template<class Type1, class Type2>
void addData ( const Type1 & fld1,
const Type2 & fld2 )

Add data to the buffer from 2 containers of the same size.

E.g. to combine vector and scalar to create RGBA data

Definition at line 40 of file foamGltfObjectTemplates.C.

References Foam::abort(), Foam::component(), Foam::FatalError, FatalErrorInFunction, and forAll.

Here is the call graph for this function:

◆ data()

const Foam::List< float > & data ( ) const
noexcept

Return const access to the data buffer.

Definition at line 56 of file foamGltfObject.C.

References Foam::noexcept.


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