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

virtual int Impala::Application::MediaTable::TableWindow::GetRowHeight ( int  row  )  [inline, virtual]

Definition at line 515 of file TableWindow.h.

References mDefaultRowHeight, mDefaultZoomRowHeight, and mZoomRow.

Referenced by DisplayFunc(), GetRowForY(), SetNumberOfRowsInPixels(), and UpdateRows().

00516     {
00517         if (mZoomRow > -1)
00518         {
00519             int dist = abs((row) - mZoomRow);
00520             if (dist > 5) return mDefaultRowHeight;
00521             double div;
00522             if (dist == 0) div = 1.0;
00523             if (dist == 1) div = 0.45;
00524             if (dist == 2) div = 0.25;
00525             if (dist == 3) div = 0.15;
00526             if (dist == 4) div = 0.1;
00527             if (dist == 5) div = 0.05;
00528             return (int)(mDefaultZoomRowHeight*div+mDefaultRowHeight*(1.0-div));
00529         }
00530         return mDefaultRowHeight;
00531     }


Generated on Thu Jan 13 09:15:38 2011 for ImpalaSrc by  doxygen 1.5.1