Reimplemented from OglGui::Window. Definition at line 95 of file VideoNav.h. References OglGui::Window::DisplayFunc(), Impala::Core::Stream::RgbDataSrc::FrameNr(), Impala::Core::Stream::RgbDataSrc::GetHash(), Impala::Core::Stream::RgbDataSrc::LastFrame(), mDisplayFrameHash, mLastFrame, mLastHash, mMappedFramePos, OglGui::OglWindow::mOglWnd, and mSrc. 00096 { 00097 Window::DisplayFunc(); 00098 00099 if (!mSrc) 00100 return; 00101 00102 OGC oldOGC; 00103 OGCSave(&oldOGC); 00104 00105 SetSolidLineColor(oglBLACK); 00106 SetLineWidth(1); 00107 // on screen, the "interior span" of a Rectangle is width-1 00108 // also, the upper right corner pixel is not drawn 00109 int width = mOglWnd->width; 00110 DrawRectangle(0, 0, width-1, 25 - 2); // 2 is to separate 00111 if (mDisplayFrameHash) 00112 { 00113 if (mSrc->FrameNr() != mLastFrame) 00114 mLastHash = mSrc->GetHash(); 00115 String msg = "hash: [" + mLastHash + "]"; 00116 oglSys.PosColPrintf(mOglWnd, 4, 27, oglGREEN, "%s",msg.c_str()); 00117 } 00118 oglSys.PosColPrintf(mOglWnd, 20, 7, oglGREEN, "at frame %d of %d", 00119 mSrc->FrameNr(), mSrc->LastFrame()); 00120 SetSolidLineColor(oglRED); 00121 mMappedFramePos = ((double)mSrc->FrameNr()/mSrc->LastFrame())*(width-3); 00122 DrawRectangle(1 + mMappedFramePos, 1, 1, 25 - 4); 00123 00124 OGCRestore(&oldOGC); 00125 }
Here is the call graph for this function:
|