Go to the documentation of this file.
59 sampler.input = inputId;
60 sampler.output = outputId;
66 channel.target.node = nodeId;
67 channel.target.path =
"translation";
78 const auto& sampler = samplers_[i];
81 <<
indent <<
"\"input\" : " << sampler.input <<
"," <<
nl
82 <<
indent <<
"\"interpolation\" : " << sampler.interpolation
84 <<
indent <<
"\"output\" : " << sampler.output <<
nl
87 if (i != samplers_.size() - 1)
os <<
"," <<
nl;
96 const auto& channel = channels_[i];
99 <<
indent <<
"\"sampler\" : " << channel.samplerId <<
"," <<
nl
101 <<
indent <<
"\"node\" : " << channel.target.node <<
"," <<
nl
102 <<
indent <<
"\"path\" : " << channel.target.path <<
nl
106 if (i != channels_.size() - 1)
os <<
"," <<
nl;
A class for handling words, derived from Foam::string.
DynamicList< glTFChannel > channels_
DynamicList< glTFSampler > samplers_
void write(Ostream &os) const
Ostream & incrIndent(Ostream &os)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Base class for glTF entities.
Abstract base class for interpolation.
OBJstream os(runTime.globalPath()/outputName)
virtual bool write(const token &tok)=0
Ostream & decrIndent(Ostream &os)
Ostream & indent(Ostream &os)
word name(const expressions::valueTypeCode typeCode)
void addTranslation(const label inputId, const label outputId, const label nodeId, const string &interpolation)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...