Go to the documentation of this file.
41 #ifndef foam_gltf_accessor_H
42 #define foam_gltf_accessor_H
108 static string toString(
const Type& val);
138 label&
count() noexcept;
141 string&
type() noexcept;
145 void set(const
Field<Type>&
fld,
bool calcMinMax = true);
label byteOffset_
Byte offset.
A class for handling words, derived from Foam::string.
void set(const Field< Type > &fld, bool calcMinMax=true)
Set the accessor.
label & componentType() noexcept
Return the component type.
const word & name() const noexcept
Return const access to the name.
label & count() noexcept
Return the data size.
label & bufferViewId() noexcept
Return the buffer view index.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Base class for glTF entities.
bool minMax_
Flag to indicate whether min and max values are available.
Generic templated field type.
label & byteOffset() noexcept
Return the byte offset.
string & type() noexcept
Return the type.
label bufferViewId_
Buffer view index.
label componentType_
Component type.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
OBJstream os(runTime.globalPath()/outputName)
string min_
Min value. Note: stored as a string for convenience.
static string toString(const Type &val)
Stringify the value.
void write(Ostream &os) const
Write.
~accessor()=default
Destructor.
string max_
Max value. Note: stored as a string for convenience.
accessor()
Default construct.
static string getValueType()
Return the glTF value type for the given OpenFOAM type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...