Subject: CGAL users discussion list
List archive
- From: Kwok Jasper <>
- To: <>
- Subject: RE: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version
- Date: Sat, 27 Dec 2008 13:44:44 +0800
- Importance: Normal
Thank you. May I ask wich file I should look at in the directory Triangulation_2 ? I am sorry that my qestion here may be a bit silly but since I am a beginner of CGAL. I find it very difficult to understand all of the code in every files there at once. Therefore, may I ask which .cpp file there I may reference to know the way to display a triangulation? In addition, may I clarify if 3D triangulation can also be displayed in QGraphicsView or QGLViewer? If it cannot, then may I ask what may I do to display 3D triangulation then? Thank you very much for your help. Yours faithfully Jasper > Date: Fri, 26 Dec 2008 18:00:36 +0100 > From: > To: > Subject: Re: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version > > Hi Jasper, > > Please have a look at CGAL-3.4/demo/Triangulation_2 > > best, > > andreas > > Kwok Jasper wrote: > > Thank you very much for your reply. > > > > May I ask if there is any example for displaying a triangulation with > > the QGraphicsView or QGLViewer? > > Is there any demonstration of displaying a triangulation using the above > > two structure? > > > > THank you very much for your attention > > > > > > > > > Date: Fri, 26 Dec 2008 16:13:42 +0100 > > > From: > > > To: > > > Subject: Re: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version > > > > > > Hi Jasper, > > > > > > Note that for the Qt based demos we are in a transition phase > > > as we haven't rewritten all Qt3 based demos for Qt4. > > > > > > When you see CGAL::Qt_widget used, it is a demo that needs Qt3 > > > > > > The Qt4 based demos use the QGraphicsView as widget, or the > > > QGLViewer (independent from Qt4, but based on it as well. > > > > > > Sorry for this confusion, > > > > > > andreas > > > > > > > > > Kwok Jasper wrote: > > > > Excuse me, may I ask if it is that when I use the newly released > > CGAL3.4 > > > > beta version, I should no longer use the Qt in the way that the code I > > > > pasted in the previous does? > > > > If it is the case, may I ask if th ere is any example demonstrating > > how > > > > to use Qt4 to display a triangulation generated by the CGAL3.4 beta > > > > version ? > > > > > > > > Thnak you very much > > > > > > > > > > ------------------------------------------------------------------------ > > > > From: > > > > To: > > > > Date: Fri, 26 Dec 2008 12:44:05 +0800 > > > > Subject: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version > > > > > > > > Excuse me, may I ask something about using Qt4.4.3 with CGAL3.4 beta > > > > version in Microsoft Visual C++ 2005? > > > > > > > > I have used nmake to compile the Qt4 > > > > Then, I set the following in Visual C++ 2005: > > > > > > > > In Tools->Options->Projects and Solutions->VC++ Directories->Include > > > > files, I added > > > > $(QTDIR)\include > > > > > > > > > > > > In Tools->Options->Projects and Solutions->VC++ Directories->Library > > > > files, I added > > > > $(QTDIR)\lib > > > > > > > > In Tools->Options->Projects and Solutions->VC++ Directories->Source > > > > files, I added > > > > $(QTDIR)\src > > > > > > > > However, after that, when I tried to compile the following code > > from the > > > > CGAL web site, I still have error. > > > > May I ask have I missed any steps in the configuration with the Qt? > > > > Thank you very much > > > > > > > > > > > > #include <CGAL/basic.h> > > > > > > > > > > > > #include <iostre am> > > > > int main(int, char*){ > > > > std::cout << "Sorry, this demo needs QT..." << std::endl; return 0;} > > > > #include <CGAL/Cartesian.h> > > > > #include <CGAL/Delaunay_triangulation_2.h> > > > > #include <CGAL/IO/Qt_widget_Tr iangulation_2.h> > > > > #include <CGAL/IO/Qt_widget.h> > > > > #include <qapplication.h> > > > > #include <qmainwindow.h> > > > > > > > > typedef CGAL::Cartesian<double> K; > > > > typedef K::Point_2 Point_2; > > > > typedef CGAL::Delaunay_triangulation_2<K> Delaunay; > > > > > > > > Delaunay dt; > > > > > > > > class My_window : public QMainWindow { > > > > Q_OBJECT > > > > public: > > > > My_window(int x, int y) > > > > { > > > > widget = new CGAL::Qt_widget(this); > > > > widget->resiz e(x,y); > > > > widget->set_window(0, x, 0, y); > > > > > > > > connect(widget, SIGNAL(redraw_on_back()), > > > > this, SLOT(redraw_win())); > > > > > > > > connect(widget, SIGNAL(s_mousePressEvent(QMouseEvent*)), > > > > this, SLOT(mousePressEvent(QMouseEvent*))); > > > > > > > > setCentralWidget(widget); > > > > ; }; > > > > private slots: > > > > void redraw_win() > > > > { > > > > *widget << dt; > > > > } > > > > > > > > void mousePressEvent(QMouseEvent *e) > > > > { > > > > dt.insert(Point_2(widget->x_real(e->x()), widget->y_real(e->y()))); > > > > widget->redraw(); > > > > } > > > > > > > > private: // private data member > > > > CGAL::Qt_widget* widget; > > > > }; > > > > > > > > //moc_source_file : tutorial2.cpp > > > > #include "tutorial2.moc" > > > > > > > > int main( int argc, char **argv ) > > > > { > > > > QApplicatio n app( argc, argv ); > > > > My_window *w = new My_window(400,400); > > > > app.setMainWidget( w); > > > > w->show(); > > > > return app.exec(); > > > > } > > > > > > > > > > ------------------------------------------------------------------------ > > > > <http://> > > > > -- > > ---------------------------------------------------------------------- > > > > 利用 Windows Live™ Photos 輕?分享相片。 簡易上載及分享照片 > > > > <http://www.microsoft.com/windows/windowslive/photos.aspx> > > > > > > -- > > > You are currently subscribed to cgal-discuss. > > > To unsubscribe or access the archives, go to > > > https://lists-sop.inria.fr/wws/info/cgal-discuss > > > > > > ------------------------------------------------------------------------ > > 利用 Windows Live™ Photos 輕?分享相片。 簡易上載及分享照片 > > <http://www.microsoft.com/windows/windowslive/events.aspx> > > -- > You are currently subscribed to cgal-discuss. > To unsubscribe or access the archives, go to > https://lists-sop.inria.fr/wws/info/cgal-discuss 收發郵件以外 - 了解更多Windows Live™卓越功能 收發郵件以外更多功能 |
- [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version, Kwok Jasper, 12/26/2008
- RE: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version, Kwok Jasper, 12/26/2008
- Re: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version, Fernando Cacciola, 12/26/2008
- RE: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version, Kwok Jasper, 12/26/2008
- Re: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version, Andreas Fabri, 12/26/2008
- RE: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version, Kwok Jasper, 12/26/2008
- Re: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version, Andreas Fabri, 12/26/2008
- RE: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version, Kwok Jasper, 12/27/2008
- Re: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version, Andreas Fabri, 12/26/2008
- RE: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version, Kwok Jasper, 12/26/2008
- Re: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version, Fernando Cacciola, 12/26/2008
- RE: [cgal-discuss] about using Qt4.4.3 with CGAL3.4 beta version, Kwok Jasper, 12/26/2008
Archive powered by MHonArc 2.6.16.