proj home

Files   Classes   Functions   Hierarchy  

triangles3Tdisplaymulticolored.h

Go to the documentation of this file.
00001 #ifndef TRIANGLES3TDISPLAYMULTICOLORED_H
00002 #define TRIANGLES3TDISPLAYMULTICOLORED_H
00003 
00004 #include <vector>
00005 using namespace std;
00006 
00007 #include <triangles3Tdisplay.h>
00008 #include <random.h>
00009 
00014 template< typename T, typename W >
00015 class triangles3Tdisplaymulticolored : 
00016   public triangles3TdisplayCpertriangle<T,W,GLdouble>
00017 {
00018 public:
00019 
00021   vector< point3<double> > vcolors;
00022 
00024   triangles3Tdisplaymulticolored
00025   (
00026     uintc visize_, 
00027     point3<uint> const * vi_,
00028     point3<W> const * pts_
00029   )
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     } 
00038 
00039 };
00040 
00041 
00042 
00043 
00044 #endif
00045 
00046 

Generated on Fri Mar 4 00:49:27 2011 for Chelton Evans Source by  doxygen 1.5.8