Definition at line 199 of file SegmentationDocumentGuiAnno.h. References mCurShotFrames, mImShotWnd, mRgbDataSrc, mShotValueSB, Impala::Visualization::ImagesWindow::RemoveImages(), and ToShotWindow(). Referenced by AdjustAnnoBoundary(), and HandleNewShot(). 00200 { 00201 if (firstFrame > curFrame) 00202 firstFrame = curFrame; 00203 if (lastFrame < curFrame) 00204 lastFrame = curFrame; 00205 if (firstFrame > lastFrame) 00206 { 00207 int tmp = lastFrame; 00208 lastFrame = firstFrame; 00209 firstFrame = tmp; 00210 } 00211 mImShotWnd->RemoveImages(); 00212 mCurShotFrames.clear(); 00213 if (mRgbDataSrc && firstFrame < lastFrame) 00214 { 00215 if (mShotValueSB) 00216 { 00217 mShotValueSB->SetVisible(true); 00218 mShotValueSB->SetMinMaxValue(firstFrame, lastFrame); 00219 } 00220 00221 int nrShotFrames = lastFrame-firstFrame; 00222 if (nrShotFrames > 1) 00223 { 00224 float step = (nrShotFrames<5)? 1.f : nrShotFrames/4.f; 00225 for (float i=firstFrame; i<=lastFrame; i += step) 00226 ToShotWindow(i,((int)i)==curFrame); 00227 } 00228 } 00229 }
Here is the call graph for this function:
|