Reimplemented from Impala::Visualization::Plot::PlottableMouseListener. Definition at line 533 of file SimilarityTableSetRank.h. References HandleImageSelection(), HandlePlotIdxSelected(), mFloatWnd, mImageSelected, mPlotLine2, mPlotPoints, mSelectedRanking, OglGui::OglWindow::SetVisible(), ShowFloatWnd(), and Impala::Core::Table::Table::Size(). 00535 { 00536 if (mFloatWnd) 00537 mFloatWnd->SetVisible(false); 00538 00539 if (state & (oglShift | oglControl)) 00540 return; 00541 00542 Plot::Plot* plot=0; 00543 int idx; 00544 bool validIdx = false; 00545 00546 if (mPlotPoints && (mPlotPoints == (Plot::Plot*)userData)) 00547 { 00548 plot = mPlotPoints; 00549 idx = ((int)(x+.5)) % 200 - 200 * ((int)(y-0.5)); 00550 validIdx = x>=-0.5 && x <= 200.5 && 00551 idx >= 0 && idx < mSelectedRanking->Size(); 00552 } 00553 if (mPlotLine2 && (mPlotLine2 == (Plot::Plot*)userData)) 00554 { 00555 plot = mPlotLine2; 00556 idx = x; 00557 validIdx = idx >= 0 && idx < mSelectedRanking->Size(); 00558 } 00559 if (msg == oglMouseUp) 00560 { 00561 if (but==oglLeftButton && !(state&oglRightButton) && validIdx) 00562 HandlePlotIdxSelected(idx); 00563 else 00564 HandleImageSelection(mImageSelected); 00565 } 00566 else if (validIdx && (state & (oglRightButton | oglLeftButton))) 00567 ShowFloatWnd(plot,idx,x,y); 00568 if (validIdx && (state & oglAlt)) 00569 HandlePlotIdxSelected(idx); 00570 }
Here is the call graph for this function:
|