Assimp  v3.1.1 (June 2014)
Assimp::StepExporter Class Reference

Helper class to export a given scene to a StepFile. More...

Public Member Functions

 StepExporter (const aiScene *pScene, IOSystem *pIOSystem, const std::string &path, const std::string &file, const ExportProperties *pProperties)
 Constructor for a specific scene to export. More...
 

Public Attributes

std::stringstream mOutput
 Stringstream to write all output into. More...
 

Protected Types

typedef std::multimap< const aiNode *, unsigned int > MeshesByNodeMap
 map to all meshed of nodes More...
 

Protected Member Functions

void WriteFile ()
 Starts writing the contents. More...
 

Protected Attributes

std::string endstr
 current line end string for simple stream insertion More...
 
MeshesByNodeMap meshes
 
std::string mFile
 Name of the file (without extension) where the scene will be exported. More...
 
IOSystemmIOSystem
 The IOSystem for output. More...
 
std::string mPath
 Path of the directory where the scene will be exported. More...
 
const ExportPropertiesmProperties
 hold the properties pointer More...
 
const aiScenemScene
 The scene to be written. More...
 
std::map< const aiNode *, aiMatrix4x4trafos
 accumultated transformations for nodes More...
 

Detailed Description

Helper class to export a given scene to a StepFile.

Note: an StepFile uses a left hand system. Assimp used a right hand system (OpenGL), therefore we have to transform everything

Member Typedef Documentation

§ MeshesByNodeMap

typedef std::multimap<const aiNode*, unsigned int> Assimp::StepExporter::MeshesByNodeMap
protected

map to all meshed of nodes

Constructor & Destructor Documentation

§ StepExporter()

StepExporter::StepExporter ( const aiScene pScene,
IOSystem pIOSystem,
const std::string &  path,
const std::string &  file,
const ExportProperties pProperties 
)

Constructor for a specific scene to export.

Member Function Documentation

§ WriteFile()

void StepExporter::WriteFile ( )
protected

Starts writing the contents.

Member Data Documentation

§ endstr

std::string Assimp::StepExporter::endstr
protected

current line end string for simple stream insertion

§ meshes

MeshesByNodeMap Assimp::StepExporter::meshes
protected

§ mFile

std::string Assimp::StepExporter::mFile
protected

Name of the file (without extension) where the scene will be exported.

§ mIOSystem

IOSystem* Assimp::StepExporter::mIOSystem
protected

The IOSystem for output.

§ mOutput

std::stringstream Assimp::StepExporter::mOutput

Stringstream to write all output into.

§ mPath

std::string Assimp::StepExporter::mPath
protected

Path of the directory where the scene will be exported.

§ mProperties

const ExportProperties* Assimp::StepExporter::mProperties
protected

hold the properties pointer

§ mScene

const aiScene* Assimp::StepExporter::mScene
protected

The scene to be written.

§ trafos

std::map<const aiNode*, aiMatrix4x4> Assimp::StepExporter::trafos
protected

accumultated transformations for nodes


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