Loading [MathJax]/extensions/TeX/AMSsymbols.js
Radium Engine  1.5.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Ra::IO::AssimpGeometryDataLoader Class Reference

#include <IO/AssimpLoader/AssimpGeometryDataLoader.hpp>

Inherits Ra::Core::Asset::DataLoader< DATA >.

+ Collaboration diagram for Ra::IO::AssimpGeometryDataLoader:

Public Member Functions

 AssimpGeometryDataLoader (const std::string &filepath, const bool VERBOSE_MODE=false)
 
void loadData (const aiScene *scene, std::vector< std::unique_ptr< Core::Asset::GeometryData >> &data) override
 Convert all the geometry data from scene into data.
 

Protected Member Functions

bool sceneHasGeometry (const aiScene *scene) const
 Return true if the given scene has geometry data.
 
uint sceneGeometrySize (const aiScene *scene) const
 Return the number of AssImp geometry data in the given scene.
 
void loadGeometryData (const aiScene *scene, std::vector< std::unique_ptr< Core::Asset::GeometryData >> &data)
 Fill data with all the GeometryData from scene.
 
void loadMaterial (const aiMaterial &material, Core::Asset::GeometryData &data) const
 Fill data with the Material data from material.
 
void loadMeshFrame (const aiNode *node, const Core::Transform &parentFrame, const std::map< uint, size_t > &indexTable, std::vector< std::unique_ptr< Core::Asset::GeometryData >> &data) const
 Fill data with the transformation data from node and parentFrame.
 

Detailed Description

The AssimpGeometryDataLoader converts geometry data from the Assimp format to the Asset::GeometryData format.

Definition at line 32 of file AssimpGeometryDataLoader.hpp.


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