Definition at line 513 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(). 00514 { 00515 if (!mShowPositives) 00516 return; 00517 00518 //Segmentation* seg = mSegDoc->GetSegmentation(); 00519 00520 int y = simTL->GetAxisY(); 00521 00522 SetLineWidth(3); 00523 int nConcepts = mAnnoPositives.size(); 00524 for (int i=0; i<nConcepts; i++) 00525 { 00526 if (!simTL->GetShowSim(i)) 00527 continue; 00528 00529 ULONG col = simTL->GetSimColor(i); 00530 SetSolidLineColor(col); 00531 IntVector* positiveVector = mAnnoPositives[i]; 00532 int sz = positiveVector->size(); 00533 for (int p=0; p<sz; p++) 00534 { 00535 int posFrame = (*positiveVector)[p]; 00536 int x = simTL->Unit2Pixel(posFrame*40); 00537 DrawLine(x,y-(i*2)-2,x,y-20); 00538 /* 00539 SetLineWidth(1); 00540 int shot = FindFrameShot(posFrame); 00541 int prevShot = seg->GetStart(shot); 00542 int nextShot = seg->GetStart(shot+1); 00543 int yShot = y-(i*2)-2; 00544 int x1 = simTL->Unit2Pixel(prevShot*40); 00545 int x2 = simTL->Unit2Pixel(nextShot*40); 00546 DrawLine(x1,yShot,x2,yShot); 00547 SetLineWidth(3); 00548 */ 00549 } 00550 } 00551 SetLineWidth(1); 00552 }
Here is the call graph for this function:
|