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

virtual void Impala::Application::IDash::ScreenPlay::PlayFile ( int  videoID  )  [inline, virtual]

Definition at line 64 of file ScreenPlayX.h.

References Impala::FileNameTail(), Impala::Core::Database::RawDataSet::GetFile(), Impala::Core::VideoSet::SegmentationDocument::GetSegmentation(), Impala::Core::VideoSet::Segmentation::GetVideoSet(), ILOG_DEBUG, mNfiSixView, mSegDoc, mVideoId, mVideoLabel, Impala::Application::IDash::NfiSixView::OpenVideo(), Impala::Application::IDash::NfiSixView::Play(), Impala::Application::IDash::NfiSixView::Rewind(), and Impala::Application::IDash::NfiSixView::SetVideo().

Referenced by HandleActivate().

00065     {
00066         ILOG_DEBUG("PlayFileEvent: video ID = " << videoID);
00067         if (videoID != mVideoId)
00068         {
00069             mVideoId = videoID;
00070             VideoSet* vidSet = mSegDoc->GetSegmentation()->GetVideoSet();
00071             String videoName = FileNameTail(vidSet->GetFile(videoID));
00072 
00073             mNfiSixView->SetVideo(vidSet,videoID);
00074 
00075             std::ostringstream o;
00076             o << "Video: " << videoID << " [" << videoName << "]";
00077             if (!mNfiSixView->OpenVideo())
00078             {
00079                 o << " can not be played in 6 parts";
00080                 mVideoId = -1;
00081             }
00082             mVideoLabel->SetText(o.str());
00083         }
00084         if (mVideoId != -1)
00085         {
00086             mNfiSixView->Rewind();
00087             mNfiSixView->Play();
00088         }
00089     }

Here is the call graph for this function:


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