gestione double click

This commit is contained in:
ganovelli 2007-05-17 09:06:44 +00:00
parent 9b7d4fc359
commit 1f317f011f
2 changed files with 12 additions and 1 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.3 2006/12/10 23:29:57 ganovelli
added VFIterator (Pos is disabled in this version)
Revision 1.2 2006/12/10 22:17:18 ganovelli
cvs problem during frist committ. repeated
@ -198,7 +201,7 @@ MyStraightMesh::FaceType* g = vp->VFp();
glPushAttrib(0xffffffff);
glDisable(GL_LIGHTING);
glColor3f(0.0,1.0,0.0);
glDepthRange(0.0,0.999);
glDepthRange(0.0,0.99);
vcg::GlVfIterator<vcg::face::VFIterator<MyStraightMesh::FaceType> >::Draw(vfite);
glPopAttrib();
}
@ -227,7 +230,11 @@ void GLWidget::mouseMoveEvent(QMouseEvent *e)
else
keypress = e->key();
}
void GLWidget::mouseDoubleClickEvent(QMouseEvent *e){
if(e->button() == Qt::RightButton)
doPickPos=true;
}
void GLWidget:: mousePressEvent(QMouseEvent *e)
{
if( (keypress==Qt::Key_Control) && (e->button() == Qt::LeftButton) )

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.3 2006/12/10 23:29:57 ganovelli
added VFIterator (Pos is disabled in this version)
Revision 1.2 2006/12/10 22:17:18 ganovelli
cvs problem during frist committ. repeated
@ -73,6 +76,7 @@ protected:
void initializeGL();
void paintGL();
void resizeGL(int width, int height);
void mouseDoubleClickEvent(QMouseEvent *event);
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);