CIvfNormalList Class Reference

#include <ivf/IvfNormalList.h>

Inheritance diagram for CIvfNormalList:

CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Member Functions

 CIvfNormalList ()
virtual ~CIvfNormalList ()
 IvfClassInfo ("CIvfNormalList", CIvfBase)
void add (double x, double y, double z)
void clear ()
void getNormal (int idx, double &x, double &y, double &z)
int getSize ()
GLsizei getStride ()
GLenum getDataType ()
void * getData ()

Protected Member Functions

double getComp (int idx)
void add (double comp)

Detailed Description

Normal list class

Maintains a list of normals for use with the CIvfVertexElements class. The list is initially 1024 elements and the size is doubled if exceeding 1024.

Author:
Jonas Lindemann

Definition at line 43 of file IvfNormalList.h.


Constructor & Destructor Documentation

CIvfNormalList::CIvfNormalList  ) 
 

CIvfNormalList constructor

virtual CIvfNormalList::~CIvfNormalList  )  [virtual]
 

CIvfNormalList destructor


Member Function Documentation

void CIvfNormalList::add double  x,
double  y,
double  z
 

Add a normal to the list

void CIvfNormalList::clear  ) 
 

Clear normal list

void* CIvfNormalList::getData  ) 
 

Return the pointer of the array

GLenum CIvfNormalList::getDataType  ) 
 

Returns the array data type in this case GL_FLOAT

void CIvfNormalList::getNormal int  idx,
double &  x,
double &  y,
double &  z
 

Return normal at position idx

int CIvfNormalList::getSize  ) 
 

Return the number of normals in the list

GLsizei CIvfNormalList::getStride  ) 
 

Return the array stride in this case 3


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:54 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO