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

void Impala::Visualization::DirImViewer::HandleDocDimensions ( bool  resizing = false,
bool  reset = false 
) [inline]

Definition at line 225 of file DirImViewer.h.

References OglGui::OglWindow::H(), mCellH, mCellW, OglGui::DocDimensions::mDocX, OglGui::DocDimensions::mDocY, mExtH, mFixedCellDims, mNrOfImOnRow, mOldStartIm, mShowNames, NrOfFiles(), NrRows(), OglGui::DocDimensions::SetDocDimensions(), and OglGui::OglWindow::W().

Referenced by OpenDir(), and ReshapeFunc().

00226     {
00227         if (!mFixedCellDims)
00228         {
00229             mCellW = W() / mNrOfImOnRow;
00230             mCellH = mCellW + (mShowNames ? mExtH : 0);
00231         }
00232         else if ((mNrOfImOnRow = W() / mCellW)<1)
00233             mNrOfImOnRow = 1;
00234 
00235         int docH = (NrOfFiles() / mNrOfImOnRow) * mCellH;
00236 
00237         if (resizing && mOldStartIm != -1)
00238         {
00239             int row = mOldStartIm / mNrOfImOnRow;
00240             mDocY = H() - (NrRows() - row) * mCellH;
00241         }
00242         if (mDocY < (-docH+H()))
00243             mDocY = -docH+H();
00244         if (reset)
00245             SetDocDimensions(0,-docH+H(),W(), docH);
00246         else
00247             SetDocDimensions(mDocX, mDocY, W(), docH);
00248     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:43:16 2010 for ImpalaSrc by  doxygen 1.5.1