proj home

Files   Classes   Functions   Hierarchy  

triangles3Tdisplaymulticolored< T, W > Class Template Reference

Drawing triangles each with a random color, using OpenGL commands. More...

#include <triangles3Tdisplaymulticolored.h>

Inheritance diagram for triangles3Tdisplaymulticolored< T, W >:
Collaboration diagram for triangles3Tdisplaymulticolored< T, W >:

List of all members.

Public Member Functions

 triangles3Tdisplaymulticolored (uintc visize_, point3< uint > const *vi_, point3< W > const *pts_)
 Pass in the geometry to be displayed.

Public Attributes

vector< point3< double > > vcolors
 Each triangle has a unique color.


Detailed Description

template<typename T, typename W>
class triangles3Tdisplaymulticolored< T, W >

Drawing triangles each with a random color, using OpenGL commands.

Definition at line 15 of file triangles3Tdisplaymulticolored.h.


Constructor & Destructor Documentation

template<typename T, typename W>
triangles3Tdisplaymulticolored< T, W >::triangles3Tdisplaymulticolored ( uintc  visize_,
point3< uint > const *  vi_,
point3< W > const *  pts_ 
) [inline]

Pass in the geometry to be displayed.

Definition at line 25 of file triangles3Tdisplaymulticolored.h.

References r, and triangles3Tdisplaymulticolored< T, W >::vcolors.

00030     : triangles3TdisplayCpertriangle<T,W,GLdouble>(visize_,vi_,pts_,0) 
00031     {
00032       random11<double> r;
00033       for (uint i=0; i<visize_; ++i)
00034         vcolors.push_back( point3<double>(r(),r(),r()) );
00035 
00036       triangles3TdisplayCpertriangle<T,W,GLdouble>::colors = & vcolors[0];
00037     } 


Member Data Documentation

template<typename T, typename W>
vector< point3<double> > triangles3Tdisplaymulticolored< T, W >::vcolors


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

Generated on Fri Mar 4 00:50:22 2011 for Chelton Evans Source by  doxygen 1.5.8