GLC_3dsToWorld Class Reference

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

#include <glc_3dstoworld.h>

List of all members.

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

Definition at line 156 of file glc_3dstoworld.h.

Referenced by clear(), and create3DRep().

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().

Definition at line 144 of file glc_3dstoworld.h.

Referenced by create3DRep(), and CreateWorldFrom3ds().

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().

The next material index.

Definition at line 138 of file glc_3dstoworld.h.

Referenced by clear().

Definition at line 153 of file glc_3dstoworld.h.

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

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().

Definition at line 150 of file glc_3dstoworld.h.

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

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:

SourceForge.net Logo

©2005-2011 Laurent Ribon