#include <foamGltfObject.H>


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 word & | name () 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. | |
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(), base::base(), Foam::FatalError, and FatalErrorInFunction.

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

| void addData | ( | const Type & | fld | ) |
Add data to the buffer.
Definition at line 22 of file foamGltfObjectTemplates.C.
References Foam::component(), fld(), and forAll.

| 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.

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