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

void Impala::Application::VideoExcel::TableViewCache::Init ( OglGui::Window table,
TableDataSource source 
) [inline, private]

Definition at line 188 of file TableViewCache.h.

References Impala::Application::VideoExcel::ImageCache::GetInstance(), OglGui::OglWindow::GetOGLWND(), ILOG_DEBUG, ILOG_ERROR, mCacheSize, mImageCache, mLRU, mSource, mTable, mViews, and SetViewUserData().

Referenced by TableViewCache().

00189     {
00190         mTable      = table;
00191         mSource     = source;
00192         mCacheSize  = 400;
00193         ILOG_DEBUG("Init(" << mCacheSize << " items)");
00194 
00195         mImageCache = ImageCache::GetInstance();
00196         if (!mImageCache)
00197         {
00198             ILOG_ERROR("Could not retrieve image cache, segfault in a few " <<
00199                        "moments, please stand by.");
00200         }
00201 
00202         for (int i=0; i<mCacheSize; i++)
00203         {
00204             OGLVIEW* view = viewSys.View2D(mTable->GetOGLWND(),0,0,0,128,128);
00205             viewSys.SetTags(view, FlexViewTags);
00206             int clearTags = visibleTag|showBorderTag|showBgTag|selectableTag;
00207             viewSys.ClearTags(view, clearTags);
00208             viewSys.SetColor(view, OGL_BG, oglTrLIGHTGREY);
00209             SetViewUserData(view,-1, 0);
00210             mViews.push_back(view);
00211             mLRU.push_back(i);
00212         }
00213     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:54:34 2010 for ImpalaSrc by  doxygen 1.5.1