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

void Impala::Visualization::AllFramesTLineVideo::ShowPositives ( SimilarityTimeLine simTL  )  [inline]

Definition at line 517 of file AllFramesTLineVideo.h.

References OglGui::ZoomShiftRuler::GetAxisY(), Impala::Visualization::SimilarityTimeLine::GetShowSim(), Impala::Visualization::SimilarityTimeLine::GetSimColor(), mAnnoPositives, mShowPositives, and OglGui::ZoomShiftRuler::Unit2Pixel().

Referenced by WindowDisplayEvent().

00518     {
00519         if (!mShowPositives)
00520             return;
00521 
00522 //Segmentation* seg = mSegDoc->GetSegmentation();
00523 
00524         int y = simTL->GetAxisY();
00525 
00526         SetLineWidth(3);
00527         int nConcepts = mAnnoPositives.size();
00528         for (int i=0; i<nConcepts; i++)
00529         {
00530             if (!simTL->GetShowSim(i))
00531                 continue;
00532 
00533             ULONG col = simTL->GetSimColor(i);
00534             SetSolidLineColor(col);
00535             IntVector* positiveVector = mAnnoPositives[i];
00536             int sz = positiveVector->size();
00537             for (int p=0; p<sz; p++)
00538             {
00539                 int posFrame = (*positiveVector)[p];
00540                 int x = simTL->Unit2Pixel(posFrame*40);
00541                 DrawLine(x,y-(i*2)-2,x,y-20);
00542 /*
00543 SetLineWidth(1);
00544 int shot = FindFrameShot(posFrame);
00545 int prevShot = seg->GetStart(shot);
00546 int     nextShot = seg->GetStart(shot+1);
00547                 int yShot = y-(i*2)-2;
00548                 int x1 = simTL->Unit2Pixel(prevShot*40);
00549                 int x2 = simTL->Unit2Pixel(nextShot*40);
00550                 DrawLine(x1,yShot,x2,yShot);
00551 SetLineWidth(3);
00552 */
00553             }
00554         }
00555         SetLineWidth(1);
00556     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:24:28 2011 for ImpalaSrc by  doxygen 1.5.1