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

void Impala::Visualization::RotorBrowser::RotorViewCache::QuidShotIsViewed ( Quid  shot,
double  probability 
) [inline]

Definition at line 200 of file RotorViewCache.h.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Add(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get2(), Impala::Core::Table::AnnotationTable::GetIndex(), Impala::Core::Table::AnnotationTable::IsAnnotated(), mShotViewed, and Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Set2().

Referenced by ShotIsViewed().

00201     {
00202         double ipro = probability;
00203         if (probability > 1.0) probability = 1.0;
00204         if (probability < 0.0) probability = 0.0;
00205 
00206         if (!mShotViewed->IsAnnotated(shot))
00207             mShotViewed->Add(shot, probability);
00208         else
00209         {
00210             int rank = mShotViewed->GetIndex(shot);
00211             probability += mShotViewed->Get2(rank);
00212             if (probability > 1.0) probability = 1.0;
00213             mShotViewed->Set2(rank, probability);
00214         }
00215         //ILOG_DEBUG("ShotIsViewed(" << QuidObj(shot) << ", " << ipro <<
00216         //           "): " << probability);
00217     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:56:50 2010 for ImpalaSrc by  doxygen 1.5.1