Definition at line 327 of file View.h. References mIs2D, mView2D, and mView3D. Referenced by Impala::Visualization::View::OnMouse(). 00328 { 00329 OGLIMAGE* oglIm = mIs2D ? mView2D->im : mView3D->im; 00330 FLOAT x = (FLOAT)vX; 00331 FLOAT y = (FLOAT)vY; 00332 if (oglIm == 0) 00333 return; 00334 if (mIs2D) 00335 { 00336 viewSys.View2DToIm(mView2D, &x, &y); 00337 imX = (int) x; 00338 imY = (int) (oglIm->h-y); 00339 } 00340 else 00341 { 00342 view3DSys.View3DToIm(mView3D, &x, &y); 00343 imX = (int) x; 00344 imY = (int) (oglIm->h-y); 00345 } 00346 }
|