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

void Impala::Visualization::DirImViewer::HandleViewZoom ( OGLVIEW *  oglView  )  [inline]

Definition at line 277 of file DirImViewer.h.

References mMaxZoom.

Referenced by HandleViewSettings().

00278     {
00279         OGLIMAGE*   oglIm = oglView->im;
00280         float       zoomX, zoomY;
00281 
00282         if (oglIm->w >= oglIm->h)
00283             zoomY = zoomX = (oglView->w)/(float)oglIm->w;
00284         else
00285             zoomX = zoomY = (oglView->h)/(float)oglIm->h;
00286         if (zoomX > mMaxZoom)
00287             zoomX = zoomY = mMaxZoom;
00288         viewSys.SetZoom(oglView, zoomX, zoomY);
00289     }


Generated on Thu Jan 13 09:24:38 2011 for ImpalaSrc by  doxygen 1.5.1