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

void Impala::Application::SDash::AlertWindow::SpotLocations ( const std::vector< int > &  videoTrack,
const std::vector< const std::string *const > &  addressTrack,
const std::vector< int > &  timeTrackInSec 
) [inline]

Definition at line 252 of file AlertWindow.h.

References Impala::MakeString(), mLastLocations, mTargetCamLocation, and OglGui::TextEdit::SetText().

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

00256     {
00257         int trackLength = videoTrack.size();
00258         std::string locationsString;
00259         //locationsString += "Last locations:\n";
00260         int camNr = -1;
00261         for (int i = 0; i < trackLength; i++)
00262         {
00263             int hours = timeTrackInSec[i] / 3600;
00264             int minutes = (timeTrackInSec[i] % 3600) / 60;
00265             camNr = 1 + videoTrack[i];
00266             if (i > 0)
00267                 locationsString += "\n";
00268             // SK: quick 'n dirty
00269             locationsString += MakeString(hours) + ":" + MakeString(minutes) + " [cam " + MakeString(camNr) + "] " + *(addressTrack[i]);
00270         }
00271         mLastLocations->SetText(locationsString);
00272 
00273         mTargetCamLocation = camNr; // last location of the track
00274     }

Here is the call graph for this function:


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