Vis::VertexArray< T > Class Template Reference

#include <VisVertexArray.h>

Inherited by Vis::VertexArrayPA, Vis::VertexArrayT2P4, Vis::VertexArrayTCP, Vis::VertexBufferPA, and Vis::VertexBufferTCP.

List of all members.

Public Member Functions

 VertexArray ()
virtual ~VertexArray ()
void addIndex (GLuint i)
void addVertex (const T &v)
virtual void bind ()=0
vector< GLuint > & getIndices ()
int getIndicesSize () const
vector< T > & getVertices ()
int getVerticesSize () const
virtual void render (const int start, const int size)=0
virtual void unbind ()=0


Detailed Description

template<class T>
class Vis::VertexArray< T >

Defines an array of indices and vertices. Manage the OpenGL calls for binding and drawing the vertices.

Constructor & Destructor Documentation

template<class T >
Vis::VertexArray< T >::VertexArray (  )  [inline]

ctor.

template<class T >
virtual Vis::VertexArray< T >::~VertexArray (  )  [inline, virtual]

dtor.


Member Function Documentation

template<class T >
void Vis::VertexArray< T >::addIndex ( GLuint  i  )  [inline]

Add an index to the index array.

Parameters:
i index to add.

template<class T >
void Vis::VertexArray< T >::addVertex ( const T &  v  )  [inline]

Add an Vertex to the vertex array.

Parameters:
v vertex to add.

template<class T >
virtual void Vis::VertexArray< T >::bind (  )  [pure virtual]

template<class T >
vector<GLuint>& Vis::VertexArray< T >::getIndices (  )  [inline]

Return a reference to the index array.

Returns:
reference to the index array.

template<class T >
int Vis::VertexArray< T >::getIndicesSize (  )  const [inline]

Return the size of the index array.

Returns:
size of index array.

template<class T >
vector<T>& Vis::VertexArray< T >::getVertices (  )  [inline]

Return a reference to the vertex array.

Returns:
reference to the vertex array.

template<class T >
int Vis::VertexArray< T >::getVerticesSize (  )  const [inline]

Return the size of the vertex array.

Returns:
size of vertex array.

template<class T >
virtual void Vis::VertexArray< T >::render ( const int  start,
const int  size 
) [pure virtual]

Render the vertices defined in the vertex array.

Parameters:
start start-index in the index array
size size of indices to render.

Implemented in Vis::VertexArrayPA, Vis::VertexArrayT2P4, Vis::VertexArrayTCP, Vis::VertexBufferPA, and Vis::VertexBufferTCP.

template<class T >
virtual void Vis::VertexArray< T >::unbind (  )  [pure virtual]


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

Generated on Mon Jan 26 15:00:42 2009 for FlowVis by  doxygen 1.5.7.1