Definition at line 246 of file DirImViewer.h. References OglGui::Window::GetForeground(), Impala::MakeString(), mFileNames, OglGui::OglWindow::mOglWnd, mRgbDataSrc, mShowDims, and mShowNames. Referenced by HandleViewSettings(). 00247 { 00248 if (!(mShowNames || mShowDims)) 00249 return; 00250 00251 OGLIMAGE* oglIm = oglView->im; 00252 int txtX = oglView->x; 00253 int txtY = oglView->y-14; 00254 std::string txt = ""; 00255 00256 if (mShowNames) 00257 { 00258 int userData1 = (long long)oglView->UserData1; 00259 #ifndef NO_RAW 00260 if (mRgbDataSrc) 00261 txt = "im " + MakeString(userData1) + " "; 00262 else 00263 #endif 00264 txt = *mFileNames[userData1] + " "; 00265 } 00266 if (mShowDims) 00267 { 00268 char buf[20]; 00269 sprintf(buf, "[%dx%d]", oglIm->w, oglIm->h); 00270 txt += buf; 00271 } 00272 oglSys.StartScissor(mOglWnd,txtX,txtY-4,oglView->w,20); 00273 oglSys.PosColPrintf(mOglWnd,txtX,txtY,GetForeground(),"%s",txt.c_str()); 00274 oglSys.EndScissor(); 00275 }
Here is the call graph for this function: ![]()
|