proj home

Files   Classes   Functions   Hierarchy  

helixtestspring2plotter.h

Go to the documentation of this file.
00001 #ifndef helixtestsprint2plotter
00002 
00003 
00004 /*
00005 class helixtestspring2plotter : public gobj
00006 { 
00007 public: 
00008 
00009   point3<double> col0;
00010   point3<double> col1;
00011 
00012   doublec * y0;
00013   doublec * y1;
00014 
00015   plotpoints pp0;
00016   plotpoints pp1;
00017 
00018   helixtestspring2plotter
00019   (
00020     double * y0_, 
00021     double * y1_,
00022     uintc N,
00023     doublec len
00024   );
00025 
00026   void draw();
00027   void add();
00028 
00029 };
00030 */
00031 
00032 
00033 /*
00034 
00035 helixtestspring2plotter::helixtestspring2plotter
00036 (
00037   double * y0_,
00038   double * y1_,
00039   uintc N,
00040   doublec len
00041 )
00042   : y0(y0_), y1(y1_), pp0(N,len), pp1(N,len)
00043 {
00044   col0 = point3<double>( DOUBLECOLOR(255,165,0) );
00045   col1 = point3<double>( DOUBLECOLOR(245,255,250) );
00046 }
00047 
00048 
00049 void helixtestspring2plotter::draw()
00050 {
00051   glPushAttrib(GL_CURRENT_BIT);
00052   glPushAttrib(GL_LIGHTING_BIT);
00053  
00054   glColor3f(col0.x,col0.y,col0.z);
00055   pp0.draw();
00056   
00057   glColor3f(col1.x,col1.y,col1.z);
00058   pp1.draw();
00059 
00060   glPopAttrib();
00061   glPopAttrib();
00062 }
00063 
00064 void helixtestspring2plotter::add()
00065 {
00066   pp0.add(*y0);
00067   pp1.add(*y1);
00068 }
00069 
00070 */
00071 
00072 
00073 
00074 
00075 
00076 

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