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

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

Definition at line 281 of file DirImViewer.h.

References mMaxZoom.

Referenced by HandleViewSettings().

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


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