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

void Impala::Application::SDash::SurveillanceApp::BuildMonitorPane ( Window wnd,
int  x,
int  y,
int  w,
int  h 
) [inline]

Definition at line 447 of file SurveillanceApp.cpp.

References mCameraTexts, mMonitorPane, MonitorString(), mVideoCameras, mVideoCamerasVideoId, mVideos, Impala::Application::SDash::VideoJpgCamera::Play(), OglGui::Window::ScaleChildren(), OglGui::OglWindow::ScaleTo(), OglGui::StaticText::SetAlign(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::Window::SetForeground(), OglGui::StaticText::SetShadowColor(), OglGui::Window::SetWindowListener(), Impala::Util::Sleep(), Impala::Application::SDash::VIRTUAL_TIME_OFFSET, and OglGui::Window::Window().

Referenced by BuildGUI().

00448     {
00449         Window* pane = new Window(wnd, x, y, w, h);
00450 
00451         for (int i=0; i<3; i++)
00452         {
00453             int vX = i*w/3, vY = 0;
00454             int vW = w/3, vH = h;
00455             int videoId = i;// + NR_OF_CAMERAS_STREET;
00456             int camId = videoId + 1;
00457 
00458             mVideoCameras[i] = new VideoJpgCamera(pane,vX,vY,vW,vH, mVideos[videoId]);
00459             mVideoCameras[i]->Play(VIRTUAL_TIME_OFFSET);
00460             mVideoCameras[i]->SetWindowListener(this);
00461             mVideoCamerasVideoId[i] = videoId;
00462 
00463             mCameraTexts[i] = new StaticText(mVideoCameras[i],58,vH-38,180,20,
00464                                              MonitorString(camId-1),false,true);
00465             mCameraTexts[i]->SetForeground(0xffffff00); // Yellow
00466             mCameraTexts[i]->SetShadowColor(oglBLACK);
00467             mCameraTexts[i]->SetBorderType(-1);
00468             mCameraTexts[i]->SetBorderFillShaded(2);
00469 
00470             mCameraTexts[i]->SetAlign(oglLeftAlign, oglCenterAlign);
00471             Sleep(50);
00472         }
00473         pane->ScaleTo(wnd);
00474         pane->ScaleChildren(0,1);
00475         mMonitorPane = pane;
00476     }

Here is the call graph for this function:


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