Base class for glTF entities. More...
#include <foamGltfBase.H>


Public Member Functions | |
| 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) |
Protected Attributes | |
| word | name_ |
| Name. | |
| label | id_ |
| ID. | |
|
inline |
Default construct.
Definition at line 139 of file foamGltfBase.H.
References id_.
Referenced by accessor::accessor(), accessor::accessor(), animation::animation(), animation::animation(), bufferView::bufferView(), bufferView::bufferView(), mesh::mesh(), mesh::mesh(), object::object(), object::object(), and operator=().

|
inlineexplicit |
Construct with name.
Definition at line 147 of file foamGltfBase.H.
References id_, name(), and name_.

|
default |
Destructor.
|
inlinenoexcept |
Return access to the ID.
Definition at line 165 of file foamGltfBase.H.
References id_, and Foam::noexcept.
|
inlinenoexcept |
Return const access to the name.
Definition at line 173 of file foamGltfBase.H.
References name_, and Foam::noexcept.
Referenced by accessor::accessor(), mesh::addField(), animation::animation(), base(), bufferView::bufferView(), mesh::mesh(), object::object(), accessor::toString(), and mesh::~mesh().

|
inline |
Write.
Definition at line 181 of file foamGltfBase.H.
References Foam::indent(), name_, Foam::nl, and os().
Referenced by accessor::write(), bufferView::write(), and mesh::write().


|
inline |
Definition at line 190 of file foamGltfBase.H.
References base(), id_, and name_.
Referenced by bufferView::operator=().


|
protected |
Name.
Definition at line 124 of file foamGltfBase.H.
Referenced by base(), name(), operator=(), and write().
|
protected |
ID.
Definition at line 129 of file foamGltfBase.H.
Referenced by base(), base(), id(), and operator=().