27 #ifndef GLVIEWER_GRID_H 
   28 #define GLVIEWER_GRID_H 
   37 #include <OpenGL/gl.h> 
   38 #include <OpenGL/glu.h> 
   45 #pragma warning( disable:4251 ) 
   67                  GLfloat winW, GLfloat winH,
 
   68                  GLfloat xSize, GLfloat ySize,
 
   69                  GLfloat xPan, GLfloat yPan,
 
   70                  GLfloat xScale, GLfloat yScale );
 
   77   void                   setGridColor( GLfloat r, GLfloat g, GLfloat b );
 
   79   void                   setAxisColor( GLfloat r, GLfloat g, GLfloat b );
 
   80   void                   setGridWidth( 
float );
 
   82   void                   setCenterRadius( 
int );
 
   85   void                   setSize( 
float xs, 
float ys );
 
   87   void                   setPan( 
float xp, 
float yp );
 
   89   bool                   setZoom( 
float zoom );
 
   91   void                   setResize( 
float winW, 
float winH, 
float Zoom );
 
   93   void                   getSize( 
float&, 
float& ) 
const;
 
   94   void                   getPan( 
float&, 
float& ) 
const;
 
   95   void                   getScale( 
float&, 
float& ) 
const;
 
   98   void                   setScaleFactor( 
int );
 
  106   GLfloat                myGridColor[3];
 
  107   GLfloat                myAxisColor[3];
 
  126 #pragma warning ( default:4251 )