ComputerGraphik TU WIEN
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
AssimpLoader Class Reference

The class which is responsible for loading all the details to build up a scene. More...

#include <assimpLoader.hpp>

Public Member Functions

 AssimpLoader (const std::string &scenePath, Scene *scene)
 

Static Public Member Functions

static void loadModel (const aiMesh *mesh, std::unique_ptr< Model > &model)
 
static void selectAdjacent (const aiMesh *mesh, std::vector< unsigned int > &indices)
 

Private Member Functions

glm::vec3 aiVec2glmVec (const aiColor3D &v)
 
glm::vec4 aiVec2glmVec (const aiColor4D &v)
 
glm::mat4 aiMat2glmMat (const aiMatrix4x4 &m)
 
void nextNode (aiNode *iparent, std::shared_ptr< SceneObject > parent)
 

Private Attributes

Scenescene
 
const aiScene * iscene
 
Assimp::Importer importer
 

Detailed Description

The class which is responsible for loading all the details to build up a scene.

The AssimpLoader class

Author
Adam, Felix
See also
Scene

Constructor & Destructor Documentation

AssimpLoader::AssimpLoader ( const std::string &  scenePath,
Scene scene 
)

Member Function Documentation

glm::mat4 AssimpLoader::aiMat2glmMat ( const aiMatrix4x4 &  m)
private
glm::vec3 AssimpLoader::aiVec2glmVec ( const aiColor3D &  v)
private
glm::vec4 AssimpLoader::aiVec2glmVec ( const aiColor4D &  v)
private
void AssimpLoader::loadModel ( const aiMesh *  mesh,
std::unique_ptr< Model > &  model 
)
static
void AssimpLoader::nextNode ( aiNode *  iparent,
std::shared_ptr< SceneObject parent 
)
private
void AssimpLoader::selectAdjacent ( const aiMesh *  mesh,
std::vector< unsigned int > &  indices 
)
static

Member Data Documentation

Assimp::Importer AssimpLoader::importer
private
const aiScene* AssimpLoader::iscene
private
Scene* AssimpLoader::scene
private

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