From 558f9baddcb8e5b83807e1a0714dd72489a8c23d Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 17 May 2007 09:39:42 +0000 Subject: [PATCH] Corrected gcc compiling issues --- apps/sample/trimesh_pos_demo/glwidget.cpp | 7 +++++-- apps/sample/trimesh_pos_demo/glwidget.h | 7 +++++-- apps/sample/trimesh_pos_demo/trimesh_pos_demo.pro | 6 +++--- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/apps/sample/trimesh_pos_demo/glwidget.cpp b/apps/sample/trimesh_pos_demo/glwidget.cpp index a9497730..3f3a6494 100644 --- a/apps/sample/trimesh_pos_demo/glwidget.cpp +++ b/apps/sample/trimesh_pos_demo/glwidget.cpp @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.4 2007/05/17 09:06:44 ganovelli +gestione double click + Revision 1.3 2006/12/10 23:29:57 ganovelli added VFIterator (Pos is disabled in this version) @@ -37,6 +40,7 @@ cvs problem during frist committ. repeated #include #include +#include "glwidget.h" #include #include #include @@ -45,7 +49,6 @@ cvs problem during frist committ. repeated #include #include -#include "glwidget.h" GLWidget::GLWidget(QWidget *parent) : QGLWidget(parent) @@ -181,7 +184,7 @@ void GLWidget::paintGL() if(yes) {vp = res[0]; MyStraightMesh::FaceType* g = vp->VFp(); - vfite=vcg::face::VFIterator(vp); + vfite=vcg::face::VFIterator(vp); } doPickVfIte = false; diff --git a/apps/sample/trimesh_pos_demo/glwidget.h b/apps/sample/trimesh_pos_demo/glwidget.h index dced411d..4c81ed9d 100644 --- a/apps/sample/trimesh_pos_demo/glwidget.h +++ b/apps/sample/trimesh_pos_demo/glwidget.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.4 2007/05/17 09:06:44 ganovelli +gestione double click + Revision 1.3 2006/12/10 23:29:57 ganovelli added VFIterator (Pos is disabled in this version) @@ -58,8 +61,8 @@ public: vcg::Trackball track; int ScreenH,ScreenW,pic_x,pic_y,keypress; bool doPickPos,doPickVfIte; - vcg::face::Pos pos; - vcg::face::VFIterator vfite; + vcg::face::Pos< MyStraightMesh::FaceType> pos; + vcg::face::VFIterator< MyStraightMesh::FaceType> vfite; public slots: void flipV( ); diff --git a/apps/sample/trimesh_pos_demo/trimesh_pos_demo.pro b/apps/sample/trimesh_pos_demo/trimesh_pos_demo.pro index f9cd09c2..e8ae1788 100644 --- a/apps/sample/trimesh_pos_demo/trimesh_pos_demo.pro +++ b/apps/sample/trimesh_pos_demo/trimesh_pos_demo.pro @@ -1,12 +1,12 @@ -INCLUDEPATH += . ../../.. ../../../../code/lib +INCLUDEPATH += . ../../.. ../../../../code/lib ../../../../code/lib/glew/include HEADERS = glwidget.h \ window.h \ - mesh_type + mesh_type.h SOURCES = glwidget.cpp \ main.cpp \ window.cpp\ + ../../../../code/lib/glew/src/glew.c \ ../../../wrap/ply/plylib.cpp\ - ../../../wrap/gui/trackball.cpp\ ../../../wrap/gui/trackmode.cpp\ ../../../wrap/gui/trackball.cpp QT += opengl