Commit Graph

84 Commits

Author SHA1 Message Date
Andreas Fabri 00b45e977d after presentation at Inria 2008-06-25 20:16:44 +00:00
Andreas Fabri 4a92e20e15 after presentation at Inria 2008-06-25 20:08:32 +00:00
Andreas Fabri d159174d2c after presentation at Inria 2008-06-25 20:03:48 +00:00
Andreas Fabri 153144ab17 after presentation at Inria 2008-06-25 19:55:27 +00:00
Andreas Fabri 2d3816ec73 after presentation at Inria 2008-06-25 19:54:33 +00:00
Andreas Fabri 132153d513 after presentation at Inria 2008-06-25 19:41:13 +00:00
Andreas Fabri 08847b08b0 after presentation at Inria 2008-06-25 19:24:33 +00:00
Andreas Fabri 2370b885cb after presentation at Inria 2008-06-25 19:10:50 +00:00
Laurent Rineau 47bce71dcf New feature in QtNavigation: Ctrl+Shirt+RightButton moves the point under
mouse to the center of the viewport.
2008-06-24 14:32:59 +00:00
Laurent Rineau 519cb27584 A QtInput must be constructed with a parent (that can be 0).
Thus a QtPolylineInput must also be constructed with a parent!
2008-06-24 14:32:03 +00:00
Laurent Rineau 44e8f0fdc1 Remove Delaunay-Voronoi stuff. 2008-06-24 14:16:39 +00:00
Laurent Rineau c8b36d6419 I had switched left and right by error! 2008-06-24 14:16:22 +00:00
Andreas Fabri 23392f37b6 Short presentation 2008-06-24 13:57:55 +00:00
Laurent Rineau a1892acb54 Minor modifications:
- clear the mouse coordinates QLabel, at the very beginning,
  - turn the vertical axe upside down.
2008-06-24 13:55:41 +00:00
Laurent Rineau 52c828657c - Store a Vertex_handle, as the hint, instead of a Face_handle: Vertex_handle
survive to insert(), Face_handle do not.
- vh->face() is used as the Face_handle hint, if vh!=Vertex_handle().
2008-06-24 12:52:27 +00:00
Laurent Rineau a162192fe8 bool drawEdges() was not used by QtConstrainedTriangulationGraphicsItem 2008-06-24 12:29:41 +00:00
Laurent Rineau 7d811a656b Display circumcircles even if the triangulation is contrained. 2008-06-24 12:26:31 +00:00
Laurent Rineau 0b1d985e33 Code review in MainWindow:
- Add dgi and vgi at the beginning, and use show()/hide() instead of
    addItem/removeItem.
  - Merge connectActions() into MainWindow's constructor. That is clearer
    like that.
  - Add comments in the constructor.
  - Rewrite the two action handlers aboutCGAL and aboutDemo: use html file
    in a resource. That works! The "About CGAL" dialog now has a big shiny
    CGAL logo! :-)
2008-06-20 16:52:41 +00:00
Laurent Rineau 819de032cc Partially revert revision 43718:
once an item is added to a scene, the scene is responsible for its
  deletion!
2008-06-20 16:26:35 +00:00
Laurent Rineau 7e40e00fa4 Fix again the previous commit. I forgot to commit <CGAL/IO/QtInput.h>.
Sorry for the spam.
(QObjects must have parents!)
2008-06-20 15:50:24 +00:00
Laurent Rineau 32a5519e5f (Fix the previous commit.)
QObjects must have parents!
2008-06-20 15:49:27 +00:00
Laurent Rineau e51aa26320 QObjects must have parents! 2008-06-20 15:46:40 +00:00
Laurent Rineau f7eb596370 Do not eat the move event! 2008-06-20 15:41:46 +00:00
Laurent Rineau c115427e74 Code review:
- add a destructor to destroyed circle, which is not a QObject
  - use fh as a hint.
2008-06-20 15:39:18 +00:00
Laurent Rineau af51cec326 Code review:
- Use fh as an hint, to avoid to localize the moving point without hint
    each time it moves.
  - Code factorisation between mousePressEvent and mouseMoveEvent.
2008-06-20 15:03:49 +00:00
Laurent Rineau 0fb2c81d53 Update the TODO file. 2008-06-20 12:54:01 +00:00
Laurent Rineau 6f66801b11 Small updates to the documentation: fix typos, small corrections, add
headings where needed.
2008-06-20 12:46:38 +00:00
Laurent Rineau 78dffac531 - Merge/Move QtPolylineInput_non_templated_base.* files into
QtPolylineInput.*

  The need to split QtPolylineInput into a templated class and a
  non-template base class exists, but there is not need to split the header
  into two headers. QtPolylineInput_non_templated_base can be seen as an
  auxiliary class of QtPolylineInput.

- Turn Point_2<K> into K::Point_2 in <CGAL/IO/QtConverter.h>, to avoid the
  inclusion of <CGAL/Point_2.h>.

- Put most Qt Resource files into the CGALQt4 library, instead of linking
  them into the demo.
2008-06-20 10:10:44 +00:00
Laurent Rineau e2ba21fd83 Fix typos.
Add a html link to the Qt web page, at Trolltech.

I think that, in the HTML version, we should put links to the Qt
documentation.
2008-06-20 09:44:16 +00:00
Andreas Fabri d7bb6d8884 yet another round of renaming 2008-06-19 13:13:04 +00:00
Andreas Fabri 61d95e05e5 Better names 2008-06-19 12:52:23 +00:00
Andreas Fabri 189177144d Better names 2008-06-19 12:51:01 +00:00
Andreas Fabri 8d1d113622 more compact diagram 2008-06-19 12:38:11 +00:00
Laurent Rineau bcee0b3e5c Scale the huge picture to the width of the page. 2008-06-19 12:34:47 +00:00
Laurent Rineau 13d1e11489 Fix a typo. 2008-06-19 12:34:25 +00:00
Andreas Fabri 446d25d897 diagram as eps 2008-06-19 12:29:08 +00:00
Andreas Fabri 6e99dcc17f diagram as eps 2008-06-19 12:28:51 +00:00
Andreas Fabri 54509a4b85 Added UML diagram 2008-06-19 12:26:02 +00:00
Andreas Fabri 0b0490e398 Added user manual text 2008-06-19 12:25:11 +00:00
Andreas Fabri f8cbccc776 A preliminary version 2008-06-18 16:19:11 +00:00
Laurent Rineau b873a87c96 - Move two cpp file into src/CGALQt4/
- Build a library "CGAL-Qt4".

I do not now yet how to include that library into the set of libraries of
CGAL.
2008-06-18 14:38:38 +00:00
Laurent Rineau acbe95abee Make QtPolylineInput_non_templated_base have a protected constructor. An
object of that class cannot be constructed directly (use QtPolylineInput<K>
instead).
2008-06-18 13:36:40 +00:00
Laurent Rineau 87e1ef1427 Remove the almost empty .cpp wrappers around .moc files. The moc-generated
files are now compiled directly.
2008-06-18 13:35:08 +00:00
Laurent Rineau 899630711b Remove MainWindow.rcc, which is a generated file. 2008-06-18 11:00:45 +00:00
Laurent Rineau 40f5ba9ec6 Move some header to include/CGAL/IO/, and rename the corresponding classes:
- "Qt" as prefix, instead of a simple "Q",
  - no "_2" suffix.

(Next commit will be the move of some .cpp files to src/CGALQt4/ and the
creation of a new CGAL library.)
2008-06-18 10:57:39 +00:00
Laurent Rineau dcd3efa221 - QNavigation2 is merge into QNavigation.
- QTriangulationVerticesGraphicsItem_2 is merged into
  QTriangulationGraphicsItem_2.
- Better event filtering in QNavigation.
- Remove QDatastructure. MainWindow is now responsible for inserting
  objects (points, polylines) into the triangulation.
- In MainWindow.h: include less headers. Use forward declarations when
  possible.
- In MainWindow.cpp and MainWindow.ui: 
     - add a "Recenter" action, that allows to center and scale the
       viewport on the triangulation,
     - add shortcuts and mnemonic to actions.
- Allow the use of the OpenGL QPaintEngine, instead of the traditional one.
2008-06-18 09:45:36 +00:00
Andreas Fabri 734d550728 Circle input handler 2008-06-16 21:40:18 +00:00
Laurent Rineau 06189aeaa4 Correct the bug that i introduced in QPolylineInput_2<K> with
revision 43589.
2008-06-13 16:48:28 +00:00
Laurent Rineau 620539ee4e The "Zoom rectangle" is implemented (as an experiment in min.cpp).
Not the nice transparent "CGAL yellow" color. :-)
2008-06-13 16:36:10 +00:00
Laurent Rineau 5cd6938492 Updated version of the minimal test demo:
- The arrow keys (up, down, left, right) work as expected, now. When they
  are used, the sceneRect of the view if extended.
2008-06-13 13:48:33 +00:00