Definition at line 192 of file ShotDetailSidebar.h. References Impala::Core::VideoSet::SegmentationDocument::CurShot(), Impala::Core::Trec::ThreadSet::GetImageByShotID(), OglGui::OglWindow::GetOGLWND(), Impala::Core::VideoSet::SegmentationDocument::HasCurShot(), ILOG_DEBUG, ILOG_WARN, mSegDoc, mShotPreview, mShotPreviewImage, mShotPreviewView, mThreadSet, mThumbHeight, mThumbWidth, Impala::Application::DemoCamera2d::oglWnd, UpdateDescription(), UpdatePreviewBars(), and UpdateStills(). Referenced by Update(). 00193 { 00194 if (mSegDoc == NULL || !mSegDoc->HasCurShot()) 00195 { 00196 ILOG_WARN("UpdateCurrentShot() trying to update, " << 00197 "but no current shot found."); 00198 return; 00199 } 00200 00201 int shotid = mSegDoc->CurShot(); 00202 00203 // steps: 00204 // 1. retrieve RKF, place in mShotPreview 00205 // 2. retrieve series of keyframes for shot, place in mShotKeyframes 00206 // 3. generate textual information for shot, place in mShotDetails 00207 // 4. retrieve forms of similarity, place in mShotSimilarityPreview 00208 00209 // STEP 1 00210 ILOG_DEBUG("ShotDetailWindow::UpdateCurrentShot()"); 00211 00212 if (mShotPreviewView == NULL && mShotPreview) 00213 { 00214 OGLWND *oglWnd = mShotPreview->GetOGLWND(); 00215 mShotPreviewView = new View(oglWnd,3,3,mThumbWidth,mThumbHeight,1.0, 00216 false,false,true,NULL); 00217 } 00218 00219 if (mShotPreviewImage) 00220 { 00221 delete mShotPreviewImage; 00222 mShotPreviewImage = 0; 00223 } 00224 00225 mShotPreviewImage = mThreadSet->GetImageByShotID(shotid); 00226 if (mShotPreviewImage == NULL) 00227 { 00228 ILOG_WARN("ShotDetailView::SetShot() could not retrieve RKF for " << 00229 shotid); 00230 mShotPreviewImage = 0; 00231 return; 00232 } 00233 mShotPreviewView->UpdateImage(mShotPreviewImage, "Direct"); 00234 // STEP 2 00235 UpdateStills(); 00236 // STEP 3 00237 UpdateDescription(); 00238 // STEP 4 00239 UpdatePreviewBars(); 00240 }
Here is the call graph for this function:
|