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

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

Definition at line 281 of file ImageSetIdxGrid.h.

References mCellH, mCellW, and mExtH.

Referenced by HandleViewSettings().

00282     {
00283         OGLIMAGE*   oglIm = oglView->im;
00284         float       zoomX = 1, zoomY = 1;
00285 
00286         if (oglIm->w >= oglIm->h)
00287             zoomY = zoomX = (mCellW-8)/(float)oglIm->w;
00288         else if (oglIm->w<oglIm->h)
00289             zoomX = zoomY = (mCellH-(8+mExtH))/(float)oglIm->h;
00290         if (zoomX > 2) // Refuse zooming more than 2
00291             zoomX = zoomY = 2;
00292         viewSys.SetZoom(oglView, zoomX, zoomY);
00293     }


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