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

void Impala::Visualization::SegmentationDocumentGuiAnno::ConstructShotRanking ( bool  exclAnnotatedMode  )  [inline, private]

Definition at line 1467 of file SegmentationDocumentGuiAnno.h.

References Impala::Core::Table::SimilarityTableSet::GetRankTable(), mCurConcept, mCurRankShot, mRankAll, mRankedShots, mRankVSB, mSimSet, NEGATIVE_BIT, Impala::Core::Table::SimilarityTableSet::NrTables(), POSITIVE_BIT, OglGui::ValueScrollBar::SetMinMaxValue(), SKIPPED_BIT, Impala::Core::Table::SimilarityTableSet::TableSize(), ToRankedShots(), and UNKNOWN_BIT.

Referenced by ButtonSelectionEvent(), ConstructNewVideoSimSet(), and HandleNewConcept().

01468     {
01469         mRankedShots.clear();
01470         mCurRankShot = 0;
01471         mRankAll = !exclAnnotatedMode;
01472 
01473         if (!mSimSet)
01474             return;
01475 
01476         int tableNr = (mSimSet->NrTables()==1) ? 0 : mCurConcept;
01477         RankTableType* rankTable = mSimSet->GetRankTable(tableNr);
01478 
01479         int nShots = 0;
01480         int sz = mSimSet->TableSize();
01481         for (int i=0; i<sz; i++)
01482         {
01483             int filter = exclAnnotatedMode ? UNKNOWN_BIT :
01484                          UNKNOWN_BIT|POSITIVE_BIT|NEGATIVE_BIT|SKIPPED_BIT;
01485             if (ToRankedShots(rankTable, i, filter))
01486                 nShots++;
01487         }
01488         if (mRankVSB)
01489             mRankVSB->SetMinMaxValue(0,nShots-1);
01490     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:25:00 2011 for ImpalaSrc by  doxygen 1.5.1