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

void Impala::Application::MediaTable::GridWindow::UpdateZoomView ( int  row,
int  x,
int  y 
) [inline]

Definition at line 334 of file GridWindow.h.

References GetRowForXY(), Impala::Application::MediaTable::TableDataViewController::GetTableDataView(), OglGui::OglWindow::H(), mZoomView, mZoomViewFollowMouse, mZoomViewSize, mZoomViewTargetWindow, SetZoomView(), and OglGui::OglWindow::W().

Referenced by MouseFunc().

00335     {
00336         // Richard:
00337         //  what I want to do here is to translate/scale the coordinates from this WindowTable view
00338         // to the window I designated as an overlay window in mainMediaTable, there ought to be a nice
00339         // OGL function which handles this coordinate translation somewhere.
00340 
00341         // translation is now set manually for this layout:
00342         int transX = 0, transY = 140;
00343 
00344         int zx=x + transX;
00345         int zy=y + transY;
00346         if (zy + mZoomViewSize > mZoomViewTargetWindow->H())
00347             zy = mZoomViewTargetWindow->H() - mZoomViewSize;
00348         if (zx + mZoomViewSize > mZoomViewTargetWindow->W())
00349             zx = mZoomViewTargetWindow->W() - mZoomViewSize;
00350 
00351         if (row == -1)
00352             row = GetRowForXY(x, y);
00353         if (mZoomViewFollowMouse)
00354             viewSys.SetDimensions(mZoomView, zx, zy, mZoomViewSize, mZoomViewSize);
00355         if (mZoomView->UserData1 != (void *) row)
00356         {
00357                         if(!GetTableDataView()->OutOfBounds(row))
00358                     SetZoomView(row);
00359         }
00360     }

Here is the call graph for this function:


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