Reimplemented from Impala::Visualization::Plot::PlottableMouseListener. Definition at line 579 of file SimilarityTableSetRank.h. References HandleImageSelection(), HandlePlotIdxSelected(), mFloatWnd, mImageSelected, mPlotLine2, mPlotPoints, mSelectedRanking, OglGui::OglWindow::SetVisible(), ShowFloatWnd(), and Impala::Core::Table::Table::Size(). 00581 { 00582 if (mFloatWnd) 00583 mFloatWnd->SetVisible(false); 00584 00585 if (state & (oglShift | oglControl)) 00586 return; 00587 00588 Plot::Plot* plot=0; 00589 int idx; 00590 bool validIdx = false; 00591 00592 if (mPlotPoints && (mPlotPoints == (Plot::Plot*)userData)) 00593 { 00594 plot = mPlotPoints; 00595 idx = ((int)(x+.5)) % 200 - 200 * ((int)(y-0.5)); 00596 validIdx = x>=-0.5 && x <= 200.5 && 00597 idx >= 0 && idx < mSelectedRanking->Size(); 00598 } 00599 if (mPlotLine2 && (mPlotLine2 == (Plot::Plot*)userData)) 00600 { 00601 plot = mPlotLine2; 00602 idx = x; 00603 validIdx = idx >= 0 && idx < mSelectedRanking->Size(); 00604 } 00605 if (msg == oglMouseUp) 00606 { 00607 if (but==oglLeftButton && !(state&oglRightButton) && validIdx) 00608 HandlePlotIdxSelected(idx); 00609 else 00610 HandleImageSelection(mImageSelected); 00611 } 00612 else if (validIdx && (state & (oglRightButton | oglLeftButton))) 00613 ShowFloatWnd(plot,idx,x,y); 00614 if (validIdx && (state & oglAlt)) 00615 HandlePlotIdxSelected(idx); 00616 }
Here is the call graph for this function: ![]()
|