proj home

Files   Classes   Functions   Hierarchy  

pointgrid3Dbilineardraw.h

Go to the documentation of this file.
00001 #ifndef POINTGRID3DBILINEARDRAW_H
00002 #define POINTGRID3DBILINEARDRAW_H
00003 
00004 #include <cassert>
00005 using namespace std;
00006 
00007 #include <meshpatch.h>
00008 #include <graphmisc.h>
00009 #include <gobj.h>
00010 #include <pointgrid3D.h>
00011 
00012 
00018 class pointgrid3Dbilineardraw : public gobjContainer
00019 {
00020 public:
00021 
00023   uint row;
00025   uint col;
00026 
00028   pointgrid3D const & pg;
00029 
00031   gobjQuadric quadric;
00032 
00034   bool pointsdisplay;
00035 
00037   uint pointsperpatch ;
00038 
00040   meshpatch mp;
00041 
00043   pointgrid3Dbilineardraw(pointgrid3D const & pg_);
00044  
00047   point3<double> const & operator () (uintc r, uintc k) const
00048   {
00049     assert( r<=1);
00050     assert( k<=1);
00051  
00052     assert(row<pg.M);
00053     assert(col<pg.N);
00054 
00055     uint index = row + col*pg.N;
00056     index += k;
00057     index += r*pg.N;
00058   
00059     return pg.pt[index];
00060   }
00061 
00064   void update();
00065 
00066 };
00067 
00068 
00069 #endif
00070 
00071 

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