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

void Impala::Application::SDash::SurveillanceMap::SetTrack ( std::vector< int >  videoIds,
std::vector< int >  timesInSec 
) [inline]

Definition at line 261 of file SurveillanceMap.h.

References ClearTrack(), mLabels, mLocations, mShowTrack, mTrackSize, mTrackVideoIds, and OglGui::OglWindow::UpdateScene().

Referenced by Impala::Application::SDash::SurveillanceApp::ButtonSelectionEvent(), and Impala::Application::SDash::SurveillanceApp::SubmitButtonListener::ButtonSelectionEvent().

00262     {
00263         ClearTrack();
00264 
00265         mTrackSize = videoIds.size();
00266         mTrackVideoIds = videoIds;
00267 
00268         for (int i = 0; i < mTrackSize; i++)
00269         {
00270             int time0 = clock();
00271 
00272             int hours = timesInSec[i] / 3600;
00273             int remainingSec = timesInSec[i] % 3600;
00274             int minutes = remainingSec / 60;
00275             int sec = remainingSec % 60;
00276 
00277             char buf[100];
00278             sprintf(buf, "%02d:%02d:%02d", hours, minutes, sec);
00279 
00280             std::ostrstream fullDescr;
00281             //fullDescr << hours << ':' << minutes << ':' << sec;
00282             fullDescr << buf;
00283             fullDescr << ' ' << mLocations[videoIds[i]] << std::ends;
00284             std::string message = std::string(fullDescr.str());
00285 
00286             mLabels[videoIds[i]]->SetText(message);
00287             mLabels[videoIds[i]]->SetVisible(true);
00288 
00289             std::cout << (clock() - time0) / CLOCKS_PER_SEC << " sec.s for setting track" << std::endl;
00290         }
00291 
00292         mShowTrack = mTrackSize > 0;
00293 
00294         UpdateScene(); // refresh window
00295     }

Here is the call graph for this function:


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