Commit Graph

110 Commits

Author SHA1 Message Date
Laurent Rineau dbd0bcc4ae The Viewer declares if the current drawing is a fast draw or not. 2012-11-23 13:57:12 +01:00
Laurent Rineau b001313ead Scene_item::draw*() functions receive a pointer to the Viewer
- New interface Viewer_interface to that the pointer is a pointer to
Viewer_interface instead of a pointer to Viewer.
- New functions overloads
     draw(Viewer_interface*)
     drawEdges(Viewer_interface*)
  and so on.
2012-11-23 13:57:00 +01:00
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
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
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 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