TriangleSetExt Class Reference

Extension to TriangleSet to carry per-vertex colors. More...

#include <TriangleSetExt.h>

List of all members.

Public Member Functions

void add (TriangleExt *triangle)
 Add copy of triangle to container.

Note:
There is no need to keep Triangle object in memory outside this class.
Parameters:
triangle Pointer to triangle to copy to container.

void add (TriangleSetExt *tset)
 Add copy of triangles to container.

Note:
There is no need to keep Triangle objects in memory outside this class.
Parameters:
tset Pointer to TriangleSet containing source triangles.

size_t count ()
 Return current count of triangle stored in container.

Returns:
Return current count of triangle stored in container.

TriangleExtoperator[] (unsigned index)
 Access triangle using its index.

Parameters:
index Index of triangle - must be in range <0, count()-1>.
Returns:
Return reference to desired triangle.


Detailed Description

Extension to TriangleSet to carry per-vertex colors.

Definition at line 37 of file TriangleSetExt.h.


Member Function Documentation

void TriangleSetExt::add ( TriangleExt triangle  ) 

Add copy of triangle to container.

Note:
There is no need to keep Triangle object in memory outside this class.
Parameters:
triangle Pointer to triangle to copy to container.

void TriangleSetExt::add ( TriangleSetExt tset  ) 

Add copy of triangles to container.

Note:
There is no need to keep Triangle objects in memory outside this class.
Parameters:
tset Pointer to TriangleSet containing source triangles.

size_t TriangleSetExt::count (  ) 

Return current count of triangle stored in container.

Returns:
Return current count of triangle stored in container.

TriangleExt& TriangleSetExt::operator[] ( unsigned  index  ) 

Access triangle using its index.

Parameters:
index Index of triangle - must be in range <0, count()-1>.
Returns:
Return reference to desired triangle.


The documentation for this class was generated from the following file:
Generated on Thu Dec 6 19:33:12 2007 for Radiosity Renderer and Visualizer by  doxygen 1.5.2