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

void Impala::Visualization::DirImViewer::HandleViewText ( OGLVIEW *  oglView  )  [inline]

Definition at line 250 of file DirImViewer.h.

References OglGui::Window::GetForeground(), Impala::MakeString(), mFileNames, OglGui::OglWindow::mOglWnd, mRgbDataSrcRaw, mShowDims, and mShowNames.

Referenced by HandleViewSettings().

00251     {
00252         if (!(mShowNames || mShowDims))
00253             return;
00254 
00255         OGLIMAGE*   oglIm = oglView->im;
00256         int         txtX  = oglView->x;
00257         int         txtY  = oglView->y-14;
00258         std::string txt   = "";
00259 
00260         if (mShowNames)
00261         {
00262             int userData1 = (long long)oglView->UserData1;
00263 #ifndef NO_RAW
00264             if (mRgbDataSrcRaw)
00265                 txt = "im " + MakeString(userData1) + " ";
00266             else
00267 #endif
00268                 txt = *mFileNames[userData1] + " ";
00269         }
00270         if (mShowDims)
00271         {
00272             char buf[20];
00273             sprintf(buf, "[%dx%d]", oglIm->w, oglIm->h);
00274             txt += buf;
00275         }
00276         oglSys.StartScissor(mOglWnd,txtX,txtY-4,oglView->w,20);
00277         oglSys.PosColPrintf(mOglWnd,txtX,txtY,GetForeground(),"%s",txt.c_str());
00278         oglSys.EndScissor();
00279     }

Here is the call graph for this function:


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