- now, when user double-click on GLarea to recenter trackball, the coordinates of the picked point are printed in the LOG

This commit is contained in:
Marco Callieri mcallieri 2013-12-05 13:26:56 +00:00
parent cbe428961f
commit 3f5b933aac

View File

@ -540,6 +540,8 @@ void GLArea::paintEvent(QPaintEvent */*event*/)
hasToPick=false;
if(Pick<Point3f>(pointToPick[0],pointToPick[1],pp))
{
// write picked point in the log
Logf(0,"Recentering on point [%f %f %f]",pp[0],pp[1],pp[2]);
trackball.Translate(-pp);
trackball.Scale(1.25f);
QCursor::setPos(mapToGlobal(QPoint(width()/2+2,height()/2+2)));