TDME2 1.9.121
Static Public Member Functions | Static Private Member Functions | List of all members
TMWriter Class Reference

TDME model writer. More...

#include <tdme/engine/fileio/models/TMWriter.h>

Collaboration diagram for TMWriter:
Collaboration graph

Static Public Member Functions

static void write (Model *model, const string &pathName, const string &fileName)
 TDME model format writer. More...
 
static void write (Model *model, vector< uint8_t > &data)
 TDME model format writer. More...
 

Static Private Member Functions

static void writeEmbeddedTextures (TMWriterOutputStream *os, Model *m)
 Write embedded textures. More...
 
static void writeMaterial (TMWriterOutputStream *os, Material *m)
 Write material. More...
 
static void writeAnimationSetup (TMWriterOutputStream *os, AnimationSetup *animationSetup)
 Write animation setup. More...
 
static void writeVertices (TMWriterOutputStream *os, const vector< Vector3 > &v)
 Write vertices to output stream. More...
 
static void writeTextureCoordinates (TMWriterOutputStream *os, const vector< TextureCoordinate > &tc)
 Write texture coordinates to output stream. More...
 
static void writeIndices (TMWriterOutputStream *os, const array< int32_t, 3 > &indices)
 Write indices to output stream. More...
 
static void writeAnimation (TMWriterOutputStream *os, Animation *a)
 Write animation to output stream. More...
 
static void writeFacesEntities (TMWriterOutputStream *os, const vector< FacesEntity > &facesEntities)
 Write faces entities to output stream. More...
 
static void writeSkinningJoint (TMWriterOutputStream *os, const Joint &joint)
 Write skinning joint. More...
 
static void writeSkinningJointWeight (TMWriterOutputStream *os, const JointWeight &jointWeight)
 Write skinning joint weight. More...
 
static void writeSkinning (TMWriterOutputStream *os, Skinning *skinning)
 Write skinning to output stream. More...
 
static void writeSubNodes (TMWriterOutputStream *os, const map< string, Node * > &subNodes)
 Write sub nodes. More...
 
static void writeNode (TMWriterOutputStream *os, Node *g)
 Write node to output stream. More...
 
static void writeThumbnail (TMWriterOutputStream *os, Model *model)
 Write thumbnail to output stream. More...
 

Detailed Description

TDME model writer.

Author
Andreas Drewke
Version
$Id$

Definition at line 222 of file TMWriter.h.

Member Function Documentation

◆ write() [1/2]

void write ( Model model,
const string &  pathName,
const string &  fileName 
)
static

TDME model format writer.

Parameters
modelmodel
pathNamepath name
fileNamefile name
Exceptions
tdme::os::filesystem::FileSystemException
tdme::engine::fileio::models::ModelFileIOException

Definition at line 79 of file TMWriter.cpp.

◆ write() [2/2]

void write ( Model model,
vector< uint8_t > &  data 
)
static

TDME model format writer.

Parameters
modelmodel
datadata to write TM to

Definition at line 86 of file TMWriter.cpp.

◆ writeAnimation()

void writeAnimation ( TMWriterOutputStream os,
Animation a 
)
staticprivate

Write animation to output stream.

Parameters
osoutput stream
aanimation
Exceptions
modelfile IO exception

Definition at line 234 of file TMWriter.cpp.

◆ writeAnimationSetup()

void writeAnimationSetup ( TMWriterOutputStream os,
AnimationSetup animationSetup 
)
staticprivate

Write animation setup.

Parameters
osoutput stream
animationSetupanimation setup
Exceptions
modelfile IO exception

Definition at line 190 of file TMWriter.cpp.

◆ writeEmbeddedTextures()

void writeEmbeddedTextures ( TMWriterOutputStream os,
Model m 
)
staticprivate

Write embedded textures.

Parameters
osoutput stream
mmodel
Exceptions
modelfile IO exception

Definition at line 115 of file TMWriter.cpp.

◆ writeFacesEntities()

void writeFacesEntities ( TMWriterOutputStream os,
const vector< FacesEntity > &  facesEntities 
)
staticprivate

Write faces entities to output stream.

Parameters
osoutput stream
facesEntitiesfaces entities
Exceptions
modelfile IO exception

Definition at line 247 of file TMWriter.cpp.

◆ writeIndices()

void writeIndices ( TMWriterOutputStream os,
const array< int32_t, 3 > &  indices 
)
staticprivate

Write indices to output stream.

Parameters
osoutput stream
indicesindices
Exceptions
modelfile IO exception

Definition at line 225 of file TMWriter.cpp.

◆ writeMaterial()

void writeMaterial ( TMWriterOutputStream os,
Material m 
)
staticprivate

Write material.

Parameters
osoutput stream
mmaterial
Exceptions
modelfile IO exception

Definition at line 144 of file TMWriter.cpp.

◆ writeNode()

void writeNode ( TMWriterOutputStream os,
Node g 
)
staticprivate

Write node to output stream.

Parameters
osoutput stream
gnode
Exceptions
modelfile IO exception

Definition at line 313 of file TMWriter.cpp.

◆ writeSkinning()

void writeSkinning ( TMWriterOutputStream os,
Skinning skinning 
)
staticprivate

Write skinning to output stream.

Parameters
osoutput stream
skinningskinning
Exceptions
modelfile IO exception

Definition at line 283 of file TMWriter.cpp.

◆ writeSkinningJoint()

void writeSkinningJoint ( TMWriterOutputStream os,
const Joint joint 
)
staticprivate

Write skinning joint.

Parameters
osoutput stream
jointjoint
Exceptions
modelfile IO exception

Definition at line 271 of file TMWriter.cpp.

◆ writeSkinningJointWeight()

void writeSkinningJointWeight ( TMWriterOutputStream os,
const JointWeight jointWeight 
)
staticprivate

Write skinning joint weight.

Parameters
osoutput stream
jointWeightjoint
Exceptions
modelfile IO exception

Definition at line 277 of file TMWriter.cpp.

◆ writeSubNodes()

void writeSubNodes ( TMWriterOutputStream os,
const map< string, Node * > &  subNodes 
)
staticprivate

Write sub nodes.

Parameters
osoutput stream
subNodessub nodes
Exceptions
modelfile IO exception

Definition at line 304 of file TMWriter.cpp.

◆ writeTextureCoordinates()

void writeTextureCoordinates ( TMWriterOutputStream os,
const vector< TextureCoordinate > &  tc 
)
staticprivate

Write texture coordinates to output stream.

Parameters
osoutput stream
tctexture coordinates
Exceptions
modelfile IO exception

Definition at line 212 of file TMWriter.cpp.

◆ writeThumbnail()

void writeThumbnail ( TMWriterOutputStream os,
Model model 
)
staticprivate

Write thumbnail to output stream.

Parameters
osoutput stream
modelmodel
Exceptions
modelfile IO exception

Definition at line 330 of file TMWriter.cpp.

◆ writeVertices()

void writeVertices ( TMWriterOutputStream os,
const vector< Vector3 > &  v 
)
staticprivate

Write vertices to output stream.

Parameters
osoutput stream
vvertices
Exceptions
modelfile IO exception

Definition at line 199 of file TMWriter.cpp.


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