Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Visualization::Plot::Plot::Pixel2Window ( double  px,
double  py,
double &  wx,
double &  wy 
) [inline]

Definition at line 143 of file Plot.h.

References mCenter, OglGui::OglWindow::mOglWnd, mRange, mUserPan, and mUserZoom.

Referenced by DrawAxes(), GetRange(), MouseFunc(), and UpdateAxes().

00144     {
00145         wx = (px*mRange[0]/mUserZoom[0])/(double)mOglWnd->width;
00146         wx += mCenter[0]-mUserPan[0]-(.5*mRange[0]/mUserZoom[0]);
00147         wy = (py*mRange[1]/mUserZoom[1])/(double)mOglWnd->height;
00148         wy += mCenter[1]-mUserPan[1]-(.5*mRange[1]/mUserZoom[1]);
00149     }


Generated on Thu Jan 13 09:25:42 2011 for ImpalaSrc by  doxygen 1.5.1