|
Assimp
v4.1. (December 2018)
|
Helper class to export a given scene to a X-file. More...
Public Member Functions | |
| XFileExporter (const aiScene *pScene, IOSystem *pIOSystem, const std::string &path, const std::string &file, const ExportProperties *pProperties) | |
| Constructor for a specific scene to export. More... | |
| virtual | ~XFileExporter () |
| Destructor. More... | |
Public Attributes | |
| std::stringstream | mOutput |
| Stringstream to write all output into. More... | |
Protected Member Functions | |
| void | PopTag () |
| Leaves an element, decreasing the indentation. More... | |
| void | PushTag () |
| Enters a new xml element, which increases the indentation. More... | |
| std::string | toXFileString (aiString &name) |
| normalize the name to be accepted by xfile readers More... | |
| void | WriteFile () |
| Starts writing the contents. More... | |
| void | WriteFrameTransform (aiMatrix4x4 &m) |
| write a frame transform More... | |
| void | WriteHeader () |
| Writes the asset header. More... | |
| void | WriteMesh (aiMesh *mesh) |
| write a mesh entry of the scene More... | |
| void | WriteNode (aiNode *pNode) |
| Recursively writes the given node. More... | |
| void | writePath (const aiString &path) |
| write a path More... | |
Protected Attributes | |
| std::string | endstr |
| current line end string for simple stream insertion More... | |
| const std::string | mFile |
| Name of the file (without extension) where the scene will be exported. More... | |
| IOSystem * | mIOSystem |
| The IOSystem for output. More... | |
| const std::string | mPath |
| Path of the directory where the scene will be exported. More... | |
| const ExportProperties * | mProperties |
| hold the properties pointer More... | |
| const aiScene * | mScene |
| The scene to be written. More... | |
| bool | mSceneOwned |
| std::string | startstr |
| current line start string, contains the current indentation for simple stream insertion More... | |
Helper class to export a given scene to a X-file.
Note: an xFile uses a left hand system. Assimp used a right hand system (OpenGL), therefore we have to transform everything
| XFileExporter::XFileExporter | ( | const aiScene * | pScene, |
| IOSystem * | pIOSystem, | ||
| const std::string & | path, | ||
| const std::string & | file, | ||
| const ExportProperties * | pProperties | ||
| ) |
Constructor for a specific scene to export.
|
virtual |
Destructor.
|
inlineprotected |
Leaves an element, decreasing the indentation.
|
inlineprotected |
Enters a new xml element, which increases the indentation.
|
protected |
normalize the name to be accepted by xfile readers
|
protected |
Starts writing the contents.
|
protected |
write a frame transform
|
protected |
Writes the asset header.
|
protected |
write a mesh entry of the scene
|
protected |
Recursively writes the given node.
|
protected |
write a path
|
protected |
current line end string for simple stream insertion
|
protected |
Name of the file (without extension) where the scene will be exported.
| std::stringstream Assimp::XFileExporter::mOutput |
Stringstream to write all output into.
|
protected |
Path of the directory where the scene will be exported.
|
protected |
hold the properties pointer
|
protected |
The scene to be written.
|
protected |
|
protected |
current line start string, contains the current indentation for simple stream insertion