Definition at line 116 of file AnnoPUNS.h. References Impala::Visualization::ImageSetIdxGrid::AddImageSetIdx(), Impala::Visualization::ImageSetIdxGrid::Clear(), Impala::Core::VideoSet::SegmentationDocument::CurShot(), Impala::Core::VideoSet::SegmentationDocument::GetImSetKeyframes(), Impala::Core::VideoSet::Keyframes::GetShotRKF(), mImageSetWnd, mImSetIdxGrid, mKeyframes, mKeyframeVec, mNrToShow, mSegDoc, mStartIm, Impala::Visualization::ImageSetIdxGrid::SetSelected(), and Impala::Visualization::ImageSetIdxGrid::UpdateLayout(). Referenced by HandleNewFile(). 00117 { 00118 ImageSet* imSet = mSegDoc->GetImSetKeyframes(true); 00119 if (mImageSetWnd) 00120 { 00121 mImageSetWnd->RemoveImages(); 00122 mImageSetWnd->SetFirstVisY(0, true); 00123 } 00124 if (mImSetIdxGrid) 00125 mImSetIdxGrid->Clear(); 00126 00127 int curShot = mSegDoc->CurShot(); 00128 int curKey = -1; 00129 if (curShot != -1) 00130 curKey = mKeyframes->GetShotRKF(curShot); 00131 int sz = mKeyframeVec.size(); 00132 for (int i=0; i<mKeyframeVec.size(); i++) 00133 { 00134 if (i>=mStartIm && i<mStartIm+mNrToShow) 00135 { 00136 if (mImageSetWnd) 00137 mImageSetWnd->AddImage(mKeyframeVec[i],imSet); 00138 if (mImSetIdxGrid) 00139 mImSetIdxGrid->AddImageSetIdx(imSet,mKeyframeVec[i]); 00140 if (mKeyframeVec[i] == curKey) 00141 { 00142 if (mImageSetWnd) 00143 mImageSetWnd->SetImageSelected(i-mStartIm); 00144 if (mImSetIdxGrid) 00145 mImSetIdxGrid->SetSelected(i); 00146 } 00147 } 00148 } 00149 if (mImSetIdxGrid) 00150 mImSetIdxGrid->UpdateLayout(true); 00151 }
Here is the call graph for this function:
|