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

TitledWindow* Impala::Application::SDash::SurveillanceApp::BuildMonitorAll ( Window wnd,
int  x,
int  y,
int  w,
int  h 
) [inline]

Definition at line 486 of file SurveillanceApp.cpp.

References OglGui::OglWindow::H(), mAllCamerasVideos, MonitorString(), mVideos, Impala::Application::SDash::VideoJpgCamera::Play(), OglGui::Window::ScaleChildren(), OglGui::StaticText::SetAlign(), OglGui::TitledWindow::SetContentPane(), OglGui::Window::SetForeground(), OglGui::StaticText::SetShadowColor(), OglGui::Window::SetWindowListener(), Impala::Util::Sleep(), Impala::Application::SDash::VIRTUAL_TIME_OFFSET, OglGui::OglWindow::W(), and OglGui::Window::Window().

Referenced by BuildGUI().

00487     {
00488         TitledWindow*   titleWnd = new TitledWindow(wnd,x,y,w,h,"Monitor all");
00489         Window*         pane  = new Window(titleWnd,0,0,200,200);
00490 
00491         titleWnd->SetContentPane(pane);
00492 
00493         w = pane->W(), h = pane->H();
00494         for (int i=0;i<12;i++)
00495         {
00496             int vX = (i%6)*w/6, vY = (1-i/6)*h/2;
00497             int vW = w/6, vH = h/2;
00498             int camId = i + 1;
00499             int videoId = i;
00500 
00501             VideoJpgCamera* vc =
00502                 new VideoJpgCamera(pane,vX,vY,vW,vH, mVideos[videoId]);
00503 
00504             mAllCamerasVideos[i] = vc;
00505 
00506             vc->Play(VIRTUAL_TIME_OFFSET);
00507             vc->SetWindowListener(this,(void*)(i+1));
00508 
00509             StaticText* camTxt =
00510                 new StaticText(vc,4,4,200,20,MonitorString(i),false,true);
00511             //camTxt->SetForeground(oglWHITE);
00512             camTxt->SetForeground(0xffffff00); // Yellow
00513             camTxt->SetShadowColor(oglBLACK);
00514             camTxt->SetAlign(oglLeftAlign, oglCenterAlign);
00515             Sleep(10);
00516         }
00517         pane->ScaleChildren();
00518         return titleWnd;
00519     }

Here is the call graph for this function:


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