Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::IO::AssimpGeometryDataLoader Class Reference

#include <IO/AssimpLoader/AssimpGeometryDataLoader.hpp>

+ 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.

Constructor & Destructor Documentation

◆ AssimpGeometryDataLoader()

Ra::IO::AssimpGeometryDataLoader::AssimpGeometryDataLoader ( const std::string & filepath,
const bool VERBOSE_MODE = false )
explicit

Definition at line 16 of file AssimpGeometryDataLoader.cpp.

Member Function Documentation

◆ loadData()

void Ra::IO::AssimpGeometryDataLoader::loadData ( const aiScene * scene,
std::vector< std::unique_ptr< Core::Asset::GeometryData > > & data )
override

Convert all the geometry data from scene into data.

Definition at line 22 of file AssimpGeometryDataLoader.cpp.

◆ loadGeometryData()

void Ra::IO::AssimpGeometryDataLoader::loadGeometryData ( const aiScene * scene,
std::vector< std::unique_ptr< Core::Asset::GeometryData > > & data )
protected

Fill data with all the GeometryData from scene.

Definition at line 282 of file AssimpGeometryDataLoader.cpp.

+ Here is the call graph for this function:

◆ loadMaterial()

void Ra::IO::AssimpGeometryDataLoader::loadMaterial ( const aiMaterial & material,
Core::Asset::GeometryData & data ) const
protected

Fill data with the Material data from material.

Definition at line 206 of file AssimpGeometryDataLoader.cpp.

+ Here is the call graph for this function:

◆ loadMeshFrame()

void Ra::IO::AssimpGeometryDataLoader::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
protected

Fill data with the transformation data from node and parentFrame.

Definition at line 138 of file AssimpGeometryDataLoader.cpp.

+ Here is the call graph for this function:

◆ sceneGeometrySize()

uint Ra::IO::AssimpGeometryDataLoader::sceneGeometrySize ( const aiScene * scene) const
protected

Return the number of AssImp geometry data in the given scene.

Definition at line 50 of file AssimpGeometryDataLoader.cpp.

◆ sceneHasGeometry()

bool Ra::IO::AssimpGeometryDataLoader::sceneHasGeometry ( const aiScene * scene) const
inlineprotected

Return true if the given scene has geometry data.

Definition at line 46 of file AssimpGeometryDataLoader.cpp.


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