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

void Impala::Visualization::RotorBrowser::ThreadClusterSelector::ShowRelevantSquare (  )  [inline, private]

Definition at line 469 of file ThreadClusterSelector.h.

References CurrentContextHasSimilarities(), Impala::Visualization::RotorBrowser::RotorViewCache::DoCleanup(), Impala::Visualization::RotorBrowser::RotorViewCache::DoHide(), GetHeight(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GetName(), GetNumberForThreshold(), GetRelevant(), Impala::Visualization::RotorBrowser::RotorViewCache::GetViewFor(), Impala::Visualization::RotorBrowser::RotorViewCache::GetViews(), GetWidth(), ILOG_DEBUG, mCache, mContext, Impala::Visualization::RotorBrowser::RotorView::MoveFrom(), Impala::Visualization::RotorBrowser::RotorView::MoveTo(), mPaginated, and mSelectionSize.

Referenced by DecreaseSelectionSize(), IncreaseSelectionSize(), SetPagemode(), SetSelectionSize(), and Show().

00470     {
00471         int number = mSelectionSize;
00472         if (!mPaginated)
00473         {
00474             if (!CurrentContextHasSimilarities())
00475             {
00476                 ILOG_DEBUG("Showing paginated mode, curr thread has no sims.");
00477             }
00478             else
00479                 number = GetNumberForThreshold();
00480         }
00481 
00482         mCache->DoHide(mCache->GetViews());
00483 
00484         float xspacer = 0.65f;
00485         float yspacer = 0.55f;
00486 
00487         int     ctr = 0;
00488         float   bx  = -GetWidth(number)  * xspacer / 2.0f + 0.5f * xspacer;
00489         float   by  = -GetHeight(number) * yspacer / 2.0f + 0.5f * yspacer;
00490         ILOG_DEBUG("ShowRelevantSquare(" << number<< "): width=" <<
00491                    GetWidth(number) << " height=" << GetHeight(number));
00492         for (int i=0; i < GetHeight(number); i++)
00493         {
00494             for (int j=0; j < GetWidth(number); j++)
00495             {
00496                 int item = GetRelevant(ctr);
00497                 if (item < 0)
00498                 {
00499                     ctr = number + 1;
00500                     break;
00501                 }
00502                 RotorView *v =
00503                     mCache->GetViewFor(mContext->GetName(), GetRelevant(ctr));
00504                 float x = bx + xspacer * j;
00505                 float y = -by - yspacer * i;
00506                 v->MoveFrom(0.0f, 0.0f, -10.0f, 0.5f, 1.0f);
00507                 v->MoveTo(x,y,-2.0f,0.5f,1.0f);
00508 
00509                 if (++ctr > number)
00510                     break;
00511             }
00512             if (ctr > number)
00513                 break;
00514         }
00515 
00516         mCache->DoCleanup(mCache->GetViews());
00517     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:57:10 2010 for ImpalaSrc by  doxygen 1.5.1