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 (const QGLContext *)
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.
const QGLContext * m_pQGLContext
 OpenGL Context.
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 67 of file glc_3dstoworld.h.


Constructor & Destructor Documentation

GLC_3dsToWorld::GLC_3dsToWorld ( const QGLContext *  pContext  ) 

Definition at line 50 of file glc_3dstoworld.cpp.

GLC_3dsToWorld::~GLC_3dsToWorld (  )  [virtual]

Definition at line 68 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 90 of file glc_3dstoworld.h.

Referenced by GLC_Factory::createWorldFromFile().

void GLC_3dsToWorld::loadMaterial ( Lib3dsMaterial *  p3dsMaterial  )  [private]

Member Data Documentation

Definition at line 161 of file glc_3dstoworld.h.

Referenced by clear(), and create3DRep().

Definition at line 152 of file glc_3dstoworld.h.

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

QString GLC_3dsToWorld::m_FileName [private]

The 3DS File name.

Definition at line 128 of file glc_3dstoworld.h.

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

Definition at line 149 of file glc_3dstoworld.h.

Referenced by create3DRep(), and CreateWorldFrom3ds().

The list of attached file name.

Definition at line 164 of file glc_3dstoworld.h.

Referenced by clear(), and loadMaterial().

QSet<QString> GLC_3dsToWorld::m_LoadedMeshes [private]

Definition at line 146 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 140 of file glc_3dstoworld.h.

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

The next material index.

Definition at line 143 of file glc_3dstoworld.h.

Referenced by clear().

Definition at line 158 of file glc_3dstoworld.h.

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

The current mesh.

Definition at line 134 of file glc_3dstoworld.h.

Referenced by clear().

Lib3dsFile* GLC_3dsToWorld::m_pLib3dsFile [private]

The Lib3dsFile Structure.

Definition at line 137 of file glc_3dstoworld.h.

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

const QGLContext* GLC_3dsToWorld::m_pQGLContext [private]

OpenGL Context.

Definition at line 131 of file glc_3dstoworld.h.

Referenced by loadMaterial().

Definition at line 155 of file glc_3dstoworld.h.

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

pointer to a GLC_World

Definition at line 125 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 Laurent Ribon