#include <foamGltfAnimation.H>


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 word & | name () const noexcept |
| Return const access to the name. | |
| void | write (Ostream &os) const |
| Write. | |
| void | operator= (const base &gltf) |
Protected Attributes | |
| DynamicList< glTFSampler > | samplers_ |
| Samplers. | |
| DynamicList< glTFChannel > | channels_ |
| Channels. | |
| Protected Attributes inherited from base | |
| word | name_ |
| Name. | |
| label | id_ |
| ID. | |
glTF animation
Definition at line 61 of file foamGltfAnimation.H.
| animation | ( | ) |
Default construct.
Definition at line 25 of file foamGltfAnimation.C.
References base::base(), channels_, and samplers_.

|
explicit |
Construct with name.
Definition at line 33 of file foamGltfAnimation.C.
References base::base(), channels_, base::name(), and samplers_.

| void addTranslation | ( | const label | inputId, |
| const label | outputId, | ||
| const label | nodeId, | ||
| const string & | interpolation ) |
Add translation.
Definition at line 43 of file foamGltfAnimation.C.
References channels_, animation::glTFSampler::input, animation::glTFSampler::interpolation, animation::glTFTarget::node, animation::glTFSampler::output, animation::glTFTarget::path, animation::glTFChannel::samplerId, samplers_, and animation::glTFChannel::target.
| 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<<().


|
protected |
Samplers.
Definition at line 98 of file foamGltfAnimation.H.
Referenced by addTranslation(), animation(), animation(), and write().
|
protected |
Channels.
Definition at line 103 of file foamGltfAnimation.H.
Referenced by addTranslation(), animation(), animation(), and write().