Commit Graph

13 Commits

Author SHA1 Message Date
Laurent Rineau 9670c42403 Begin to update Polyhedron demo from work done in the Mesh_3 dev'branch
Step 3:

  - Update the API of the Scene and Viewer class (some methods are not yet used).

  - Update the CMakeLists.txt, to compile all major classes of the
    framework (Scene, Viewer, Scene_item) into a demo_framework library.
2011-06-03 14:40:06 +00:00
Laurent Rineau 15d7658427 Move the refactored Polyhdron demo to trunk. That version is now the
official one!
2009-04-22 08:38:37 +00:00
Laurent Rineau cc78922d1b Move the current demo/Polyhedron to demo/Polyhedron.old 2009-04-22 08:36:52 +00:00
Laurent Rineau 029aff845e Fix display of textured polyhedra. 2008-09-22 14:32:50 +00:00
Pierre Alliez 766cd4e567 more wait cursors and console outputs.
now render edges in black
2008-08-11 18:43:21 +00:00
Laurent Rineau 90637a6159 - Add tooltips for Nef_polyhedron.
- Scene::bbox() is moved to Scene_nef_and_polyhedron_operations.cpp
- Fix display of Nef_polyhedron entries.
  Details:
    - no longer use <CGAL/Nef_3/OGL_helper.h>
    - Scene::gl_render_nef_facets(Nef_polyhedron*) has been written from
      scratch (inspired by pieces of OGL_helper).
    - Use model light FRONT_AND_BACK for Nef_polyhedron entries, because
      Nef_polyhedron does not have the inside_out operation.
2008-08-01 18:24:14 +00:00
Laurent Rineau 796a0ee86e Use best OpenGL anti-aliasing, when anti-aliasing is opted. 2008-07-29 10:44:16 +00:00
Laurent Rineau 7c4e6dd0b8 Add Viewer::drawWithNames() and Viewer::postSelection(): that implements
the feature "selection with mouse" (Shift+LeftButton simple click).

Scene::draw now has a boolean parameter (draw with name or not).
2008-07-16 22:29:34 +00:00
Pierre Alliez 387084df22 cleanup interface and viewer 2008-07-11 15:46:51 +00:00
Laurent Rineau da771637ac Un-inline Viewer::setAntiAliasing(bool). That decrease the readability of
the code.
2008-07-11 15:08:50 +00:00
Laurent Rineau c5b91d2f33 Use "::Qt" for the Qt namespace, instead of "Qt" (because CGAL::Qt now
exists).
2008-07-11 12:19:46 +00:00
Laurent Rineau 89faa7f11f - Add an action "Anti-aliasing" in the view menu. Off by default. Scene has
a setAntiAliasing fucntion.
- One can now drag-drop several files at once. Scene::open(QString) is
  called for each.
- In Scene.cpp, Scene::open() displays a warning dialog when the file is
  not an OFF file.
- The polyhedra list is now in a QDockWidget, on the left by default. That
  way the list can be moved in the user interface (like other dock
  widgets). The "View" menu has an option to show/hide the dock widget.
- Subdivision methods now call viewer-updateGL(), so that the viewer
  repaint itself after a polygon is modified.
2008-07-09 14:41:09 +00:00
Laurent Rineau 88f7f33c5f First version of Polyhedron demo with Qt4. 2008-07-08 14:18:33 +00:00