Loading...
Searching...
No Matches
base Class Reference

Base class for glTF entities. More...

#include <foamGltfBase.H>

Inheritance diagram for base:
Collaboration diagram for base:

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 wordname () 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.

Detailed Description

Base class for glTF entities.

Definition at line 115 of file foamGltfBase.H.

Constructor & Destructor Documentation

◆ base() [1/2]

base ( )
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=().

Here is the caller graph for this function:

◆ base() [2/2]

base ( const word & name)
inlineexplicit

Construct with name.

Definition at line 147 of file foamGltfBase.H.

References id_, name(), and name_.

Here is the call graph for this function:

◆ ~base()

~base ( )
default

Destructor.

Member Function Documentation

◆ id()

label & id ( )
inlinenoexcept

Return access to the ID.

Definition at line 165 of file foamGltfBase.H.

References id_, and Foam::noexcept.

◆ name()

const word & name ( ) const
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().

Here is the caller graph for this function:

◆ write()

void write ( Ostream & os) const
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void operator= ( const base & gltf)
inline

Definition at line 190 of file foamGltfBase.H.

References base(), id_, and name_.

Referenced by bufferView::operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ name_

word name_
protected

Name.

Definition at line 124 of file foamGltfBase.H.

Referenced by base(), name(), operator=(), and write().

◆ id_

label id_
protected

ID.

Definition at line 129 of file foamGltfBase.H.

Referenced by base(), base(), id(), and operator=().


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