Definition at line 273 of file ShotDetailSidebar.h. References Impala::Core::VideoSet::SegmentationDocument::CurShot(), Impala::Core::VideoSet::Segmentation::GetEnd(), Impala::Core::Database::RawDataSet::GetFile(), Impala::Core::VideoSet::Segmentation::GetFirstShotVideo(), Impala::Core::VideoSet::Segmentation::GetNrShotsVideo(), Impala::Core::VideoSet::SegmentationDocument::GetSegmentation(), Impala::Core::VideoSet::Segmentation::GetStart(), Impala::Core::VideoSet::Segmentation::GetVideoId(), Impala::Core::VideoSet::SegmentationDocument::GetVideoSet(), mSegDoc, mShotDetailText, and OglGui::TextEdit::SetText(). Referenced by UpdateCurrentShot(). 00274 { 00275 std::ostringstream m; 00276 00277 Core::VideoSet::VideoSet* vidSet = mSegDoc->GetVideoSet(); 00278 Segmentation* segm = mSegDoc->GetSegmentation(); 00279 00280 int curShotId = mSegDoc->CurShot(); 00281 int curVideoId = segm->GetVideoId(curShotId); 00282 int shotsInCurVideo = segm->GetNrShotsVideo(curVideoId); 00283 int start = segm->GetStart(curShotId); 00284 int end = segm->GetEnd(curShotId); 00285 00286 // Ork - showing path and file crashes on my dataset -- temp removed. 00287 //String curVideoPath = vidSet->GetAsPath(curVideoId); 00288 00289 m << "shot with ID: " << curShotId << std::endl; 00290 // assuming all shot id's for one video are consecutive: 00291 m << "is no. " << (curShotId - segm->GetFirstShotVideo(curVideoId)+1) << 00292 " of " << shotsInCurVideo << " shots in the video" << std::endl; 00293 m << "and contains " << (end-start+1) << " frames." 00294 // RvB Added line below for debug purpose 00295 << std::endl <<"[" << vidSet->GetFile(curVideoId) << "]" 00296 << std::endl << std::endl; 00297 //m << " frame ? of " << segm->GetNrFramesVideo(curVideoId) << 00298 // " frames in video" << std::endl; 00299 //m << " shot ? of " << segm->GetNrShots() << " shots in set" << 00300 // std::endl; 00301 //m << " Video " << (curVideoId + 1) << " of " << segm->GetNrVideos()<< 00302 // " videos in set" << std::endl; 00303 //m << "file: " << vidSet->GetFile(curVideoId) << std::endl; 00304 //int posLastSep = curVideoPath.find_last_of("/"); 00305 //m << "path: " << curVideoPath.substr(0, (posLastSep+1)) << std::endl; 00306 00307 mShotDetailText->SetText(m.str()); 00308 }
Here is the call graph for this function:
|