CIvfVertexList Class Reference

#include <ivf/IvfVertexList.h>

Inheritance diagram for CIvfVertexList:

CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Member Functions

 CIvfVertexList ()
virtual ~CIvfVertexList ()
 IvfClassInfo ("CIvfVertexList", CIvfBase)
void add (double x, double y, double z)
void setVertex (int idx, double x, double y, double z)
void getVertex (int idx, double &x, double &y, double &z)
CIvfVec3dgetVertex (int idx)
void setSize (int size)
int getSize ()
void * getData ()
GLenum getDataType ()
GLsizei getStride ()
GLint getCompSize ()

Protected Member Functions

void setComp (int idx, double value)
double getComp (int idx)
void add (double comp)

Detailed Description

Vertex list class

Maintains a list of vertex coordinates 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 44 of file IvfVertexList.h.


Constructor & Destructor Documentation

CIvfVertexList::CIvfVertexList  ) 
 

CIvfVertexList constructor

virtual CIvfVertexList::~CIvfVertexList  )  [virtual]
 

CIvfVertexList destructor


Member Function Documentation

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

Add vertex coordinate

GLint CIvfVertexList::getCompSize  ) 
 

Return the number of components in the list, in this case 3

void* CIvfVertexList::getData  ) 
 

Returns pointer to array

GLenum CIvfVertexList::getDataType  ) 
 

Return datatype of array, in this case GL_FLOAT

int CIvfVertexList::getSize  ) 
 

Return size of vertex list

GLsizei CIvfVertexList::getStride  ) 
 

Return array stride, in this case 3*sizeof(GLfloat)

CIvfVec3d& CIvfVertexList::getVertex int  idx  ) 
 

Get specified vertex coordinate

param idx should be between 0 to getSize()-1

void CIvfVertexList::getVertex int  idx,
double &  x,
double &  y,
double &  z
 

Get specified vertex coordinate

param idx should be between 0 to getSize()-1

void CIvfVertexList::setSize int  size  ) 
 

Set size of vertex list

void CIvfVertexList::setVertex int  idx,
double  x,
double  y,
double  z
 

Set specified vertex coordinate

param idx should be between 0 to getSize()-1


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