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

void Impala::Visualization::AnnoPUNS::UpdateAnno (  )  [inline]

Definition at line 68 of file AnnoPUNS.h.

References Impala::Core::Database::DataDocument::CurFileId(), Impala::Core::VideoSet::Segmentation::GetFirstShotVideo(), Impala::Core::VideoSet::SegmentationDocument::GetKeyframes(), Impala::Core::VideoSet::Segmentation::GetNrShotsVideo(), Impala::Core::VideoSet::SegmentationDocument::GetSegmentation(), OglGui::CheckBox::GetSelected(), Impala::Core::VideoSet::Keyframes::GetShotRKF(), Impala::MakeString(), Impala::Visualization::ShowNextFromControl::MaxVal(), mIdxGridTotalTxt, mImageSetWnd, mKeyframeVec, mPunsOnly, mSegDoc, mShowNextFrom, mStartIm, mVideoAnnotations, mVideoCheckBox, Impala::Visualization::PunsOnlyControl::NegativeCheckBox(), Impala::Visualization::PunsOnlyControl::PositiveCheckBox(), OglGui::StaticText::SetText(), Impala::Visualization::PunsOnlyControl::SkipCheckBox(), Impala::Visualization::ShowNextFromControl::StartVal(), and Impala::Visualization::PunsOnlyControl::UnknownCheckBox().

Referenced by HandleNewFile().

00069     {
00070         mKeyframeVec.clear();
00071 
00072         Segmentation*   seg     = mSegDoc->GetSegmentation();
00073         Keyframes*      kFrames = mSegDoc->GetKeyframes();
00074         int             iSize   = mVideoAnnotations->size();
00075         int             bit     = -1;
00076 
00077         if (mPunsOnly->UnknownCheckBox()->GetSelected())
00078             bit = 0;
00079         if (mPunsOnly->PositiveCheckBox()->GetSelected())
00080             bit = 2;
00081         if (mPunsOnly->SkipCheckBox()->GetSelected())
00082             bit = 4;
00083         if (mPunsOnly->NegativeCheckBox()->GetSelected())
00084             bit = 8;
00085 
00086         for (int i=0; i<iSize; i++)
00087         {
00088             VideoAnnotation* vidAnno = (*mVideoAnnotations)[i];
00089             int  firstShot   = seg->GetFirstShotVideo(i);
00090             int  sz          = seg->GetNrShotsVideo(i);
00091             int  lastShot    = firstShot+sz;
00092             int  jSize       = vidAnno->size();
00093             if (mVideoCheckBox->GetSelected() && i != mSegDoc->CurFileId())
00094                 continue;
00095 
00096             for (int j=0; j<jSize; j++)
00097             {
00098                 int vidBit = (*vidAnno)[j];
00099                 if (bit==-1 || vidBit == bit)
00100                 {
00101                     int   kFrame   = kFrames->GetShotRKF(j+firstShot);
00102                     mKeyframeVec.push_back(kFrame);
00103                 }
00104             }
00105         }
00106         int nrIm = mKeyframeVec.size();
00107         if (mImageSetWnd)
00108         {
00109             mShowNextFrom->MaxVal(nrIm);
00110             mStartIm = mShowNextFrom->StartVal();
00111         }
00112         if (mIdxGridTotalTxt)
00113             mIdxGridTotalTxt->SetText("Total: " + MakeString(nrIm));
00114     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:42:12 2010 for ImpalaSrc by  doxygen 1.5.1