Commit Graph

546 Commits

Author SHA1 Message Date
Sébastien Loriot 94ab226931 if the list is empty remove the entry 2012-10-18 10:34:20 +00:00
Sébastien Loriot 8f00b09c93 fix english 2012-10-18 09:47:10 +00:00
Sébastien Loriot 418dccec73 QSetting knows how to handle QListString 2012-10-18 09:35:50 +00:00
Laurent Rineau 85061da825 Add a shortcut to &Preferences 2012-10-18 09:34:30 +00:00
Sébastien Loriot b190ab9cbe add missing file 2012-10-18 09:29:01 +00:00
Sébastien Loriot 7afb39dab3 add a preference menu that for now only allow to edit blacklisted plugins 2012-10-18 09:22:37 +00:00
Sébastien Loriot 2935b5f9d9 rename io_plugin 2012-10-18 09:20:33 +00:00
Sébastien Loriot b2afce039a add a mechanism to prevent a plugin to be loaded
for example, adding in the config file

plugin_blacklist=gocad_plugin|

will prevent the gocad to be loaded
2012-10-17 16:18:07 +00:00
Laurent Rineau abd413f3fc Cherry pick a bug-fix to demo/Polyhedron/Polyhedron_demo_orient_soup_plugin.cpp
| ------------------------------------------------------------------------
  | r72724 | lrineau | 2012-10-09 15:30:02 +0200 (Tue, 09 Oct 2012) | 4 lines
  | Changed paths:
  |    M /branches/features/Mesh_3-experimental-GF/Polyhedron/demo/Polyhedron/Polyhedron_demo_orient_soup_plugin.cpp
  | 
  | The orient_soup_plugin applies also to polyhedron items
  | 
  | because of the "shuffle" function.
  | 
  | ------------------------------------------------------------------------
2012-10-09 13:33:06 +00:00
Laurent Rineau 778ba6174f Bug fix when the polygons soup is a polyhedron with borders
An orientable polygons soup with border was incorrectly said
non-orientable.
2012-09-27 14:11:22 +00:00
Laurent Rineau fe83cbfaa1 Fix the overriding of the cursor
When several polygon soups are oriented at the same time, there was a bug.
2012-09-27 14:10:32 +00:00
Laurent Rineau a83fcd1632 Better "orient polygons soup"
- The list of non manifold edges is now a set of canonicalized edges.
- The flooding process that orients the polygons no stops at edges that are
  known to be non manifold.

The result is better that way.
2012-09-24 12:03:13 +00:00
Laurent Rineau 0e2878da8c Add shortcuts to actions 2012-09-24 12:01:21 +00:00
Laurent Rineau 773fb1cf5a Fix calls to addToRecentFiles
The menu of "recent files" was no longer filled correctly.
2012-09-20 10:32:39 +00:00
Sébastien Loriot a18b9ee368 add Pierre's polyline smoother in item context menu 2012-09-12 07:34:15 +00:00
Sébastien Loriot 83253064e3 convex hull can also be applied to polylines 2012-09-11 08:59:18 +00:00
Laurent Rineau a53a1f305f Use the wait cursor during the loading of a file (can last long) 2012-09-03 13:54:58 +00:00
Sébastien Loriot df2fb628cf clear incorrect tag 2012-08-28 11:48:12 +00:00
Sébastien Loriot 082612b1ce add camera position plugin from Mesh_3-experiments-GF
if I did not forget something, the demos are now in sync except the mesh_3 related parts
2012-08-22 16:06:18 +00:00
Sébastien Loriot 39dc711a64 manual import of patches from feature branch Mesh_3-experiments-GF
------------------------------------------------------------------------
r66318 | lrineau | 2011-11-14 19:40:54 +0100 (Mon, 14 Nov 2011) | 4 lines

Default context menu for the infoLabel

Now that the infoLabel is browsable, use the default context menu, instead
of the scene context menu.
------------------------------------------------------------------------

------------------------------------------------------------------------
r66316 | lrineau | 2011-11-14 19:40:51 +0100 (Mon, 14 Nov 2011) | 3 lines

The text of the infoLabel is now browsable

The text of the infoLabel can be selected and copied to the clipboard.
------------------------------------------------------------------------

------------------------------------------------------------------------
r68601 | lrineau | 2012-04-18 12:00:20 +0200 (Wed, 18 Apr 2012) | 1 line

Read/Save the antialiasing setting
------------------------------------------------------------------------

only the children part from this one:
------------------------------------------------------------------------
r64283 | lrineau | 2011-06-21 16:57:09 +0200 (Tue, 21 Jun 2011) | 5 lines

Make mesh_3_plugin call the slot detectSharpEdges() directly

Plugins are now children of the main window. mesh_3_plugin can search for
the detect_sharp_edges_plugin among the children of MainWindow, and call
its slot detectSharpEdges() directly.
-----------------------------------------------------------------------
2012-08-22 15:55:32 +00:00
Sébastien Loriot c6df9cdc85 manual import of patches from feature branch Mesh_3-experiments-GF
|------------------------------------------------------------------------
  |r66673 | lrineau | 2011-12-06 15:40:22 +0100 (Tue, 06 Dec 2011) | 1 line
  |
  |Fix the "Erase all" action
  |------------------------------------------------------------------------

  |------------------------------------------------------------------------
  |r66512 | lrineau | 2011-11-24 15:33:59 +0100 (Thu, 24 Nov 2011) | 5 lines
  |
  |Do not use GL_COMPILE_AND_EXECUTE with display lists
  |
  |If we call glNewList with GL_COMPILE_AND_EXECUTE, then any glGetError()
  |inside triggers an GL_INVALID_OPERATION error. Now one uses GL_COMPILE and
  |then call the list just after its creation.
  |------------------------------------------------------------------------

  |------------------------------------------------------------------------
  |r64472 | sloriot | 2011-06-29 14:28:00 +0200 (Wed, 29 Jun 2011) | 3 lines
  |
  |draw only one out of the two opposite halfedges in nef
  |
  |
  |------------------------------------------------------------------------
  |------------------------------------------------------------------------
  |r67665 | lrineau | 2012-02-08 16:12:11 +0100 (Wed, 08 Feb 2012) | 1 line
  |
  |Display the selected vertex's point, if the polyhedron selection
  |------------------------------------------------------------------------

  |------------------------------------------------------------------------
  |r64570 | lrineau | 2011-07-04 16:04:28 +0200 (Mon, 04 Jul 2011) | 5 lines
  |
  |The Show Point dialog is pre-filled with the clipboard.
  |
  |If the content of the clipboard (either the selection clipboard or the
  |normal clipboard) matches, the line edit of the Show Point dialog is
  |pre-filled with that content.
  |-----------------------------------------------------------------------

  |------------------------------------------------------------------------
  |r66511 | lrineau | 2011-11-24 15:33:57 +0100 (Thu, 24 Nov 2011) | 5 lines
  |
  |Fix an OpenGL bug
  |
  |"::glDisable(GL_POLYGON_SMOOTH_HINT)" is not right. That gives an
  |GL_INVALID_ENUM error. One must use "glHint(GL_LINE_SMOOTH_HINT,
  |GL_FASTEST)" instead.
  |------------------------------------------------------------------------

  |------------------------------------------------------------------------
  |r66510 | lrineau | 2011-11-24 15:33:55 +0100 (Thu, 24 Nov 2011) | 4 lines
  |
  |New file with a function CGAL::check_gl_error(filename, line_nb)
  |
  |That function checks if the OpenGL stack has errors, and display them. It
  |uses GLU to get error strings for error enums (gluErrorString).
  |------------------------------------------------------------------------
2012-08-22 15:36:50 +00:00
Sébastien Loriot 6b602e456f restore cursor if changed 2012-08-22 14:56:26 +00:00
Sébastien Loriot 1f05b45c31 add gocad plugin from from feature branch Mesh_3-experimental-GF 2012-08-22 14:51:11 +00:00
Sébastien Loriot 99392cffd6 add stl_plugin from feature branch Mesh_3-experimental-GF 2012-08-22 14:47:46 +00:00
Laurent Rineau 2db4effa7e CMake: Fix the handling of cmake_policy
That is a followup-to my commit last year:
  | ------------------------------------------------------------------------
  | r63198 | lrineau | 2011-04-28 19:45:22 +0200 (Thu, 28 Apr 2011) | 5 lines
  | 
  | Try to fix my last revision about cmake_policy, with CMake-2.6.x
  | 
  | CMake gives an error if one tries to use cmake_policy(VERSION x.y.z) if
  | x.y.z is greater than the current CMake version.
  | 
  | ------------------------------------------------------------------------

The following check:
  if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
is useless just after a call to:
 cmake_minimum_required(VERSION 2.6.2)



The script used to fix that was:


#!/usr/bin/env perl

$replacement=<<'END';
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3)
  cmake_policy(VERSION 2.8.4)
else()
  cmake_policy(VERSION 2.6)
endif()
END

while(<>) {
    if(/if\("\${CMAKE_MAJOR_VERSION}.\${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6\)/) {
        while(<>) {
            if(/^endif\(\)/) {
                print "$replacement";
                while(<>) {
                    print;
                }
                exit 0
            }
        }
    }
    print;
}
2012-08-22 12:35:03 +00:00
Laurent Rineau d0f837e36d Restore the default cursor after an exception catching 2012-08-17 08:55:05 +00:00
Laurent Rineau a04891ff93 WARNFIX: fix some warnings triggered by -Wconversion on g++ 2012-08-09 16:06:54 +00:00
Laurent Rineau 1838684a6a Fix compilation of Polyhedron and Mesh_3 demos on Windows 2012-08-09 14:26:24 +00:00
Laurent Rineau ecbd229369 WARNFIX: bad use of size_t whereas int was the right type 2012-08-09 12:45:11 +00:00
Philipp Möller a11939ab53 Make the linking explicit
The change in CGAL_USE_FILE made it necessary to specify linking
dependencies explicitly. Adds a small macro add_item to smooth out the
process for items.
2012-08-09 10:14:20 +00:00
Sébastien Loriot 8459fc6485 update the default polyhedron to have indices in simplices
so that plugin can simply attach properties to them.
2012-08-03 15:22:58 +00:00
Sébastien Loriot 8fdfaaf041 add a way to not update automatically the color vector
(in case a plugin has fixed it)
2012-08-03 13:20:30 +00:00
Sébastien Loriot b2bb0ce45a simpler patch for removing info with item (r67819).
Revert r70929
2012-08-01 15:22:03 +00:00
Sébastien Loriot 94a1c41aa3 please test your change before commiting 2012-08-01 15:05:11 +00:00
Sébastien Loriot 5429eb8b3e give access to the color vector to let a plugin use its own colors 2012-08-01 14:18:14 +00:00
Laurent Rineau db194534c7 First big patch to fix -Wunused-local-typedefs
-Wunused-local-typedefs is a new warning flag of gcc-4.7, and it will enabled
 by -Wall since gcc-4.8 (not yet released).

The fix is a big set of removals of unused typedefs (or comments, or moves,
depending on the context).
2012-08-01 13:29:16 +00:00
Sébastien Loriot ea408a8602 update info when items are deleted 2012-08-01 06:16:15 +00:00
Sébastien Loriot eecde00a77 import nef io plugin from Mesh_3-experimental-GF 2012-08-01 05:37:55 +00:00
Sébastien Loriot 9e16ac5e21 update polyline filters 2012-08-01 05:35:31 +00:00
Sébastien Loriot e7b9064869 import Polyhedron affine transform plugin from Mesh_3-experimental-GF 2012-08-01 05:27:21 +00:00
Sébastien Loriot 6799a36fb0 do not try plugins to load if the file does not exist 2012-08-01 05:19:40 +00:00
Sébastien Loriot 48f8192d76 fix normal display 2012-08-01 05:13:43 +00:00
Laurent Rineau e852c4d62b std::invalid_argument derives from std::logic_error. 2012-07-31 15:46:23 +00:00
Laurent Rineau 5e9afc49f7 Cherry-pick that revision, to restore scripts in the demo:
| ------------------------------------------------------------------------
  | r70911 | lrineau | 2012-07-31 17:30:38 +0200 (Tue, 31 Jul 2012) | 4 lines
  | Changed paths:
  |    M /branches/features/Mesh_3-experimental-GF/Polyhedron/demo/Polyhedron/MainWindow.cpp
  |    M /branches/features/Mesh_3-experimental-GF/Polyhedron/demo/Polyhedron/MainWindow.h
  |    M /branches/features/Mesh_3-experimental-GF/Polyhedron/demo/Polyhedron/MainWindow.ui
  |    M /branches/features/Mesh_3-experimental-GF/Polyhedron/demo/Polyhedron/geomodel.js
  |    M /branches/features/Mesh_3-experimental-GF/Polyhedron/demo/Polyhedron/testsuite.js
  | 
  | Restore the handling of scripts
  | 
  | + add a shortcut to the new "load script" action.
  | 
  |
  ------------------------------------------------------------------------
The .js files are not commited in next.
2012-07-31 15:45:47 +00:00
Sébastien Loriot 96506df9c1 match composed extensions and several extension per file type 2012-07-31 14:03:20 +00:00
Laurent Rineau 10dd183ca6 Stupid bug: the script *loader* must use getOpenFileName
instead of getSaveFileName! Please test what you commit!!
2012-07-31 12:39:34 +00:00
Sébastien Loriot eb95b00499 fix display mode selection induced by introduction of a new display mode 2012-07-27 13:52:01 +00:00
Sébastien Loriot b22a192d40 fix display of polyhedron items 2012-07-27 13:32:48 +00:00
Sébastien Loriot e060d19f7d display error 2012-07-27 13:24:39 +00:00
Sébastien Loriot 9deba05a96 restore properties accidently erased 2012-07-27 13:10:37 +00:00