gestione double click
This commit is contained in:
parent
9b7d4fc359
commit
1f317f011f
|
@ -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) )
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue