animation Class Reference

glTF animation More...

Inheritance diagram for animation:
[legend]
Collaboration diagram for animation:
[legend]

Classes

struct  glTFChannel
 
struct  glTFSampler
 
struct  glTFTarget
 

Public Member Functions

 animation ()
 Default construct. More...
 
 animation (const word &name)
 Construct with name. More...
 
 ~animation ()=default
 Destructor. More...
 
void addTranslation (const label inputId, const label outputId, const label nodeId, const string &interpolation)
 Add translation. More...
 
void write (Ostream &os) const
 Write. 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 wordname () const noexcept
 Return const access to the name. More...
 
void write (Ostream &os) const
 Write. More...
 
void operator= (const base &gltf)
 

Protected Attributes

DynamicList< glTFSamplersamplers_
 Samplers. More...
 
DynamicList< glTFChannelchannels_
 Channels. More...
 
- Protected Attributes inherited from base
word name_
 Name. More...
 
label id_
 ID. More...
 

Detailed Description

glTF animation

Note
Implements the glTF v2 specification
Source files

Definition at line 65 of file foamGltfAnimation.H.

Constructor & Destructor Documentation

◆ animation() [1/2]

animation ( )

Default construct.

Definition at line 32 of file foamGltfAnimation.C.

◆ animation() [2/2]

animation ( const word name)
explicit

Construct with name.

Definition at line 40 of file foamGltfAnimation.C.

◆ ~animation()

~animation ( )
default

Destructor.

Member Function Documentation

◆ addTranslation()

void addTranslation ( const label  inputId,
const label  outputId,
const label  nodeId,
const string interpolation 
)

◆ write()

void write ( Ostream os) const

Write.

Definition at line 72 of file foamGltfAnimation.C.

References Foam::decrIndent(), forAll, Foam::incrIndent(), Foam::indent(), Foam::nl, and os().

Referenced by Foam::operator<<().

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

Member Data Documentation

◆ samplers_

DynamicList<glTFSampler> samplers_
protected

Samplers.

Definition at line 100 of file foamGltfAnimation.H.

◆ channels_

DynamicList<glTFChannel> channels_
protected

Channels.

Definition at line 103 of file foamGltfAnimation.H.


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