Definition at line 452 of file SimilarityTableSetRank.h. References OglGui::OglWindow::H(), Impala::Visualization::Plot::Plot::IsVisible(), Impala::Visualization::Plot::Plot::MakeVisibleAtPix(), mPlotPoints, mPoints, Impala::Visualization::Plot::Points::PointX(), Impala::Visualization::Plot::Points::PointY(), Impala::Visualization::Plot::Points::Size(), OglGui::OglWindow::W(), and Impala::Visualization::Plot::Plot::Window2Pixel(). Referenced by SetCurrent(). 00453 { 00454 if (!mPlotPoints || idx < 0 || idx >= mPoints->Size()) 00455 return; 00456 00457 double px = mPoints->PointX(idx); 00458 double py = mPoints->PointY(idx); 00459 if (mPlotPoints->IsVisible(px,py)) 00460 return; 00461 double wX, wY; 00462 mPlotPoints->Window2Pixel(px,py,wX,wY); 00463 if (wX < 0) 00464 wX = 20; 00465 if (wX > mPlotPoints->W()) 00466 wX = mPlotPoints->W()-20; 00467 if (wY < 0) 00468 wY = 20; 00469 if (wY > mPlotPoints->H()) 00470 wY = mPlotPoints->H()-20; 00471 mPlotPoints->MakeVisibleAtPix(px,py,wX,wY); 00472 }
Here is the call graph for this function: ![]()
|