#include <OSG3DSLoader.h>
Inheritance diagram for LImporter:

Public Member Functions | |
| LImporter () | |
| virtual | ~LImporter () |
| virtual bool | Load (std::istream &is)=0 |
| virtual bool | Load (const char *filename)=0 |
| uint | GetMeshCount () |
| uint | GetLightCount () |
| uint | GetMaterialCount () |
| uint | GetCameraCount () |
| LMesh & | GetMesh (uint index) |
| LCamera & | GetCamera (uint index) |
| LLight & | GetLight (uint index) |
| LMaterial & | GetMaterial (uint index) |
| LMaterial * | FindMaterial (const std::string &name) |
| LMesh * | FindMesh (const std::string &name) |
| LLight * | FindCamera (const std::string &name) |
| LLight * | FindLight (const std::string &name) |
| void | SetOptimizationLevel (LOptimizationLevel value) |
| LOptimizationLevel | GetOptimizationLevel () |
Protected Member Functions | |
| virtual void | Clear () |
Protected Attributes | |
| std::vector< LCamera > | m_cameras |
| std::vector< LLight > | m_lights |
| std::vector< LMesh > | m_meshes |
| std::vector< LMaterial > | m_materials |
| LOptimizationLevel | m_optLevel |
Definition at line 412 of file OSG3DSLoader.h.
| LImporter::LImporter | ( | ) |
| LImporter::~LImporter | ( | ) | [virtual] |
| virtual bool LImporter::Load | ( | std::istream & | is | ) | [pure virtual] |
Implemented in L3DS.
| virtual bool LImporter::Load | ( | const char * | filename | ) | [pure virtual] |
Implemented in L3DS.
| uint LImporter::GetMeshCount | ( | ) |
Definition at line 1039 of file OSG3DSLoader.cpp.
References m_meshes.
Referenced by OSG::A3DSSceneFileType::read().
01040 { 01041 return m_meshes.size(); 01042 }
| uint LImporter::GetLightCount | ( | ) |
Definition at line 1044 of file OSG3DSLoader.cpp.
References m_lights.
01045 { 01046 return m_lights.size(); 01047 }
| uint LImporter::GetMaterialCount | ( | ) |
Definition at line 1049 of file OSG3DSLoader.cpp.
References m_materials.
01050 { 01051 return m_materials.size(); 01052 }
| uint LImporter::GetCameraCount | ( | ) |
Definition at line 1054 of file OSG3DSLoader.cpp.
References m_cameras.
01055 { 01056 return m_cameras.size(); 01057 }
Definition at line 1059 of file OSG3DSLoader.cpp.
References m_meshes.
Referenced by OSG::A3DSSceneFileType::read().
01060 { 01061 return m_meshes[index]; 01062 }
Definition at line 1074 of file OSG3DSLoader.cpp.
References m_cameras.
01075 { 01076 return m_cameras[index]; 01077 }
Definition at line 1064 of file OSG3DSLoader.cpp.
References m_lights.
01065 { 01066 return m_lights[index]; 01067 }
Definition at line 1069 of file OSG3DSLoader.cpp.
References m_materials.
Referenced by OSG::A3DSSceneFileType::createMaterial().
01070 { 01071 return m_materials[index]; 01072 }
| LMaterial * LImporter::FindMaterial | ( | const std::string & | name | ) |
Definition at line 1079 of file OSG3DSLoader.cpp.
References m_materials.
Referenced by L3DS::ReadFaceList().
01080 { 01081 for (uint i=0; i<m_materials.size(); i++) 01082 if (m_materials[i].IsObject(name)) 01083 return &m_materials[i]; 01084 return 0; 01085 }
| LMesh * LImporter::FindMesh | ( | const std::string & | name | ) |
Definition at line 1087 of file OSG3DSLoader.cpp.
References m_meshes.
Referenced by L3DS::ReadKeyframeData().
01088 { 01089 for (uint i=0; i<m_meshes.size(); i++) 01090 if (m_meshes[i].IsObject(name)) 01091 return &m_meshes[i]; 01092 return 0; 01093 }
| LLight* LImporter::FindCamera | ( | const std::string & | name | ) |
| LLight * LImporter::FindLight | ( | const std::string & | name | ) |
| void LImporter::SetOptimizationLevel | ( | LOptimizationLevel | value | ) |
Definition at line 1111 of file OSG3DSLoader.cpp.
References m_optLevel.
01112 { 01113 m_optLevel = value; 01114 }
| LOptimizationLevel LImporter::GetOptimizationLevel | ( | ) |
Definition at line 1116 of file OSG3DSLoader.cpp.
References m_optLevel.
01117 { 01118 return m_optLevel; 01119 }
| void LImporter::Clear | ( | ) | [protected, virtual] |
Definition at line 1103 of file OSG3DSLoader.cpp.
References m_lights, m_materials, m_meshes, m_optLevel, and oFull.
Referenced by LImporter(), L3DS::Load(), and ~LImporter().
01104 { 01105 m_meshes.clear(); 01106 m_lights.clear(); 01107 m_materials.clear(); 01108 m_optLevel = oFull; 01109 }
std::vector<LCamera> LImporter::m_cameras [protected] |
Definition at line 453 of file OSG3DSLoader.h.
Referenced by GetCamera(), GetCameraCount(), and L3DS::ReadCamera().
std::vector<LLight> LImporter::m_lights [protected] |
Definition at line 455 of file OSG3DSLoader.h.
Referenced by Clear(), FindLight(), GetLight(), GetLightCount(), and L3DS::ReadLight().
std::vector<LMesh> LImporter::m_meshes [protected] |
Definition at line 457 of file OSG3DSLoader.h.
Referenced by Clear(), FindMesh(), GetMesh(), GetMeshCount(), L3DS::Read3DS(), and L3DS::ReadMesh().
std::vector<LMaterial> LImporter::m_materials [protected] |
Definition at line 459 of file OSG3DSLoader.h.
Referenced by Clear(), FindMaterial(), GetMaterial(), GetMaterialCount(), and L3DS::ReadMaterial().
LOptimizationLevel LImporter::m_optLevel [protected] |
Definition at line 461 of file OSG3DSLoader.h.
Referenced by Clear(), GetOptimizationLevel(), L3DS::Read3DS(), and SetOptimizationLevel().