LImporter Class Reference

#include <OSG3DSLoader.h>

Inheritance diagram for LImporter:

L3DS List of all members.

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 ()
LMeshGetMesh (uint index)
LCameraGetCamera (uint index)
LLightGetLight (uint index)
LMaterialGetMaterial (uint index)
LMaterialFindMaterial (const std::string &name)
LMeshFindMesh (const std::string &name)
LLightFindCamera (const std::string &name)
LLightFindLight (const std::string &name)
void SetOptimizationLevel (LOptimizationLevel value)
LOptimizationLevel GetOptimizationLevel ()

Protected Member Functions

virtual void Clear ()

Protected Attributes

std::vector< LCameram_cameras
std::vector< LLightm_lights
std::vector< LMeshm_meshes
std::vector< LMaterialm_materials
LOptimizationLevel m_optLevel

Detailed Description

Definition at line 412 of file OSG3DSLoader.h.


Constructor & Destructor Documentation

LImporter::LImporter (  ) 

Definition at line 1029 of file OSG3DSLoader.cpp.

References Clear().

01030 {
01031     Clear();
01032 }

LImporter::~LImporter (  )  [virtual]

Definition at line 1034 of file OSG3DSLoader.cpp.

References Clear().

01035 {
01036     Clear();
01037 }


Member Function Documentation

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 }

LMesh & LImporter::GetMesh ( uint  index  ) 

Definition at line 1059 of file OSG3DSLoader.cpp.

References m_meshes.

Referenced by OSG::A3DSSceneFileType::read().

01060 {
01061     return m_meshes[index];
01062 }

LCamera & LImporter::GetCamera ( uint  index  ) 

Definition at line 1074 of file OSG3DSLoader.cpp.

References m_cameras.

01075 {
01076     return m_cameras[index];
01077 }

LLight & LImporter::GetLight ( uint  index  ) 

Definition at line 1064 of file OSG3DSLoader.cpp.

References m_lights.

01065 {
01066     return m_lights[index];
01067 }

LMaterial & LImporter::GetMaterial ( uint  index  ) 

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  ) 

Definition at line 1095 of file OSG3DSLoader.cpp.

References m_lights.

01096 {
01097     for (uint i=0; i<m_lights.size(); i++)
01098         if (m_lights[i].IsObject(name))
01099             return &m_lights[i];
01100     return 0;
01101 }

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 }


Member Data Documentation

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 461 of file OSG3DSLoader.h.

Referenced by Clear(), GetOptimizationLevel(), L3DS::Read3DS(), and SetOptimizationLevel().


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