Definition at line 261 of file SurveillanceApp.cpp. References BuildGUI(), BuildSecondScreenGUI(), OglGui::OglWindow::GetOGLWND(), Impala::Application::SDash::gRoiPath, mApplicationEnding, Impala::Application::SDash::MAX_FRAMES, mCamEventSchedule, mCamEventSchedulePosition, mDetectedPersons, mInspectVideoId, mMonitorSelector, mSimilarPersons, mSurveillanceMap, mVideos, OglGui::NoHeight, OglGui::NoWidth, Impala::Application::SDash::NR_OF_CAMERAS_STREET, Impala::Application::SDash::NR_OF_POLICEMEN, Impala::Application::SDash::POLICE_POSITIONS, Impala::Application::SDash::POLICE_TEXTS, Impala::Application::SDash::ROI_CORR_FILE, Impala::Application::SDash::ROI_INFO_FILE, ScheduleCamEvents(), OglGui::OglWindow::SetBackground(), Impala::Application::SDash::SurveillanceMap::SetSurveillanceMapListener(), SetupVideoData(), OglGui::OglWindow::SetVisible(), OglGui::Window::SetWindowListener(), OglGui::OglWindow::Start(), and OglGui::OglWindow::Valid(). 00261 : Window(0, 0, width, height) 00262 { 00263 SetupVideoData(mVideos); 00264 00265 const int nrOfVideosToCollectRoisFor = NR_OF_CAMERAS_STREET; 00266 const std::string roiFileName = gRoiPath + ROI_INFO_FILE; 00267 //const int maxMinutes = 32;// 32 minutes of roi's for 30 minutes of video 00268 00269 mDetectedPersons = 00270 new RegionsOfInterestInfo(roiFileName,NR_OF_CAMERAS_STREET,MAX_FRAMES,true); 00271 00272 mSimilarPersons = 00273 new RegionsOfInterestCorrelation(gRoiPath + ROI_CORR_FILE, *mDetectedPersons); 00274 00275 ScheduleCamEvents(mCamEventSchedule); 00276 00277 GetOGLWND()->topTitle = 00278 "MultimediaN - Surveillance Dashboard"; 00279 00280 mInspectVideoId = 0; 00281 //mMaxVideoFrame = 4500; 00282 00283 SetBackground(oglGUI_BG); 00284 BuildSecondScreenGUI(); 00285 BuildGUI(width, height); 00286 00287 mMonitorSelector = new MonitorSelector(mSurveillanceMap,120,40,3); 00288 mMonitorSelector->SetVisible(false); 00289 00290 mSurveillanceMap->SetSurveillanceMapListener(this); 00291 mSurveillanceMap->SetWindowListener(this); 00292 00293 for (int i = 0; i < NR_OF_POLICEMEN; i++) 00294 { 00295 PoliceMan* policeMan = 00296 new PoliceMan(mSurveillanceMap, POLICE_POSITIONS[i*3], 00297 POLICE_POSITIONS[i*3+1],20,40, 00298 POLICE_TEXTS[i], POLICE_POSITIONS[i*3+2] ? oglGREEN : 0xffff8080); 00299 //POLICE_TEXTS[i], POLICE_POSITIONS[i*3+2] ? oglGREEN : oglGREY); 00300 policeMan->ScaleTo(mSurveillanceMap,NoHeight|NoWidth); 00301 policeMan->SetPoliceManListener(this,(void*)i); 00302 } 00303 00305 // Just for fun: MultiMedian logos in lower right corner 00306 // When pressed shows the multimedian screensaver animation 00307 // drawn transparently over the entire interface 00308 // When running clicking the mouse anywhere hides the animation 00309 // Clicking the logos toggles the animation visibility 00310 new LogoAnimation(this, width, height); 00311 00312 mCamEventSchedulePosition = mCamEventSchedule.begin(); 00313 00314 mApplicationEnding = 00315 new ApplicationEnding(this, "End of demo. Surveillance Dashboard restarting in:"); 00316 00317 if (Valid()) 00318 Start(); // start OGL 00319 }
Here is the call graph for this function:
|