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

virtual void Impala::Application::SDash::IdentificationPane::WindowMouseEvent ( Window src,
int  msg,
int  but,
int  state,
int  x,
int  y,
void *  userData 
) [inline, virtual]

Reimplemented from OglGui::WindowListener.

Definition at line 282 of file IdentificationPane.h.

References OglGui::OglWindow::GetOGLWND(), OglGui::AlertTimeLine::GetTimeUnits(), mVideos, mViewInfoText, and OglGui::StaticText::SetText().

00284     {
00285         if (msg == oglMouseLeave)
00286             mViewInfoText->SetText("");
00287         if (msg == oglMouseMove && !state)
00288         {
00289             OGLVIEW* oglView = viewSys.FindView(src->GetOGLWND(), x, y);
00290             mViewInfoText->SetText("");
00291             if (oglView)
00292             {
00293                 int videoId = (int)(long long) oglView->UserData1;
00294                 int frameNr = (int)(long long) oglView->UserData2;
00295                 //int secs = 14*3600 + 14*60 + 40 + frameNr * mTimesPerFrame[videoId];
00296                 int secs = 14*3600 + 14*60 + 40 + frameNr * mVideos[videoId].GetTimePerFrame();
00297                 int h, m, s;
00298                 char buf[100];
00299 
00300                 OglGui::AlertTimeLine::GetTimeUnits(secs,h,m,s);
00301                 sprintf(buf, "Cam: %d Time: %02d:%02d:%02d", videoId+1, h, m, s);
00302                 mViewInfoText->SetText(buf);
00303             }
00304         }
00305     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:04 2011 for ImpalaSrc by  doxygen 1.5.1