GLC_Lod Class Reference

GLC_Lod is a Level of detail index and accuracy. More...

#include <glc_lod.h>

List of all members.

Public Member Functions

Constructor / Destructor

 GLC_Lod ()
 Default Constructor.
 GLC_Lod (double accuracy)
 Construct a Lod with the specified accuracy.
 GLC_Lod (const GLC_Lod &)
 Copy constructor.
GLC_Lodoperator= (const GLC_Lod &)
 Overload "=" operator.
virtual ~GLC_Lod ()
 Destructor.
Set Functions

void finishVbo ()
 The mesh wich use this lod is finished.
void setAccuracy (const double &accuracy)
 Set accuracy of the LOD.
OpenGL Functions

void createIBO ()
 IBO creation.
void useIBO ()
 Ibo Usage.

Private Attributes

double m_Accuracy
 The accuracy of the LOD.
GLuint m_IboId
 The IBO ID.
QVector< GLuint > m_IndexVector
 The Index Vector.
int m_IndexSize
 The Index vector size.

Static Private Attributes

static quint32 m_ChunkId = 0xA708
 Class chunk id.

Friends

QDataStream & operator<< (QDataStream &, const GLC_Lod &)
 Non-member stream operator.
QDataStream & operator>> (QDataStream &, GLC_Lod &)

Get Functions



double accuracy () const
 Return the accuracy of the LOD.
QVector< GLuint > indexVector () const
 Return The unique index Vector which contains :.
QVector< GLuint > * indexVectorHandle ()
 Return The unique index Vector handle which contains :.
int indexVectorSize () const
 Return the size of the index Vector.
static quint32 chunckID ()
 Return the class Chunk ID.

Detailed Description

GLC_Lod is a Level of detail index and accuracy.

Definition at line 39 of file glc_lod.h.


Constructor & Destructor Documentation

GLC_Lod::GLC_Lod (  ) 

Default Constructor.

Definition at line 34 of file glc_lod.cpp.

GLC_Lod::GLC_Lod ( double  accuracy  ) 

Construct a Lod with the specified accuracy.

Definition at line 44 of file glc_lod.cpp.

GLC_Lod::GLC_Lod ( const GLC_Lod lod  ) 

Copy constructor.

Definition at line 54 of file glc_lod.cpp.

GLC_Lod::~GLC_Lod (  )  [virtual]

Destructor.

Definition at line 78 of file glc_lod.cpp.

References glDeleteBuffers, and m_IboId.


Member Function Documentation

double GLC_Lod::accuracy (  )  const [inline]

Return the accuracy of the LOD.

Definition at line 75 of file glc_lod.h.

quint32 GLC_Lod::chunckID (  )  [static]

Return the class Chunk ID.

Definition at line 91 of file glc_lod.cpp.

References m_ChunkId.

void GLC_Lod::createIBO (  )  [inline]

IBO creation.

Definition at line 124 of file glc_lod.h.

References glGenBuffers.

void GLC_Lod::finishVbo (  )  [inline]

The mesh wich use this lod is finished.

Definition at line 107 of file glc_lod.h.

QVector< GLuint > GLC_Lod::indexVector (  )  const

Return The unique index Vector which contains :.

  • Triangles index
  • Triangles Strips index
  • Triangles Fans index

Definition at line 97 of file glc_lod.cpp.

References glBindBuffer, glMapBuffer, glUnmapBuffer, m_IboId, m_IndexSize, and m_IndexVector.

Referenced by operator<<(), and operator=().

QVector<GLuint>* GLC_Lod::indexVectorHandle (  )  [inline]

Return The unique index Vector handle which contains :.

  • Triangles index
  • Triangles Strips index
  • Triangles Fans index

Definition at line 92 of file glc_lod.h.

Referenced by operator>>().

int GLC_Lod::indexVectorSize (  )  const [inline]

Return the size of the index Vector.

Definition at line 96 of file glc_lod.h.

GLC_Lod & GLC_Lod::operator= ( const GLC_Lod lod  ) 

Overload "=" operator.

Definition at line 65 of file glc_lod.cpp.

References indexVector(), m_Accuracy, m_IboId, m_IndexSize, and m_IndexVector.

void GLC_Lod::setAccuracy ( const double &  accuracy  )  [inline]

Set accuracy of the LOD.

Definition at line 113 of file glc_lod.h.

void GLC_Lod::useIBO (  )  [inline]

Ibo Usage.

Definition at line 133 of file glc_lod.h.

References glBindBuffer.


Friends And Related Function Documentation

QDataStream& operator<< ( QDataStream &  ,
const GLC_Lod  
) [friend]

Non-member stream operator.

Definition at line 120 of file glc_lod.cpp.

QDataStream& operator>> ( QDataStream &  ,
GLC_Lod  
) [friend]

Definition at line 130 of file glc_lod.cpp.


Member Data Documentation

double GLC_Lod::m_Accuracy [private]

The accuracy of the LOD.

Definition at line 144 of file glc_lod.h.

Referenced by operator<<(), operator=(), and operator>>().

quint32 GLC_Lod::m_ChunkId = 0xA708 [static, private]

Class chunk id.

Definition at line 156 of file glc_lod.h.

Referenced by chunckID(), operator<<(), and operator>>().

GLuint GLC_Lod::m_IboId [private]

The IBO ID.

Definition at line 147 of file glc_lod.h.

Referenced by indexVector(), operator=(), and ~GLC_Lod().

int GLC_Lod::m_IndexSize [private]

The Index vector size.

Definition at line 153 of file glc_lod.h.

Referenced by indexVector(), and operator=().

QVector<GLuint> GLC_Lod::m_IndexVector [private]

The Index Vector.

Definition at line 150 of file glc_lod.h.

Referenced by indexVector(), and operator=().


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

SourceForge.net Logo

©2005 Laurent Ribon