Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void Impala::Visualization::Plot::Plot::TransformMatrices ( double  w,
double  h 
) [inline]

Definition at line 222 of file Plot.h.

References mCenter, mRange, mUserPan, and mUserZoom.

Referenced by DisplayFunc().

00223     {
00224         //******NOTE: this implementation is for 2D only*******//
00225         glMatrixMode(GL_PROJECTION);
00226         glPushMatrix();
00227         glLoadIdentity();
00228 
00229         double range[2];
00230         double center[2];
00231         for(int i=0 ; i<2 ; ++i)
00232         {
00233             center[i] = mCenter[i] - mUserPan[i];
00234             range[i] = 0.5*mRange[i] / mUserZoom[i];
00235         }
00236 
00237         glOrtho(center[0] - range[0],
00238                 center[0] + range[0],
00239                 center[1] - range[1],
00240                 center[1] + range[1],
00241                 -1, 1);
00242 
00243         glMatrixMode(GL_MODELVIEW);
00244         glPushMatrix();
00245     }


Generated on Fri Mar 19 11:52:52 2010 for ImpalaSrc by  doxygen 1.5.1