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

void Impala::Application::VideoExcel::GridWindow::UpdateGrid (  )  [inline]

Definition at line 84 of file GridWindow.h.

References GetGridColumns(), GetGridRows(), Impala::Application::VideoExcel::TableDataSource::GetNumberOfRows(), Impala::Application::VideoExcel::TableDataSource::GetStartRow(), OglGui::OglWindow::H(), Impala::Application::VideoExcel::TableViewCache::HideViews(), mCache, mGridHeaderHeight, mGridHeight, mGridWidth, mImageColumn, mSource, and Impala::Application::VideoExcel::TableViewCache::ShowView().

Referenced by DisplayFunc(), and UpdateRowsEvent().

00085     {
00086         if (mImageColumn == "")
00087             return;
00088 
00089         mCache->HideViews();
00090 
00091         int startRow = mSource->GetStartRow();
00092         int nx       = GetGridColumns();
00093         int ny       = GetGridRows();
00094         int x        = 0;
00095         int y        = 0;
00096         for (int i=startRow; i<startRow+mSource->GetNumberOfRows(); i++)
00097         {
00098             int px = x * (mGridWidth + 4);
00099             int py = H() - mGridHeaderHeight-mGridHeight-(y * (mGridHeight+4));
00100 
00101             mCache->ShowView(mImageColumn, i, px+2, py+2, mGridWidth-4,
00102                              mGridHeight-4);
00103             if (++x>=nx)
00104             {
00105                 y++;
00106                 x = 0;
00107             }
00108         }
00109     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:37 2011 for ImpalaSrc by  doxygen 1.5.1