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

void Impala::Visualization::RotorBrowser::RotorBrowser::DoBookmarkCluster ( bool  markPositive,
bool  force 
) [inline]

Definition at line 1588 of file RotorBrowser.h.

References BookmarkSpecific(), BookmarkSpecificNegative(), Impala::Core::Trec::Thread::Contains(), Impala::Visualization::RotorBrowser::ThreadClusterSelector::GetSelectedShots(), GetThreadByName(), ILOG_SYSTEM, Impala::Visualization::RotorBrowser::ThreadClusterSelector::IsActive(), mActiveContext, mClusterSelector, and Impala::Visualization::RotorBrowser::ThreadClusterSelector::Show().

Referenced by KeyboardClusterSelectionFunc().

01589     {
01590         if (!mClusterSelector->IsActive()) return;
01591 
01592         ThreadBookmarked *positive =
01593             (ThreadBookmarked*)GetThreadByName("bookmarked");
01594         ThreadBookmarked *negative =
01595             (ThreadBookmarked*)GetThreadByName("bookmarked_negative");
01596 
01597         std::vector<int> shots = mClusterSelector->GetSelectedShots();
01598         ILOG_SYSTEM("cluster bookmarking " << shots.size() <<
01599                     " shots as " << (markPositive ? "POSITIVE" : "NEGATIVE"));
01600         for (int i=0; i<shots.size(); i++)
01601         {
01602             if (markPositive  && (force || !negative->Contains(shots[i])))
01603                     BookmarkSpecific(shots[i]);
01604             if (!markPositive && (force || !positive->Contains(shots[i])))
01605                     BookmarkSpecificNegative(shots[i]);
01606         }
01607         mClusterSelector->Show(mActiveContext);
01608     }

Here is the call graph for this function:


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