TDME2 1.9.121
Classes | Static Public Member Functions | Static Private Member Functions | List of all members
SceneReader Class Referencefinal

Scene reader. More...

#include <tdme/engine/fileio/scenes/SceneReader.h>

Collaboration diagram for SceneReader:
Collaboration graph

Classes

struct  PrototypeMeshNode
 

Static Public Member Functions

static Sceneread (const string &pathName, const string &fileName, ProgressCallback *progressCallback=nullptr, PrototypeTransformFilter *prototypeTransformFilter=nullptr)
 Reads a scene. More...
 
static Sceneread (const string &pathName, const string &fileName, const string &objectIdPrefix, ProgressCallback *progressCallback=nullptr, PrototypeTransformFilter *prototypeTransformFilter=nullptr)
 Reads a scene. More...
 
static ScenereadFromModel (const string &pathName, const string &fileName, ProgressCallback *progressCallback=nullptr)
 Reads a scene. More...
 

Static Private Member Functions

static void determineMeshNodes (Scene *scene, Node *node, const string &parentName, const Matrix4x4 &parentTransformationsMatrix, vector< PrototypeMeshNode > &meshNodes)
 Determine mesh nodes in node hierarchy. More...
 

Detailed Description

Scene reader.

Author
Andreas Drewke
Version
$Id$

Definition at line 37 of file SceneReader.h.

Member Function Documentation

◆ determineMeshNodes()

void determineMeshNodes ( Scene scene,
Node node,
const string &  parentName,
const Matrix4x4 parentTransformationsMatrix,
vector< PrototypeMeshNode > &  meshNodes 
)
staticprivate

Determine mesh nodes in node hierarchy.

Parameters
scenescene
nodenode
parentNameparent node
parentTransformationsMatrixparent transformations matrix
meshNodesmesh nodes

Definition at line 319 of file SceneReader.cpp.

◆ read() [1/2]

Scene * read ( const string &  pathName,
const string &  fileName,
const string &  objectIdPrefix,
ProgressCallback progressCallback = nullptr,
PrototypeTransformFilter prototypeTransformFilter = nullptr 
)
static

Reads a scene.

Parameters
pathNamepath name
fileNamefile name
objectIdPrefixobject id prefix
progressCallbackprogress callback
prototypeTransformFilterprototype transform filter
Exceptions
tdme::os::filesystem::FileSystemException
tdme::engine::fileio::models::ModelFileIOException
Returns
scene

Definition at line 86 of file SceneReader.cpp.

◆ read() [2/2]

Scene * read ( const string &  pathName,
const string &  fileName,
ProgressCallback progressCallback = nullptr,
PrototypeTransformFilter prototypeTransformFilter = nullptr 
)
static

Reads a scene.

Parameters
pathNamepath name
fileNamefile name
progressCallbackprogress callback
prototypeTransformFilterprototype transform filter
Exceptions
tdme::os::filesystem::FileSystemException
tdme::engine::fileio::models::ModelFileIOException
Returns
scene

Definition at line 81 of file SceneReader.cpp.

◆ readFromModel()

Scene * readFromModel ( const string &  pathName,
const string &  fileName,
ProgressCallback progressCallback = nullptr 
)
static

Reads a scene.

Parameters
pathNamepath name
fileNamefile name
progressCallbackprogress callback
Exceptions
tdme::os::filesystem::FileSystemException
tdme::engine::fileio::models::ModelFileIOException
Returns
scene

Definition at line 386 of file SceneReader.cpp.


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