Commit Graph

1291 Commits

Author SHA1 Message Date
Radu Ursu 67703a90ed - added demo howto for Convex_hull_2, Partition_2, Minimum_ellipse_2, Largest_empty_rect_2, Max_k-gon, Minimum_quadrilateral
- restructured partition_2 demo
	- made demos more uniform
	- modified project files for Partition_2, Triangulation_2, Regular_triangulation_2
2003-03-25 12:52:33 +00:00
Radu Ursu a2a7fca138 modified the project to reflect latest changes 2003-03-24 15:18:50 +00:00
Radu Ursu 95137c0b5a made this project binary file on the CVS 2003-03-24 14:36:59 +00:00
Radu Ursu 7ff219b4fd removed to make it binary 2003-03-24 14:36:05 +00:00
Radu Ursu faeef5a959 modified the projects to reflect the latest changes 2003-03-24 14:33:16 +00:00
Radu Ursu 79a6c1b2e3 Fixed help howto in Triangulation_2
Added Help HowTo in Partition_2 demo.
Modified Partition_2 demo:
- moved layers files in partition_2_layers.h
- renamed Qt_widget_toolbar... stuff in partition_2_toolbar...
2003-03-24 14:04:01 +00:00
Radu Ursu 9cd3a69328 added Help HowTo for:
- Convex_hull_2
- Max_k-gon
- Min_ellipse_2
- Min_quadrilateral_2
- Largest_empty_rect_2

also made the layers uniform: PointStyle(DISC)
2003-03-24 12:59:31 +00:00
Radu Ursu c73ddb8ed4 Modified the "move_point" layer in order to set mouse position after choosing menu option. 2003-03-20 09:18:19 +00:00
Radu Ursu 50867419b0 Undo changes did earlier:
moved templated x_real from Qt_widget.C in the header
2003-03-19 10:46:32 +00:00
Radu Ursu 187bc1d59e fixed error in intro.tex \renewcommand -> \newcommand
moved x_real templated versions in Qt_widget.C
documented well the versions of x_real method
2003-03-19 10:11:28 +00:00
Radu Ursu 35adf597e0 modified the makefile to build the regular_triangulation_2 demo too. 2003-03-19 08:55:29 +00:00
Radu Ursu cc601e873e modified the makefile too for the latest changes 2003-03-18 16:17:21 +00:00
Radu Ursu 3de2cf149f changed file name from
Qt_widget_move_point.h/C -> triangulation_2_edit_vertex.h/C
added layers toolbar in regular triangulation
2 classes appeared in triangulation_2_edit_vertex.h/C:
triangulation_2_edit_vertex
triangulation_2_edit_weightedpoint
They are both derived from triangulation_2_edit_vertex_helper
The weighted point edit layer is able to remove point, move point and change the weight.
2003-03-18 15:55:52 +00:00
Radu Ursu ec63c51fac Bump for 1.3.25 (18 Mar 2003) 2003-03-18 09:34:18 +00:00
Radu Ursu b053b92cfa - fixed bug in Triangulation_2 demo (uses Qt_widget_toolbar_layers.h that doesn't exist)
- added Qt_widget_move_weightedpoint layer in Qt_widget_movepoint.h
2003-03-18 09:33:55 +00:00
Radu Ursu 60b6dd8590 fixed bug in triangulation_2_demo. (using old Qt_widget_toolbar_layers.h that no longer exist)
added Qt_widget_move_weightedpoint class for regular tr 2 demo.
2003-03-18 09:15:03 +00:00
Radu Ursu e8396407dd see changes 2003-03-17 10:38:39 +00:00
Radu Ursu c53a51a0f5 Bump for 1.3.24 (14 Mar 2003) 2003-03-14 10:16:33 +00:00
Radu Ursu 9273b7c4b7 1.3.24 - 14/03/2003 (rursu)
-------------------
	radu:
	- Added Regular_triangulation_2 demo in Triangulation_2 dir
	- Modified names in Triangulation_2 dir of toolbar and toolbar_layers
	- Modified the Makefile to compile the doc, ref pages and tutorial
2003-03-14 10:16:16 +00:00
Radu Ursu 806b509270 added support in Makefile to compile the doc
improved Makefile to compile the reference pages too
2003-03-14 10:11:26 +00:00
Radu Ursu c981520c7a Added regular_triangulation_2 demo
renamed the toolbar files in triangulation
modified the makefile but didn't add yet the regular for testing. I still have couple more things to modify.
2003-03-14 08:48:32 +00:00
Laurent Rineau 4d9d6d14db Fix bug #61. 2003-03-12 11:15:27 +00:00
Radu Ursu 869558a766 Fixed bug in resize Bugzilla Bug 60.
Introduced 4 more backup doubles: xmin_old, xmax_old ...
It seems to me it's ok.
2003-03-12 10:04:27 +00:00
Laurent Rineau c13051e01e Fix a compile time bug. 2003-03-11 16:19:59 +00:00
Radu Ursu 13a66553ff Bump for 1.3.23 (11 Mar 2003) 2003-03-11 10:15:00 +00:00
Radu Ursu be36e0c0fa updated 2003-03-11 10:14:45 +00:00
Radu Ursu 2e075e94c1 Undo changes did by mistake. 2003-03-11 09:51:53 +00:00
Radu Ursu 24cd334b99 Fixed bug from removing the namespace in this layer.
LineWidth -> CGAL::LineWidth
2003-03-10 18:04:28 +00:00
Laurent Rineau 086a000b51 Remove the use of Qt_widget::back() and Qt_widget::forward() that are deprecated 2003-03-10 17:45:27 +00:00
Laurent Rineau 9ecfb3b737 Add a usefull comment in set_center 2003-03-10 17:44:32 +00:00
Radu Ursu 9b6ff841f6 removed warnings lines too long for ever :) 2003-03-10 17:15:44 +00:00
Radu Ursu c86c136be9 removed warnings lines too long 2003-03-10 17:14:54 +00:00
Radu Ursu a60cb8918b fix for namespace removal 2003-03-10 17:01:28 +00:00
Radu Ursu f6e644cd59 fixed bug 45.
I have tried to remove the namespace from demos, it was very stupid from our part to have it allover.
I have found the namespace everywhere.
It could happen that this fix will produce bugs, I couldn't test everything because of bugs in the CGAL library
2003-03-10 16:34:42 +00:00
Radu Ursu ec459d1b5e fixed bug 58. Please verify and close the bug. 2003-03-10 14:55:30 +00:00
Radu Ursu 44f6f98848 fixed sl_set_window -> set_window 2003-03-10 13:38:40 +00:00
Radu Ursu 9f5e8d6128 removed set_window member from MainWindow class
The application only use set_window from Qt_widget instance widget
removed portability warnings from VC7 projects
2003-03-10 13:36:41 +00:00
Radu Ursu a9a5839944 removed set_window member from MainWindow class
The application only use set_window from Qt_widget instance widget
2003-03-10 13:02:42 +00:00
Radu Ursu 7bfa05db83 removed set_window member from MainWindow class
The application only use set_window from Qt_widget instance widget
2003-03-10 12:51:17 +00:00
Radu Ursu a906f1e4c8 added clear_history before set_window when creating a new window
fixed project and removed portability warnings
2003-03-10 12:40:08 +00:00
Radu Ursu 6ee21fa1c6 fixed bug in Qt_widget_toolbar.h using K2, not K1
fixed project and removed portability warnings
2003-03-10 12:25:48 +00:00
Radu Ursu 6c1ad9dcc6 removed set_window from MainWindow. Now remains only in Qt_widget.
we should do the same with the others demos too.
and line too long
2003-03-10 10:44:33 +00:00
Radu Ursu 96f363b178 removed set_window from MainWindow. Now remains only in Qt_widget.
we should do the same with the others demos too.
2003-03-10 10:37:40 +00:00
Radu Ursu 094a44e00e removed warnings: 3 vars unused, but defined 2003-03-10 09:58:51 +00:00
Radu Ursu ac7e0c1f1c Added Qt_widget_history.C in the project file for release and debug configuration. 2003-03-10 09:56:26 +00:00
Radu Ursu 2368e09427 removed tabs from this file 2003-03-10 08:57:38 +00:00
Radu Ursu 04fdaf3b25 removed demo.dsw from Nef2 2003-03-10 08:25:06 +00:00
Radu Ursu bbc38317b3 custom_redraw() signal is deprecated. It was kept for back comp.
It was replaced by:
redraw_on_back() and redraw_on_front() signals.
2003-03-03 10:26:24 +00:00
Radu Ursu 94e443bb93 Found bug in zoom. xmin -> ymin. 2003-03-03 09:19:40 +00:00
Radu Ursu b4a8bd0091 For applications that don't use set_window( , , , ) the constructor of Qt_widget should call emit(rangesChanged()); 2003-03-03 09:14:53 +00:00
Laurent Rineau 1f6ae50e76 Remove the Mesh_2 stuff that I had commited be error. 2003-03-01 11:47:46 +00:00
Laurent Rineau 328eda2008 Fix bug #37: "Memory leak in src/CGALQt/Qt_widget_standard_toolbar.C" 2003-02-27 15:15:20 +00:00
Laurent Rineau 254814148c fix a dependancy 2003-02-27 13:16:44 +00:00
Laurent Rineau e7f332eca4 Remove the use of printf 2003-02-27 12:53:27 +00:00
Laurent Rineau 3d6e9d19bb Add a newline at end of file, again. 2003-02-26 17:12:56 +00:00
Laurent Rineau 122e0dc5c7 Bump for 1.3.22 (26 Feb 2003) 2003-02-26 17:05:51 +00:00
Laurent Rineau 6483645517 Rewrite of Qt_widget_standard_toolbar 2003-02-26 17:05:35 +00:00
Laurent Rineau 9b56ab4048 I forgot to remove debugging outputs to std::cerr before commiting. 2003-02-26 15:24:49 +00:00
Laurent Rineau c24d3191b2 The .env requirement was quite dumb. 2003-02-26 15:05:26 +00:00
Laurent Rineau 810c1e805e Bump for 1.3.21 (21 Feb 2003) 2003-02-21 13:59:23 +00:00
Laurent Rineau 83af5db037 Changes for version 1.3.21. 2003-02-21 13:52:00 +00:00
Laurent Rineau e89e4181ed The whole history stuff has been modified as I said in bug#38 comment #5. 2003-02-21 10:59:00 +00:00
Laurent Rineau 03838fe125 Fix warnings 2003-02-18 16:35:56 +00:00
Laurent Rineau db49669416 Add newline at end of files 2003-02-18 16:33:43 +00:00
Laurent Rineau bbf65076ae Remove an unused parameter name 2003-02-18 15:50:12 +00:00
Laurent Rineau 9055b9116b Add typenames to calm down gcc-3.2.1 warnings. 2003-02-18 15:46:37 +00:00
Laurent Rineau 80f14b8da7 Add newline at end of files. 2003-02-18 15:42:26 +00:00
Radu Ursu a74a3f11ad Bump for 1.3.20 (18 Feb 2003) 2003-02-18 13:23:44 +00:00
Radu Ursu 2ca407e7a2 updated 2003-02-18 13:23:29 +00:00
Radu Ursu 0674c7f305 removed "already defined" errors 2003-02-18 10:56:07 +00:00
Radu Ursu 792cbd1808 added Qt_widget_helpwindow.C 2003-02-18 10:53:58 +00:00
Radu Ursu 14cb9e9114 load constraints get documented in help how to 2003-02-18 10:27:06 +00:00
Radu Ursu d14ced326a Bump for 1.3.19 (17 Feb 2003) 2003-02-17 17:11:10 +00:00
Radu Ursu 59ceeffdaf Bump for 1.3.18 (17 Feb 2003) 2003-02-17 12:52:36 +00:00
Radu Ursu 1c03ac31f6 Bump for 1.3.17 (17 Feb 2003) 2003-02-17 12:25:04 +00:00
Radu Ursu 58074075e3 Bump for 1.3.16 (17 Feb 2003) 2003-02-17 09:14:08 +00:00
Radu Ursu 89d8c8fffd Bump for 1.3.15 (14 Feb 2003) 2003-02-14 16:15:36 +00:00
Radu Ursu 187eaa2d30 updated 2003-02-14 16:15:24 +00:00
Radu Ursu 01091299a1 Bump for 1.3.14 (14 Feb 2003) 2003-02-14 15:54:38 +00:00
Radu Ursu b55aa31e25 Bump for 1.3.13 (14 Feb 2003) 2003-02-14 15:41:09 +00:00
Radu Ursu 0f621be9a2 Bump for 1.3.12 (14 Feb 2003) 2003-02-14 15:09:55 +00:00
Radu Ursu 7dc0517e6e Bump for 1.3.11 (14 Feb 2003) 2003-02-14 14:28:54 +00:00
Radu Ursu 54eebf3d95 Bump for 1.3.10 (14 Feb 2003) 2003-02-14 14:21:09 +00:00
Radu Ursu 5ef01d4fbf removed #include <CGAL/Qt_widget.h> from apply_to_range.h 2003-02-14 13:34:03 +00:00
Radu Ursu 9fc90f7d28 Bump for 1.3.9 (14 Feb 2003) 2003-02-14 12:33:15 +00:00
Radu Ursu 479129d936 removed dsp projects for VC6 2003-02-14 12:32:51 +00:00
Radu Ursu aa9fc8b661 Bump for 1.3.8 (14 Feb 2003) 2003-02-14 11:05:17 +00:00
Radu Ursu ef19828309 removed project files for VC6 2003-02-14 11:03:21 +00:00
Radu Ursu e4e5e02986 Bump for 1.3.7 (13 Feb 2003) 2003-02-13 13:20:17 +00:00
Radu Ursu 7e597586b8 Bump for 1.3.6 (13 Feb 2003) 2003-02-13 12:39:40 +00:00
Radu Ursu ebeda2c36b updated 2003-02-13 12:39:00 +00:00
Radu Ursu 92ff615e9b added #include <qcursor.h> 2003-02-11 14:19:47 +00:00
Radu Ursu c96d342459 Added help how to for Triangulation_2_constrained 2003-02-11 12:06:39 +00:00
Radu Ursu c324a1b8cb fixed bug in new_window for number_of_vertices() <= 1 2003-02-11 10:13:02 +00:00
Radu Ursu 3c4f2d82d9 fixed bug in new_window when tr1.number_of_vertices() <= 1 2003-02-11 10:09:44 +00:00
Radu Ursu d11f7a5818 Triangulation_2_constrained
removed layers and put them in triangulation_2_constrained_layers.h
	added support for new window
	removed namespace CGAL from this demo
Alpha_shapes_2
	when pressing New_window, the viewport fits the bounding box
Triangulation_2
	when pressing New_window, the viewport fits the bounding box
2003-01-30 15:10:30 +00:00
Radu Ursu ae7dee55ee Added help "How To" for Triangulation_2.
Modified the way to change the viewport in Alpha Shape. xmin, xmax, ymin, ymax are at the beginning the values of the first vertices.
2003-01-30 11:25:46 +00:00
Radu Ursu 7686d70b41 Added print functionality 2003-01-29 14:03:45 +00:00
Radu Ursu 3f60ed0138 - added a file named "cgal_types.h" containing types used in this demo
- removed namespace CGAL from this demo (conflict type Rep with Rep class from Handle.h)
2003-01-29 12:42:07 +00:00
Radu Ursu c1fe7b33be Bump for 1.3.5 (21 Jan 2003) 2003-01-21 15:11:39 +00:00
Radu Ursu 26e91e68c9 updated 2003-01-21 15:11:25 +00:00
Radu Ursu 9f9c4c1693 fixed to compile with g++-2.95 with LEDA 2003-01-20 09:56:13 +00:00
Radu Ursu 658967be0e Bump for 1.3.4 (17 Jan 2003) 2003-01-17 10:16:11 +00:00
Radu Ursu f7885b055a updated 2003-01-17 10:15:45 +00:00
Radu Ursu 789b09bb71 The nef_2 demo needs GMP.
It compiles now even if the GMP was not used.
2003-01-16 15:37:10 +00:00
Radu Ursu 0795549010 The helpwindow is a part of the CGALQt library. It was removed from Alpha_shape demo and put in /src/CGALQt/Qt_widget_helpwindow.C and /include/CGAL/IO/Qt_widget_helpwindow.h.
The icons went in the header file(declarations) and the source file(definitions).
2003-01-16 10:20:32 +00:00
Radu Ursu ab03c5262a Removed imposed style and color from all the demos. 2003-01-15 14:51:06 +00:00
Radu Ursu 0680f50dfc The menu and combobox have been fixed 2003-01-15 14:36:11 +00:00
Radu Ursu a868bc1747 - Triangulation_2 demo layers were moved in the triangulation_2_layers.h file
- when generate a triangulation, the new triangulation will fit the window.
2003-01-15 14:10:21 +00:00
Radu Ursu e38250389d Updated the demo how to for Alpha shapes 2 demo. 2003-01-15 09:30:35 +00:00
Radu Ursu ba1e24ee0f - removed the layers header files that moved in alpha_shapes_2_layers.h
- the alpha shape is updated when deleting a vertex. (resolved bug)
2003-01-14 09:03:44 +00:00
Radu Ursu 907a6ed032 added "demo how to" in Help menu.
added data directory
added help directory that will store the "How To" HTML files
the helpwindow class is defined/declared in helpwindow.C/.h files
2003-01-13 15:37:25 +00:00
Radu Ursu 3c2c06fc42 this file contains the big and small pixmaps for alpha_shape demo
this is a new feature that have been added to this demo.
2003-01-08 12:22:53 +00:00
Radu Ursu 86da599f2c Lots of improovements:
- the possibility to activate/deactivate alpha_shape layer at run time
	- the possibility to activate/deactivate image layer at run time
	- all the output layers have been moved in alpha_shapes_2_layers.h file
	- when moving vertex, the alpha_shape reflect changes
	- the new window slot is working well now
	- the possibility to input alpha greater than 1
2003-01-08 12:20:14 +00:00
Radu Ursu 14ed13fcba Bump for 1.3.3 ( 6 Jan 2003) 2003-01-06 10:14:42 +00:00
Radu Ursu 4e36681a4b updated 2003-01-06 10:14:31 +00:00
Radu Ursu 4f3ea8dcc8 updated 2003-01-06 10:13:45 +00:00
Radu Ursu 03d577d706 decommented lines in the gray layer concerning the 2nd nef polyhedron.
both nef2 polyhedrons are visible.
2003-01-06 10:09:45 +00:00
Laurent Rineau d956a7a36b Fix set_scale(). 2002-12-16 18:13:02 +00:00
Radu Ursu fd4db4c8ee fixed bug in set_scales:
double tempmin = min(width(), height());
  double div = min(xmax-xmin, ymax-ymin);
to build the scales the min should have been divided by MIN not by MAX

simplified operations in x_real
2002-12-16 08:15:11 +00:00
Laurent Rineau b84f7a9b63 For version 1.3.2 2002-12-04 09:12:10 +00:00
Laurent Rineau c3c029620b Bump for 1.3.2 ( 4 Dec 2002) 2002-12-04 09:10:47 +00:00
Laurent Rineau 39da2c4efc Fix the constructor under qt-2.3 2002-11-28 11:23:39 +00:00
Laurent Rineau b586f12bbf Added qtoolbutton.h in includes. 2002-11-28 11:23:00 +00:00
Laurent Rineau d17ae5db4b Added endlines to these files, to fix gcc warnings. 2002-11-28 10:31:48 +00:00
Laurent Rineau 31d06fc92d Bump for 1.3.1 (26 Nov 2002) 2002-11-26 14:12:43 +00:00
Laurent Rineau 815758e287 Revert my changes: Qt_widget no longer derives from QFrame. If we want a
border, one can use a QFrame parent of the Qt_widget. It will be probably
more efficient. Thank to Radu for not having agreed to easily: it
prevended my from doing an error. ;-)
2002-11-26 09:58:42 +00:00
Laurent Rineau bc69c33cd6 Added comments about the last modifications I made. 2002-11-26 07:51:14 +00:00
Laurent Rineau 2b2b2a9264 - Renaming set_scale_center(x,y) to set_ranges_const_center(): this
functions set ranges (xmin,ymin,xmax,ymax) with constant center. Arguments
where always equal to xcenter, ycenter thus they were uneeded.
- Use drawContents(QPainter*), the protected method of QFrame called by
QFrame::paintEvent(...). paintEvent(...) is no longer overridden.
- Added comments in include/CGAL/IO/Qt_widget.h to explain the role of
private functions. It was increasingly difficult to understand the code.
- New void Qt_widget::frameChanged() function, that resize the pixmap if
the frame border is changed.
2002-11-26 07:47:03 +00:00
Laurent Rineau 0e589b74ae I forgot to swap the connect(...) too. 2002-11-26 07:28:21 +00:00
Laurent Rineau cd27a5b499 I have changed a lot the class Qt_widget_standard_toolbar.
- It now derives from QToolBar, as it should have since the beginning.
- The constructor has now additional facultative parameters:
    Dock = DockTop,
    bool newLine = true,
    const char* name = 0
  With Qt-3, the first parameter is
QMainWindow::ToolBarDock=QMainWindow::Top
- The header file has been cleaned from uneeded includes or pointer
declarations.
- The backward compatibility has been preserved by adapted default values.
- I have filled bug #36 for as a reminder for documentation changes.
2002-11-26 02:25:54 +00:00
Laurent Rineau 60e3714355 Added a linebreak at end of those files, to remove warnings under linux.
A test file is not correct if it doesn't end by a linebreak.
2002-11-26 01:50:49 +00:00
Laurent Rineau 251d92f0e8 Fix the clean rule in some demo makefiles (Largest_empty_rect_2 and all
tutorials).
We should use create_makefile -q
2002-11-26 01:48:56 +00:00
Laurent Rineau 7db5b59af8 I have a made a change in the library, that can appear to be important,
but is quite small actually:
Qt_widget now derives from QFrame instead of QWidget. The differences are
that:
- the Qt_widget can have a border, like a QFrame
- the drawing area is not the whole Qt_widget but the contentsRect()
rectangle, which is the widget without its border.
As, by default, the border is null, it should change anything for
compatibility. By default, a QFrame is like a QWidget.
2002-11-25 17:44:21 +00:00
Laurent Rineau 3db15d4e86 There wasn't any .cvsignore in the Nef_2 directory. Added. 2002-11-25 17:38:36 +00:00
Laurent Rineau b8812477f5 This file Makefile (with an upper case M) is for development only and
doesn't go into the package.
While developping Qt_widget, the libCGALQt.a file shouldn't be moved into
the CGAL installation! That's why is should be commented.
Under unix, to use this last version anyway, use:
  make CUSTOM_LIBPATH="/path/to/Qt_widget/src/CGALQt"
instead of make. It works with GNU Make at least.
2002-11-25 17:15:22 +00:00
Laurent Rineau 94f873e107 Fix contrained.C: this demo was crashing when the file data/fish wasn't
found.
2002-11-25 17:07:43 +00:00
Laurent Rineau 6e30bfab04 I really don't understand why zoom_rect was changing the color when
deactivating.
2002-11-23 14:04:43 +00:00
Radu Ursu e4fd21ca3b Bump for 1.3.0 (12 Nov 2002) 2002-11-12 13:39:18 +00:00
Radu Ursu 706c52fbb5 updated 2002-11-12 13:39:06 +00:00
Radu Ursu edc1bba4bc The demos know about small and big icons.
By default all the demos use small icons. To change them just use big icons in your mainwindow.
2002-11-12 13:34:23 +00:00
Radu Ursu 5b3cc93b4b small pixmaps were added in the same file as the big pixmaps
the name is composed by : filename_small_xpm
2002-11-12 09:36:42 +00:00
Radu Ursu c78cece288 Bump for 1.2.49 ( 8 Nov 2002) 2002-11-08 08:18:14 +00:00
Radu Ursu b2024bc4a5 updated 2002-11-08 08:17:48 +00:00
Radu Ursu 328d8f6893 Fixed error in VC7 testsuite:
error C2027: use of undefined type 'QMainWindow'
c:\Qt\3.0.4.NET\include\qdockwindow.h(56) : see declaration of 'QMainWindow'
2002-11-06 09:45:18 +00:00
Radu Ursu 071f5cbfe5 Removed CGAL_NO_LEDA_HANDLE macro definition.
The patch applied to install_cgal for CGAL_QT_LDFLAGS when Qt is not installed works also when you use Leda and don't use Qt.
2002-11-04 13:52:38 +00:00
Susan Hert 80b574bae4 remove Susan as maintainer 2002-11-04 11:29:58 +00:00
Radu Ursu e49caf8da6 Try to fix the linker error for those that have Leda installed and don't have Qt. (Borland compiler)
Scavenging LEDA, we provide the identical functionality in the CGAL classes Leda_like_handle and Leda_like_rep. If LEDA is not available or CGAL_NO_LEDA_HANDLE is set, Handle and Rep correspond to these types.


typedef Leda_like_handle Handle;
typedef Leda_like_rep    Rep;
2002-11-04 10:00:10 +00:00
Radu Ursu 6a27f85e3a Fixed bug in VC7. Maibe it was also in Linux. 2002-10-29 17:28:07 +00:00
Radu Ursu 22d44d1fc3 Fixed bug for VC7. Maibe it was also present in Linux. 2002-10-29 16:28:11 +00:00
Laurent Rineau c59fae0fd5 to_double has to be prefixed by CGAL::, even when we are in the CGAL
namespace, because however there can be a conflict with the to_double
function defined by LEDA in the global namespace.
2002-10-28 16:45:53 +00:00
Radu Ursu f580e8f105 Bump for 1.2.48 (25 Oct 2002) 2002-10-25 12:35:54 +00:00
Radu Ursu 922dca2ffa updated 2002-10-25 12:35:43 +00:00
Radu Ursu e340dc9e34 Solved Qt warning:
QLayout "unnamed" added to QWidget "Main_layout", which already had a layout.
2002-10-25 09:24:59 +00:00
Radu Ursu c01943f50b an image for alpha_shapes demo
requested by Mariette
2002-10-25 09:23:25 +00:00
Radu Ursu 14d2d756b5 #include <CGAL/Cartesian.h> -> #include <CGAL/Simple_cartesian.h>
Solved bug in output operator for segment in Qt_widget. The operator compute the intersection between the segment and the iso_rectangle using Simple_cartesian<double> kernel.
2002-10-24 13:27:05 +00:00
Radu Ursu 1cadfe5ec0 The layers contain one more boolean member, that is made false by default:
bool does_eat_events;
When you use attach_standard for attaching a layer, this field is true.
The show_mouse_coordinates have this member made false by the standard toolbar.

The widget send the events to the other active layers attached only if there is no other standard_layer active that eat events.
2002-10-23 09:25:28 +00:00
Radu Ursu 23b8c2e65c File name mentioned in header (Qt_layer_show_mouse_coordinates.h) is incorrect. 2002-10-22 13:04:15 +00:00
Radu Ursu 1d73937be1 Bump for 1.2.47 (22 Oct 2002) 2002-10-22 12:49:24 +00:00
Radu Ursu a2b1f60efc updated 2002-10-22 12:49:03 +00:00
Radu Ursu 146983f6e7 the widget resizes to fit the bounding box of the loaded triangulation 2002-10-22 10:54:44 +00:00
Radu Ursu 2461b086cf the widget resize to fit the bounding box of the triangulation loaded 2002-10-22 10:38:46 +00:00
Radu Ursu de9ce3ea52 removed p_Less_xy
the widget fit in the bounding box of the loaded triangulation
2002-10-22 09:01:58 +00:00
Radu Ursu e79f6a2734 fixed history behaviour in resize event
add_to_history is now called in set_scales
set_scales is called even when the widget is not visible and the visibility test has moved in set_scales
2002-10-22 07:47:07 +00:00
Radu Ursu b55f2b48c5 add_to_history() and configure_history_buttons should not be added in the showEvent. 2002-10-21 15:29:08 +00:00
Radu Ursu ff006e6ba5 added preprocessor directives to make the struct Rep definition work in this .h 2002-10-21 15:09:51 +00:00
Radu Ursu 77109c5557 The show_coordinates layer from the standard toolbar is using attach() method instead of attach_standard(). Reason: Should not eat the events when is active. 2002-10-21 14:38:26 +00:00
Radu Ursu 9679e98695 Bump for 1.2.46 (18 Oct 2002) 2002-10-18 11:34:00 +00:00
Radu Ursu a01333c917 updated 2002-10-18 11:33:43 +00:00
Radu Ursu 0ad9dbc601 The demos use the layer show_coordinates from the standard toolbar. 2002-10-18 11:30:05 +00:00
Radu Ursu 62691be831 Qt_widget_show_mouse_coordinates layer is a part of the standard toolbar. 2002-10-18 08:58:54 +00:00
Radu Ursu 2a9633e33e The show_mouse_coordinates layer became a part of standard_toolbar
The Qt_layer_show_mouse_coordinates will be removed.
2002-10-18 08:57:36 +00:00
Radu Ursu ef987e776d Bump for 1.2.45 (18 Oct 2002) 2002-10-18 07:33:16 +00:00
Radu Ursu fcd4d20b66 updated 2002-10-18 07:32:25 +00:00
Radu Ursu c1de4507b9 Because of the VC++ Internal Compiler Error
Use a struct derived from the Kernel as the Filtered Kernel.
2002-10-17 13:55:51 +00:00
Radu Ursu d6fe9c51df removed 2 warnings in load_polyline and load_constraints 2002-10-16 14:54:01 +00:00
Radu Ursu 1b58a8c136 The method clear_history should call configure_history_buttons. 2002-10-16 14:52:39 +00:00
Radu Ursu 7ff38b9a7f added functions
load_constraints
	load_polyline
cgal_types:
	triangulation use now hierarchy
2002-10-16 13:10:47 +00:00
Radu Ursu 6a374fa6b5 fixed bug in Triangulation_2_constrained
Point -> OpPoint
2002-10-16 12:39:54 +00:00
Radu Ursu 809e211bdf Bump for 1.2.44 (11 Oct 2002) 2002-10-11 11:04:47 +00:00
Radu Ursu 6260dfec32 updated 2002-10-11 11:04:28 +00:00
Radu Ursu c3d1d03d44 removed unnecessary typename for Linux 2002-10-11 08:24:14 +00:00
Radu Ursu 8d305d46f0 removed a couple of typenames. 2002-10-11 08:20:55 +00:00
Radu Ursu f44993b31c #include <CGAL/Segment_2_segment_2_intersection.h> ->
#include <CGAL/Segment_2_Segment_2_intersection.h>
2002-10-11 07:59:13 +00:00
Radu Ursu b95eaf1dfc #include <CGAL/Intersections.h> ->
#include <CGAL/intersections.h>
2002-10-11 07:56:22 +00:00
Radu Ursu 9e4c5cebe4 Bump for 1.2.43 (10 Oct 2002) 2002-10-10 08:45:01 +00:00
Radu Ursu 003fb33e24 A lot of new improvements 2002-10-10 08:44:47 +00:00
Radu Ursu e3e385653e The << operator for triangulation_2 use the apply to range function, to draw only the triangles that are visible.
Usefull for large traingulations.
+ removed lines too long
2002-10-10 08:28:37 +00:00
Radu Ursu 9dbaee5afe The << operator for triangulation_2 use the apply to range function, to draw only the triangles that are visible.
Usefull for large traingulations.
2002-10-10 08:27:59 +00:00
Radu Ursu 8a06da3ee2 Temporary put here. It will go in Triangulation_2
This file contains a function that apply a function to a list of triangles that are contained in a iso_rectangle.
2002-10-10 08:22:00 +00:00
Radu Ursu fa244bbd30 The << operator for triangles use Triangle_2_Iso_rectangle_2_intersection.h
This file is temporary put here just waiting to go in CGAL Kernel
2002-09-30 13:42:44 +00:00
Radu Ursu ea4cc77293 The << operator for triangles use Triangle_2_Iso_rectangle_2_intersection.h + removed lines too long 2002-09-30 13:41:55 +00:00
Radu Ursu b1526dd843 The << operator for triangles use Triangle_2_Iso_rectangle_2_intersection.h 2002-09-30 13:39:48 +00:00
Radu Ursu a66d8b829c I have checked if should call set_scales in set_window
In ShowEvent I have added add_to_history() and configure_history_buttons()
if set_scales_to_be_done is true.
2002-09-30 13:24:48 +00:00
Radu Ursu ebd54a00cc fixed condition bug in << operator for segment 2002-09-20 12:42:37 +00:00
Radu Ursu 164fd2b8c0 fixed bug : hand_xpm was shown even when dragging instead of holddown_xpm 2002-09-20 09:39:47 +00:00
Radu Ursu b60a4c9026 fixed is_inside condition in << operator for segment
removed warnings line too long
2002-09-16 07:36:27 +00:00
Radu Ursu 3b7a60d0fb fixed is_inside condition in << operator for segment 2002-09-16 07:33:41 +00:00
Radu Ursu aa56cf70c9 removed redraw call
Everything was drawn twice.

IT'S UNBELIVEABLE!!!!!
2002-09-13 15:47:38 +00:00
Radu Ursu bf051644aa removed redraw call
Everything was drawn twice.
2002-09-13 15:37:01 +00:00
Radu Ursu b9d02e81de removed redraw from the zoom and the history actions.
Everything was drawn twice.
2002-09-13 15:34:03 +00:00
Radu Ursu a73f20cd1f no message 2002-09-13 15:30:08 +00:00
Radu Ursu e66bb1ffd9 widget-redraw() removed before something_changed() in triangulation_2.C
the triangulation was drawn 2 times after a new point insertion
2002-09-13 14:58:36 +00:00
Laurent Rineau 561e3bc063 Add a typename so that it is correct and compiles with gcc!
<   R::FT xr1, yr1, xr2, yr2;
---
>   typename R::FT xr1, yr1, xr2, yr2;


These lines will have to be fixed soon because
  FT xr1=w.x_real(0)
assumes that R::FT has a constructor from a double, whereas it is not in
the FT concept!
2002-09-13 13:21:48 +00:00
Radu Ursu 2689935968 << operator for segments does clipping (QT advice) only for the segments that intersect the boundaries of the screen rectangle
use the old x_real function because the new one is too slow in doing the transformation (use GMP if CGAL_USE_GMP is defined)
we should document the old one too, it will never be removed.
2002-09-13 10:47:20 +00:00
Laurent Rineau 28c511ee6d Bump for 1.2.42 (11 Sep 2002) 2002-09-11 14:40:49 +00:00
Laurent Rineau 41d7414e74 1.2.42 2002-09-11 14:40:25 +00:00
Laurent Rineau 7d51a351c7 Added src/CGALQt/Makefile, to have dependancies 2002-09-07 13:59:37 +00:00
Laurent Rineau 420d70b31c Fix a bug:
set_scales() was using geometry() whereas geometry() is not sure to be correct
when the widget is not visible.
Here are the explainations, in french:
-------------
> Dans Qt_widget::set_scales(), Radu se base sur geometry() pour modifier
> xmin, xmax, etc., mais malheureusement geometry() n'a pas forc�ment de
> sens quand le widget n'est pas visible (avant le premier show()
> appell�).

Le principe du patch c'est que set_scale() ne fait rien si le widget
n'est pas visible, mais met un bool�en (set_scale_must_be_done) � true.
Quand le widget apparait, la m�thode showEvent regarde si
set_scale_must_be_done=true, et appelle set_scale(). De plus,
set_scale_center() ne fait rien si set_scale_must_be_done=true car
set_scales() doit toujours avoir �t� appell� avant de bouger le centre.
2002-09-06 15:03:43 +00:00
Laurent Rineau 7213bb3e93 Readded: double x_real(int)
for compatibility.
Move the template function definition to Qt_widget.h and remove it from
Qt_widget.C and let the specialisation for Gmpz into the .C file
2002-09-05 10:58:17 +00:00
Radu Ursu 3fba39e1a0 Bump for 1.2.41 ( 3 Sep 2002) 2002-09-03 11:33:51 +00:00
Radu Ursu 9087c7001a The doc on x_real and y_real. 2002-09-03 11:33:25 +00:00
Radu Ursu 30e15d3c89 removed x_real_rational, y_real_rational
x_real and y_real are templated and specialized for Gmpq.
2002-09-03 10:14:02 +00:00
Radu Ursu 1891fc2eaf Bump for 1.2.40 (30 Aug 2002) 2002-08-30 13:00:05 +00:00
Radu Ursu 66ec02c3e2 The coordinates of the screen are maped to a certain interval that you
can choose  with \ccc{set_window} member function. The scale of the
objects you can visualize is computed and maintained the same for both
axes to keep the aspect ratio of the objects. If you are not using
\ccc{gmp} you should use \ccc{x_real} or \ccc{y_real} to get the real
world coordinates, represented as a double, for your screen
coordinates. If you are using \ccc{gmp} you can use the other verions
of these two functions: \ccc{x_real_rational} and
\ccc{y_real_rational}, with \ccc{Gmpq} return type. You may need it
when you work with rationals. The double from the other function could
be more complex and can make you loose speed.

\ccMethod{double x_real(int x) const;}{Returns the \ccc{x} real world
coordinate of the \ccc{Qt_widget}.}
\ccMethod{Gmpq y_real(int y) const;}{Returns the \ccc{y} real world
coordinate of the \ccc{Qt_widget}.}
\ccMethod{Gmpq x_real_rational(int x) const;}{Returns the \ccc{x} real world
coordinate of the \ccc{Qt_widget}. Defined only if you built it with CGAL_USE_GMP.}
\ccMethod{Gmpq y_real_rational(int y) const;}{Returns the \ccc{y} real world
coordinate of the \ccc{Qt_widget}. Defined only if you built it with CGAL_USE_GMP.}
2002-08-30 12:57:12 +00:00
Radu Ursu 3a05e36543 Qt_widget have 2 new functions x_real_rational and y_real_rational.
Those 2 return an Gmpq object. The conversion between screen coordinates and real world coordinates return a more simple number (rational), a Gmpq object.
	I put that in the doc either.
2002-08-30 12:04:47 +00:00
Radu Ursu 2c30a816c2 The class Gmpq is now available in CGAL I, so Qt_widget could support it.
The conversion from screen coordinates in real word coordinates could be
done via x_real_rational or x_real. Those functions try to use simplest rational in interval.
2002-08-28 07:57:21 +00:00
Radu Ursu fb406c1210 Fix for Release Mode 2002-07-22 13:53:05 +00:00
Radu Ursu 976af4668c Fix for Release Mode 2002-07-22 13:32:23 +00:00
Radu Ursu 7a4ba769e5 Fix for Release Mode 2002-07-22 13:25:22 +00:00
Radu Ursu e66ea7d805 Fix for Release Mode 2002-07-22 09:01:35 +00:00
Radu Ursu f4aab1f265 Bump for 1.2.39 (18 Jul 2002) 2002-07-18 14:08:13 +00:00
Radu Ursu 12c5aa8e27 updated 2002-07-18 14:07:49 +00:00
Radu Ursu 4e5f1d44c7 Added min_quadrilateral_2.vcproj. Version (RELEASE/DEBUG) for Qt3.0 2002-07-18 08:56:33 +00:00
Radu Ursu 59576a8101 Added min_ellipse_2.vcproj. Version (RELEASE/DEBUG) for Qt3.0 2002-07-18 08:40:32 +00:00
Radu Ursu 174091766f Added max_k-gon.vcproj. Version (RELEASE/DEBUG) for Qt3.0 2002-07-18 08:19:29 +00:00
Radu Ursu 87d9238246 Added largest_empty_rect_2.vcproj. Version (RELEASE/DEBUG) for Qt3.0 2002-07-18 08:07:36 +00:00
Radu Ursu 956f6c3917 Added convex_hull_2.vcproj. Version (RELEASE/DEBUG) for Qt3.0 2002-07-18 07:31:49 +00:00
Radu Ursu 7f227f0aed Added partition_2.vcproj. Version (RELEASE/DEBUG) for Qt3.0
The types used moved to file: cgal_types.h
2002-07-16 13:34:50 +00:00
Radu Ursu 4466d1ddd7 Added triangulation_2_constrained.vcproj. Version (RELEASE/DEBUG) for Qt3.0
The types used moved to file: cgal_types.h
2002-07-16 12:39:32 +00:00
Radu Ursu 7209b78748 The project for VC7 that contain the debug and release version for Triangulation_2 2002-07-16 10:15:45 +00:00
Radu Ursu 2401ce9b7e Replaced char* with QString because of names too long that could be constructed. 2002-07-16 09:50:31 +00:00
Radu Ursu 10c3d7003a This demo can show Crust and Weighted_alpha_shape 2002-07-16 09:09:07 +00:00
Radu Ursu bbe5b6e46d Bump for 1.2.38 (12 Jul 2002) 2002-07-12 13:24:28 +00:00
Radu Ursu 5ea0081108 updated 2002-07-12 13:22:54 +00:00
Radu Ursu 140f950f89 The VC7 project is ready to build (release and debug) with Qt3.0
The cgal_types.h file was added.
A new layout class was added
2002-07-12 13:06:28 +00:00
Radu Ursu 7b06ee64ed I have added Nef_2 2002-07-12 12:59:33 +00:00
Radu Ursu 62b8fa0cb3 a 2002-07-12 12:49:35 +00:00
Radu Ursu 02c83fd84d the release version of that one is very good now 2002-07-10 13:30:53 +00:00
Radu Ursu 9094e3f628 Another patch to this output operator. 2002-07-10 13:27:13 +00:00
Radu Ursu 044119fa85 Another patch to this output operator. 2002-07-10 13:26:47 +00:00
Radu Ursu 4e69423337 The release version of this project is up to date.
The release and debug versions are for Qt3.0 static build
2002-07-09 07:51:10 +00:00
Radu Ursu 724a662c00 removed line too long 2002-07-09 07:43:16 +00:00
Radu Ursu e99494a1c3 Some bugs were removed 2002-07-09 07:40:49 +00:00
Radu Ursu cc8335b001 removed line too long 2002-07-09 06:47:09 +00:00
Radu Ursu 852f1d2dd0 The Nef_2 demo is up to date 2002-07-09 06:46:29 +00:00
Radu Ursu 4dac0ea316 Bump for 1.2.37 ( 5 Jul 2002) 2002-07-05 11:01:30 +00:00
Radu Ursu ca5ad258ec updated 2002-07-05 11:00:53 +00:00
Radu Ursu 421ab81995 Updated for Qt2.3 2002-07-05 09:37:06 +00:00
Radu Ursu 2d4cb7ea69 Updated the nef_2 output operator for Qt_widget 2002-07-05 09:12:50 +00:00