

Public Member Functions | |
| object () | |
| Default construct. More... | |
| object (const word &name) | |
| Construct with name. More... | |
| template<class Type > | |
| void | addData (const Type &fld) |
| Add data to the buffer. More... | |
| 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. More... | |
| const Foam::List< float > & | data () const noexcept |
| Return const access to the data buffer. More... | |
Public Member Functions inherited from base | |
| base () | |
| Default construct. More... | |
| base (const word &name) | |
| Construct with name. More... | |
| ~base ()=default | |
| Destructor. More... | |
| label & | id () noexcept |
| Return access to the ID. More... | |
| const word & | name () const noexcept |
| Return const access to the name. More... | |
| void | write (Ostream &os) const |
| Write. More... | |
| void | operator= (const base &gltf) |
Additional Inherited Members | |
Protected Attributes inherited from base | |
| word | name_ |
| Name. More... | |
| label | id_ |
| ID. More... | |
glTF binary object
Definition at line 53 of file foamGltfObject.H.
| object | ( | ) |
Default construct.
Definition at line 26 of file foamGltfObject.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Construct with name.
Definition at line 40 of file foamGltfObject.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

| void addData | ( | const Type & | fld | ) |
Add data to the buffer.
Definition at line 22 of file foamGltfObjectTemplates.C.
References Foam::component(), Foam::BitOps::count(), fld, forAll, List< T >::resize(), and UList< T >::size().

| 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::BitOps::count(), Foam::FatalError, FatalErrorInFunction, and forAll.

|
noexcept |
Return const access to the data buffer.
Definition at line 56 of file foamGltfObject.C.