|
SO3Engine
|
#include <ALScene.h>
Public Types | |
| typedef std::unordered_map< std::string, std::string > | AlTexturesMap |
Public Member Functions | |
| ALScene () | |
| Empty constructor. Can be used when you can't directly use the full constructor. | |
| ALScene (ALSceneLoader *alSceneLoader, SScene *scene, std::string ressourceGroup, const aiScene *loadedScene, SNode *parent, const std::string &sceneName, bool isLoaderMode=false) | |
| ~ALScene () | |
| Destructor. | |
| aiMatrix4x4 | getFullTransform (aiNode *toThis) |
| bool | load (std::vector< SNode * > &scolNodes, std::vector< SMaterial * > &scolMats) |
| void | convert (boost::filesystem::path exportFolder) |
| bool | isEmpty () |
| bool | addTextureRef (std::string name, std::string path) |
| std::string | getTextureRef (std::string path) |
| SScene * | getSScene () |
| const aiScene * | getAiScene () |
| std::string | getRessourceGroup () |
| std::string | getRessourcePath () |
| std::string | getSceneName () |
| std::set< std::string > | getBonesNames () |
| bool | isBone (aiNode *node) |
| Check if a node is a bone. | |
| bool | haveMeshInHierarchy (aiNode *node) |
| bool | isSceneDependent (aiNode *node) |
| const std::vector< std::string > | getMaterialNames () |
| ALSceneLoader * | GetSceneLoader () |
| bool | IsLoaderModeEnable () |
This class is used to convert a aiScene ( from assimp ) to an array of scol's objects.
| typedef std::unordered_map<std::string, std::string> SO3::ALScene::AlTexturesMap |
| SO3::ALScene::ALScene | ( | ) |
Empty constructor. Can be used when you can't directly use the full constructor.
Definition at line 14 of file ALScene.cpp.
| SO3::ALScene::ALScene | ( | ALSceneLoader * | alSceneLoader, |
| SScene * | scene, | ||
| std::string | ressourceGroup, | ||
| const aiScene * | loadedScene, | ||
| SNode * | parent, | ||
| const std::string & | sceneName, | ||
| bool | isLoaderMode = false |
||
| ) |
Definition at line 24 of file ALScene.cpp.
| SO3::ALScene::~ALScene | ( | ) |
Destructor.
Definition at line 41 of file ALScene.cpp.
| bool SO3::ALScene::addTextureRef | ( | std::string | name, |
| std::string | path | ||
| ) |
add a texture reference in the map
Definition at line 468 of file ALScene.cpp.
| void SO3::ALScene::convert | ( | boost::filesystem::path | exportFolder | ) |
Convert the scene in a directory.
| exportPath | : Directory where data should be saved. |
| flags | : Importer flags. |
Definition at line 195 of file ALScene.cpp.
| const aiScene * SO3::ALScene::getAiScene | ( | ) |
Definition at line 492 of file ALScene.cpp.
| std::set< std::string > SO3::ALScene::getBonesNames | ( | ) |
Definition at line 512 of file ALScene.cpp.
| aiMatrix4x4 SO3::ALScene::getFullTransform | ( | aiNode * | toThis | ) |
Definition at line 60 of file ALScene.cpp.
| const std::vector< std::string > SO3::ALScene::getMaterialNames | ( | ) |
Definition at line 50 of file ALScene.cpp.
| std::string SO3::ALScene::getRessourceGroup | ( | ) |
Definition at line 497 of file ALScene.cpp.
| std::string SO3::ALScene::getRessourcePath | ( | ) |
Definition at line 502 of file ALScene.cpp.
|
inline |
| std::string SO3::ALScene::getSceneName | ( | ) |
Definition at line 507 of file ALScene.cpp.
| SScene * SO3::ALScene::getSScene | ( | ) |
Definition at line 487 of file ALScene.cpp.
| std::string SO3::ALScene::getTextureRef | ( | std::string | path | ) |
get the texture name added with a path
Definition at line 478 of file ALScene.cpp.
| bool SO3::ALScene::haveMeshInHierarchy | ( | aiNode * | node | ) |
Definition at line 525 of file ALScene.cpp.
| bool SO3::ALScene::isBone | ( | aiNode * | node | ) |
Check if a node is a bone.
Definition at line 517 of file ALScene.cpp.
| bool SO3::ALScene::isEmpty | ( | ) |
Check if the assimpScene pointer is null or not.
Definition at line 45 of file ALScene.cpp.
| bool SO3::ALScene::IsLoaderModeEnable | ( | ) |
Definition at line 55 of file ALScene.cpp.
| bool SO3::ALScene::isSceneDependent | ( | aiNode * | node | ) |
Definition at line 545 of file ALScene.cpp.
| bool SO3::ALScene::load | ( | std::vector< SNode * > & | scolNodes, |
| std::vector< SMaterial * > & | scolMats | ||
| ) |
Load the scene in the current viewport.
| flags | : Importer flags. |
Definition at line 73 of file ALScene.cpp.