GLC_OffToWorld Class Reference

GLC_OffToWorld : Create an GLC_World from off file. More...

#include <glc_offtoworld.h>

List of all members.

Signals

void currentQuantum (int)

Public Member Functions

Constructor / Destructor

 GLC_OffToWorld ()
virtual ~GLC_OffToWorld ()
Set Functions

GLC_WorldCreateWorldFromOff (QFile &file)
 Create an GLC_World from an input OFF File.

Private Member Functions

Private services functions

void clear ()
 clear stlToWorld allocate memmory
void extractVertex (QString &)
 Extract a vertex from a string and add color component if needed.
void extractNbrVertexsAndNbrFaces (QString &)
 Extract Number off Vertex and faces.
void extractFaceIndex (QString &)
 Extract a face from a string.
void computeNormal ()
 compute faces normal

Private Attributes

GLC_Worldm_pWorld
 pointer to a GLC_World
QString m_FileName
 The Stl File name.
int m_CurrentLineNumber
 The current line number.
GLC_Meshm_pCurrentMesh
 The current mesh.
int m_CurVertexIndex
 Index of the current vertex.
int m_NbrOfVertexs
 The number of vertexs.
int m_NbrOfFaces
 The number of faces.
bool m_IsCoff
 The OFF is a COFF.
bool m_Is4off
 The OFF is 4OFF.
QList< float > m_PositionBulk
QList< float > m_NormalBulk
 The Normal Bulk data.
QList< float > m_ColorBulk
 The color Bulk data.
IndexList m_IndexList
 The indexList.

Detailed Description

GLC_OffToWorld : Create an GLC_World from off file.

An GLC_OffToWorld extract the only mesh from an .off file
List of elements extracted from the off

Definition at line 59 of file glc_offtoworld.h.


Constructor & Destructor Documentation

GLC_OffToWorld::GLC_OffToWorld (  ) 

Definition at line 37 of file glc_offtoworld.cpp.

GLC_OffToWorld::~GLC_OffToWorld (  )  [virtual]

Definition at line 55 of file glc_offtoworld.cpp.

References clear().


Member Function Documentation

void GLC_OffToWorld::clear (  )  [private]
void GLC_OffToWorld::computeNormal (  )  [private]
GLC_World * GLC_OffToWorld::CreateWorldFromOff ( QFile &  file  ) 
void GLC_OffToWorld::currentQuantum ( int   )  [signal]

Referenced by CreateWorldFromOff().

void GLC_OffToWorld::extractFaceIndex ( QString &  line  )  [private]

Extract a face from a string.

Definition at line 393 of file glc_offtoworld.cpp.

References clear(), m_ColorBulk, m_CurrentLineNumber, m_FileName, m_IndexList, m_PositionBulk, and GLC_FileFormatException::WrongFileFormat.

Referenced by CreateWorldFromOff().

void GLC_OffToWorld::extractNbrVertexsAndNbrFaces ( QString &  line  )  [private]

Extract Number off Vertex and faces.

Definition at line 359 of file glc_offtoworld.cpp.

References clear(), m_CurrentLineNumber, m_FileName, m_NbrOfFaces, m_NbrOfVertexs, and GLC_FileFormatException::WrongFileFormat.

Referenced by CreateWorldFromOff().

void GLC_OffToWorld::extractVertex ( QString &  line  )  [private]

Extract a vertex from a string and add color component if needed.

Definition at line 257 of file glc_offtoworld.cpp.

References clear(), m_ColorBulk, m_CurrentLineNumber, m_FileName, m_Is4off, m_IsCoff, m_PositionBulk, and GLC_FileFormatException::WrongFileFormat.

Referenced by CreateWorldFromOff().


Member Data Documentation

QList<float> GLC_OffToWorld::m_ColorBulk [private]

The color Bulk data.

Definition at line 147 of file glc_offtoworld.h.

Referenced by clear(), CreateWorldFromOff(), extractFaceIndex(), and extractVertex().

The current line number.

Definition at line 120 of file glc_offtoworld.h.

Referenced by clear(), CreateWorldFromOff(), extractFaceIndex(), extractNbrVertexsAndNbrFaces(), and extractVertex().

Index of the current vertex.

Definition at line 126 of file glc_offtoworld.h.

Referenced by clear().

QString GLC_OffToWorld::m_FileName [private]

The Stl File name.

Definition at line 117 of file glc_offtoworld.h.

Referenced by clear(), CreateWorldFromOff(), extractFaceIndex(), extractNbrVertexsAndNbrFaces(), and extractVertex().

The indexList.

Definition at line 150 of file glc_offtoworld.h.

Referenced by computeNormal(), CreateWorldFromOff(), and extractFaceIndex().

bool GLC_OffToWorld::m_Is4off [private]

The OFF is 4OFF.

Definition at line 138 of file glc_offtoworld.h.

Referenced by clear(), CreateWorldFromOff(), and extractVertex().

bool GLC_OffToWorld::m_IsCoff [private]

The OFF is a COFF.

Definition at line 135 of file glc_offtoworld.h.

Referenced by clear(), CreateWorldFromOff(), and extractVertex().

The number of faces.

Definition at line 132 of file glc_offtoworld.h.

Referenced by clear(), CreateWorldFromOff(), and extractNbrVertexsAndNbrFaces().

The number of vertexs.

Definition at line 129 of file glc_offtoworld.h.

Referenced by clear(), CreateWorldFromOff(), and extractNbrVertexsAndNbrFaces().

QList<float> GLC_OffToWorld::m_NormalBulk [private]

The Normal Bulk data.

Definition at line 144 of file glc_offtoworld.h.

Referenced by clear(), computeNormal(), and CreateWorldFromOff().

The current mesh.

Definition at line 123 of file glc_offtoworld.h.

Referenced by clear(), and CreateWorldFromOff().

QList<float> GLC_OffToWorld::m_PositionBulk [private]

pointer to a GLC_World

Definition at line 114 of file glc_offtoworld.h.

Referenced by clear(), and CreateWorldFromOff().


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

SourceForge.net Logo

©2005-2011 Laurent Ribon