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

void Impala::Visualization::SegmentationDocumentGuiAnno::FillShotSample ( int  firstFrame,
int  lastFrame,
int  curFrame 
) [inline]

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:


Generated on Thu Jan 13 09:24:58 2011 for ImpalaSrc by  doxygen 1.5.1