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

void Impala::Application::MediaTable::GridWindow::SetZoomView ( int  row  )  [inline]

Definition at line 389 of file GridWindow.h.

References Impala::Application::MediaTable::TableDataView::GetSortedQuid(), Impala::Application::MediaTable::TableDataViewController::GetTableDataView(), Impala::Application::MediaTable::TableViewCache::GetViewFromCache(), ILOG_DEBUG, mCache, mImageColumn, mShowZoomView, and mZoomView.

Referenced by UpdateZoomView().

00390     {
00391         if (!mCache || !mShowZoomView)
00392             return;
00393 
00394                 unsigned long long quid = GetTableDataView()->GetSortedQuid(mImageColumn, row);
00395         OGLVIEW* v = mCache->GetViewFromCache(quid);
00396                 if (!v || v->UserData2 == (void*)2 || v->im == 0) { // image not currently in cache?
00397                         ILOG_DEBUG("Could not find view " << quid << " (row: " << row << ") in cache");
00398                         return;
00399                 }
00400         OGLIMAGE* im = v->im;
00401         viewSys.SetImage(mZoomView, im);
00402 
00403         float zoom = (mZoomView->h)/(float)im->h;
00404         viewSys.SetZoom(mZoomView, zoom, zoom);
00405     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:42:46 2010 for ImpalaSrc by  doxygen 1.5.1