Loading...
Searching...
No Matches
animation Class Reference

glTF animation More...

#include <foamGltfAnimation.H>

Inheritance diagram for animation:
Collaboration diagram for animation:

Classes

struct  glTFSampler
struct  glTFTarget
struct  glTFChannel

Public Member Functions

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

Protected Attributes

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

Detailed Description

glTF animation

Note
Implements the glTF v2 specification
Source files

Definition at line 61 of file foamGltfAnimation.H.

Constructor & Destructor Documentation

◆ animation() [1/2]

animation ( )

Default construct.

Definition at line 25 of file foamGltfAnimation.C.

References base::base(), channels_, and samplers_.

Here is the call graph for this function:

◆ animation() [2/2]

animation ( const word & name)
explicit

Construct with name.

Definition at line 33 of file foamGltfAnimation.C.

References base::base(), channels_, base::name(), and samplers_.

Here is the call graph for this function:

◆ ~animation()

~animation ( )
default

Destructor.

References os().

Here is the call graph for this function:

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 65 of file foamGltfAnimation.C.

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

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 98 of file foamGltfAnimation.H.

Referenced by addTranslation(), animation(), animation(), and write().

◆ channels_

DynamicList<glTFChannel> channels_
protected

Channels.

Definition at line 103 of file foamGltfAnimation.H.

Referenced by addTranslation(), animation(), animation(), and write().


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