Reimplemented from OglGui::ButtonListener. Definition at line 737 of file SurveillanceApp.cpp. References Impala::Application::SDash::CameraEventButton::CameraId(), Impala::Application::SDash::SurveillanceMap::ClearTrack(), Impala::Application::SDash::CameraEventButton::FrameNr(), OglGui::RadioGroup::GetButton(), OglGui::AlertTimeLine::GetCurrentTime(), OglGui::WindowView2D::GetOglView(), OglGui::AlertTimeLine::GetStartTime(), GetTrack(), OglGui::OglWindow::GetVisible(), mAllCamerasButton, mAllCamerasPane, mCameraEventListPane, mExitButton, mHideTrackButton, mIdPane, mMonitorPane, mShowTrackButton, mSimilarsButton, mSubjectWindow, mSurveillanceMap, mTimeLine, mVideoPlayerCamText, OglGui::AlertTimeLine::OlderThanButton(), Impala::Application::SDash::IdentificationPane::SearchSimilars(), Impala::Application::SDash::CameraEventButton::Seconds(), OglGui::StaticText::SetText(), Impala::Application::SDash::SurveillanceMap::SetTrack(), OglGui::OglWindow::SetVisible(), Impala::Visualization::VideoJpgPlayer::Stop(), Impala::Application::SDash::TIMES_PER_FRAME, Impala::Application::SDash::RoiInfo::videoId, VideoInspect(), and Impala::Application::SDash::CameraEventListPane::WhichCameraRadioGroup(). 00738 { 00739 if (src == mExitButton) 00740 { 00741 delete this; 00742 exit(0); 00743 } 00744 if (src == mSimilarsButton) 00745 { 00746 RoiInfo* roiInfo = (RoiInfo*) mSubjectWindow->GetOglView()->UserData1; 00747 if (!roiInfo) 00748 return; 00749 00750 long secsPassed = 00751 mTimeLine->GetCurrentTime() - mTimeLine->GetStartTime(); 00752 int maxFrameNr = (int)(secsPassed/TIMES_PER_FRAME[roiInfo->videoId]); 00753 mIdPane->SearchSimilars(*roiInfo, maxFrameNr); 00754 /* 00755 int userData[2]; 00756 userData[0] = (int) roiInfo; 00757 userData[1] = maxFrameNr; 00758 00759 mIdPane->ButtonSelectionEvent(0, (int) userData); 00760 */ 00761 } 00762 else if (src == mShowTrackButton) 00763 { 00764 std::vector<int> trackOfVideoIds; 00765 std::vector<int> timesInSec; 00766 GetTrack(trackOfVideoIds, timesInSec); 00767 mSurveillanceMap->SetTrack(trackOfVideoIds, timesInSec); 00768 } 00769 else if (src == mHideTrackButton) 00770 { 00771 mSurveillanceMap->ClearTrack(); 00772 } 00773 #ifdef ALL_MONITORS 00774 else if (src == mAllCamerasButton) 00775 { 00776 bool visible = mAllCamerasPane->GetVisible(); 00777 mMonitorPane->SetVisible(visible); 00778 mAllCamerasPane->SetVisible(!visible); 00779 mAllCamerasButton->SetText(visible ? "Monitor All" : "Monitor 3"); 00780 } 00781 #endif 00782 else if (src == mTimeLine->OlderThanButton()) 00783 { 00784 RadioGroup* rG = mCameraEventListPane->WhichCameraRadioGroup(); 00785 Button* btn = rG->GetButton(15); 00786 rG->ButtonSelectionEvent(btn, (void*)15); 00787 } 00788 else 00789 { 00790 // RvB: No need to pass videoPlayer around as we have mVideoPlayer 00791 VideoJpgPlayer* videoPlayer = (VideoJpgPlayer*) userData; 00792 CameraEventButton* eventButton = (CameraEventButton*) src; 00793 00794 if (src) 00795 { 00796 int camId = eventButton->CameraId(); 00797 int videoId = camId - 1; 00798 long startTime = mTimeLine->GetStartTime(); 00799 long elapsedTime = eventButton->Seconds()-startTime; 00800 VideoInspect(camId, videoId, elapsedTime, eventButton->FrameNr()); 00801 } 00802 else 00803 { 00804 videoPlayer->Stop(); 00805 videoPlayer->SetVisible(false); 00806 mVideoPlayerCamText->SetText(""); 00807 } 00808 } 00809 }
Here is the call graph for this function:
|