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... | |
![]() | |
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 | |
![]() | |
word | name_ |
Name. More... | |
label | id_ |
ID. More... | |
glTF binary object
Definition at line 57 of file foamGltfObject.H.
object | ( | ) |
Default construct.
Definition at line 33 of file foamGltfObject.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Construct with name.
Definition at line 47 of file foamGltfObject.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
void addData | ( | const Type & | fld | ) |
Add data to the buffer.
Definition at line 29 of file foamGltfObjectTemplates.C.
References Foam::component(), Foam::BitOps::count(), fld, forAll, and List< T >::setSize().
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 48 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 63 of file foamGltfObject.C.