Definition at line 250 of file SimilarityPlotNeedleImage.h. References Impala::Visualization::Plot::Plot::GetRange(), Impala::Visualization::Plot::Plot::GetUserPan(), mCurKeyframe, Impala::Visualization::Plot::PlotNeedle::MoveTo(), mPlotNeedle, mPlotPoints, mStartKey, and Impala::Visualization::Plot::Plot::SetUserPan(). Referenced by PlotNeedleChanged(), and UpdateImage(). 00251 { 00252 if (!mPlotPoints) 00253 return; 00254 00255 double nPos = mCurKeyframe-mStartKey+1; 00256 mPlotNeedle->MoveTo(nPos); 00257 00258 // Lines below pan the plot to keep the needle in sight 00259 double panX, panY; 00260 double l,t,r,b; 00261 mPlotPoints->GetUserPan(panX, panY); 00262 mPlotPoints->GetRange(l,t,r,b); 00263 if (nPos > r || nPos < l) 00264 mPlotPoints->SetUserPan(panX - (nPos - (nPos>r ? r:l)), panY); 00265 }
Here is the call graph for this function:
|