GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Signals | Private Attributes | List of all members
GLC_3dsToWorld Class Reference

GLC_3dsToWorld : Create an GLC_World from 3ds file. More...

#include <glc_3dstoworld.h>

+ Inheritance diagram for GLC_3dsToWorld:

Signals

void currentQuantum (int)
 

Public Member Functions

Constructor / Destructor
 GLC_3dsToWorld ()
 
virtual ~GLC_3dsToWorld ()
 
Set Functions
GLC_WorldCreateWorldFrom3ds (QFile &file)
 Create an GLC_World from an input 3DS File.
 
QStringList listOfAttachedFileName () const
 Get the list of attached files.
 

Private Member Functions

Private services functions
void clear ()
 clear 3dsToWorld allocate memmory
 
void createMeshes (GLC_StructOccurence *, Lib3dsNode *)
 Create meshes from the 3ds File.
 
GLC_3DRep create3DRep (Lib3dsMesh *)
 Create 3DRep from a Lib3dsMesh.
 
void loadMaterial (Lib3dsMaterial *)
 Load Material.
 

Private Attributes

GLC_Worldm_pWorld
 pointer to a GLC_World
 
QString m_FileName
 The 3DS File name.
 
GLC_Meshm_pCurrentMesh
 The current mesh.
 
Lib3dsFile * m_pLib3dsFile
 The Lib3dsFile Structure.
 
QHash< QString, GLC_Material * > m_Materials
 The GLC_Material Hash Table.
 
int m_NextMaterialIndex
 The next material index.
 
QSet< QString > m_LoadedMeshes
 
const int m_InitQuantumValue
 
int m_CurrentQuantumValue
 
int m_PreviousQuantumValue
 
int m_NumberOfMeshes
 
int m_CurrentMeshNumber
 
QSet< QString > m_ListOfAttachedFileName
 The list of attached file name.
 

Detailed Description

GLC_3dsToWorld : Create an GLC_World from 3ds file.

An GLC_3dsToWorld extract meshs from an .3ds file
List of elements extracted from the 3ds

Definition at line 65 of file glc_3dstoworld.h.

Constructor & Destructor Documentation

GLC_3dsToWorld::GLC_3dsToWorld ( )

Definition at line 48 of file glc_3dstoworld.cpp.

GLC_3dsToWorld::~GLC_3dsToWorld ( )
virtual

Definition at line 65 of file glc_3dstoworld.cpp.

References clear().

Member Function Documentation

void GLC_3dsToWorld::clear ( )
private
GLC_3DRep GLC_3dsToWorld::create3DRep ( Lib3dsMesh *  p3dsMesh)
private
void GLC_3dsToWorld::createMeshes ( GLC_StructOccurence pProduct,
Lib3dsNode *  pFatherNode 
)
private
GLC_World * GLC_3dsToWorld::CreateWorldFrom3ds ( QFile &  file)
void GLC_3dsToWorld::currentQuantum ( int  )
signal

Referenced by create3DRep(), and CreateWorldFrom3ds().

QStringList GLC_3dsToWorld::listOfAttachedFileName ( ) const
inline

Get the list of attached files.

Definition at line 88 of file glc_3dstoworld.h.

Referenced by GLC_FileLoader::createWorldFromFile().

void GLC_3dsToWorld::loadMaterial ( Lib3dsMaterial *  p3dsMaterial)
private

Member Data Documentation

int GLC_3dsToWorld::m_CurrentMeshNumber
private

Definition at line 156 of file glc_3dstoworld.h.

Referenced by clear(), and create3DRep().

int GLC_3dsToWorld::m_CurrentQuantumValue
private

Definition at line 147 of file glc_3dstoworld.h.

Referenced by clear(), create3DRep(), and CreateWorldFrom3ds().

QString GLC_3dsToWorld::m_FileName
private

The 3DS File name.

Definition at line 126 of file glc_3dstoworld.h.

Referenced by clear(), CreateWorldFrom3ds(), and loadMaterial().

const int GLC_3dsToWorld::m_InitQuantumValue
private

Definition at line 144 of file glc_3dstoworld.h.

Referenced by create3DRep(), and CreateWorldFrom3ds().

QSet<QString> GLC_3dsToWorld::m_ListOfAttachedFileName
private

The list of attached file name.

Definition at line 159 of file glc_3dstoworld.h.

Referenced by clear(), and loadMaterial().

QSet<QString> GLC_3dsToWorld::m_LoadedMeshes
private

Definition at line 141 of file glc_3dstoworld.h.

Referenced by clear(), create3DRep(), createMeshes(), and CreateWorldFrom3ds().

QHash<QString, GLC_Material*> GLC_3dsToWorld::m_Materials
private

The GLC_Material Hash Table.

Definition at line 135 of file glc_3dstoworld.h.

Referenced by clear(), create3DRep(), createMeshes(), and loadMaterial().

int GLC_3dsToWorld::m_NextMaterialIndex
private

The next material index.

Definition at line 138 of file glc_3dstoworld.h.

Referenced by clear().

int GLC_3dsToWorld::m_NumberOfMeshes
private

Definition at line 153 of file glc_3dstoworld.h.

Referenced by clear(), create3DRep(), and CreateWorldFrom3ds().

GLC_Mesh* GLC_3dsToWorld::m_pCurrentMesh
private

The current mesh.

Definition at line 129 of file glc_3dstoworld.h.

Referenced by clear().

Lib3dsFile* GLC_3dsToWorld::m_pLib3dsFile
private

The Lib3dsFile Structure.

Definition at line 132 of file glc_3dstoworld.h.

Referenced by clear(), create3DRep(), createMeshes(), and CreateWorldFrom3ds().

int GLC_3dsToWorld::m_PreviousQuantumValue
private

Definition at line 150 of file glc_3dstoworld.h.

Referenced by clear(), create3DRep(), and CreateWorldFrom3ds().

GLC_World* GLC_3dsToWorld::m_pWorld
private

pointer to a GLC_World

Definition at line 123 of file glc_3dstoworld.h.

Referenced by clear(), create3DRep(), and CreateWorldFrom3ds().


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

©2005-2013 Laurent Ribon