You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Arrangement_on_surface_2/doc/Arrangement_on_surface_2/CGAL/draw_arrangement_2.h
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -29,11 +29,8 @@ namespace CGAL {
29
29
* `CGAL::Arrangement_2` class template. Parameters of the drawing are taken
30
30
* from the optional graphics scene options parameter.
31
31
*
32
-
* A call to this function blocks the execution of the program until the drawing
33
-
* window is closed. This function requires `CGAL_Qt6`, and is only available if
34
-
* the macro `CGAL_USE_BASIC_VIEWER` is defined. Linking with the cmake target
35
-
* `CGAL::CGAL_Basic_viewer` will link with `CGAL_Qt6` and add the definition
36
-
* `CGAL_USE_BASIC_VIEWER`.
32
+
A call to this function blocks the execution of the program until the drawing window is closed. This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER`/`CGAL_USE_BASIC_VIEWER_QT` (Qt viewer) is defined.
33
+
Linking with the cmake target `CGAL::CGAL_Basic_viewer`/`CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`/`CGAL_USE_BASIC_VIEWER_QT`.
37
34
*
38
35
* \tparam GeometryTraits_2 a geometry traits type, a model of a 2D arrangement
39
36
* traits concept. At this point it must be an instance of either
The class `CGAL::Qt::Basic_viewer` is a \qt widget that inherits from `QGLViewer` and mainly stores a `Graphics_scene` and allows to visualize it and interact with the scene. Since this class is a \qt widget, it can be used into more complex \qt code to create more advanced demos.
The class `Basic_viewer` is a Qt widget based on `QGLViewer` that allows to visualize 3D elements: points, segments, triangles, rays and lines. This class stores a reference to a `Graphics_scene`. Elements are added through the scene. This class requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined. Linking with the cmake target `CGAL::CGAL_Basic_viewer` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`.
8
+
The class `Basic_viewer` is a Qt widget based on `QGLViewer` that allows to visualize 3D elements: points, segments, triangles, rays and lines. This class stores a reference to a `Graphics_scene`. Elements are added through the scene. This class requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER_QT` is defined. Linking with the cmake target `CGAL::CGAL_Basic_viewer` or `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER` & `CGAL_USE_BASIC_VIEWER_QT`.
9
9
10
10
CGAL::QGLViewer is our internal fork of <a href="https://github.com/GillesDebunne/libQGLViewer">QGLViewer class</a> which is <em>A versatile 3D OpenGL viewer based on QOpenGLWidget</em>.
11
11
*/
12
12
classBasic_viewer : publicCGAL::QGLViewer
13
13
{
14
14
public:
15
+
/// \name Constructors
16
+
/// @{
17
+
15
18
/// Constructor given a pointer on a `QWidget` (can be a `nullptr`) and a `Graphics_scene`.
16
19
/// `title` will be the title of the window.
17
20
Basic_viewer(QWidget* parent,
18
21
const Graphics_scene& scene,
19
22
constchar* title="");
20
23
21
-
/// enables or disables the drawing of vertices.
24
+
/// @}
25
+
26
+
/// \name Setters
27
+
/// @{
28
+
29
+
/// \brief Set size of vertices.
30
+
/// \param s The size of vertices.
31
+
voidsize_vertices(float s);
32
+
33
+
/// \brief Set size of edges.
34
+
/// \param s The size of edges.
35
+
voidsize_edges(float s);
36
+
37
+
/// \brief Set size of rays.
38
+
/// \param s The size of rays.
39
+
voidsize_rays(float s);
40
+
41
+
/// \brief Set size of lines.
42
+
/// \param s The size of lines.
43
+
voidsize_lines(float s);
44
+
45
+
/// \brief Enables or disables the drawing of vertices.
46
+
/// \param b Set to `true` to enable, `false` to disable.
22
47
voiddraw_vertices(bool b);
23
48
24
-
/// enables or disables the drawing of edges.
49
+
/// \brief Enables or disables the drawing of edges.
50
+
/// \param b Set to `true` to enable, `false` to disable.
25
51
voiddraw_edges(bool b);
26
52
27
-
/// enables or disables the drawing of rays.
53
+
/// \brief Enables or disables the drawing of rays.
54
+
/// \param b Set to `true` to enable, `false` to disable.
28
55
voiddraw_rays(bool b);
29
56
30
-
/// enables or disables the drawing of lines.
57
+
/// \brief Enables or disables the drawing of lines.
58
+
/// \param b Set to `true` to enable, `false` to disable.
31
59
voiddraw_lines(bool b);
32
60
33
-
/// enables or disables the drawing of faces.
61
+
/// \brief enables or disables the drawing of faces.
62
+
/// \param b Set to `true` to enable, `false` to disable.
34
63
voiddraw_faces(bool b);
35
64
36
-
/// enables or disables the use of only one color (if `b` is `true`) or the use of multiple colors (if `b` is `false`).
37
-
voiduse_mono_color(bool b);
38
-
39
65
/// enables or disables the drawing of texts.
66
+
/// \brief enables or disables the drawing of texts.
67
+
/// \param b Set to `true` to enable, `false` to disable.
40
68
voiddraw_text(bool b);
41
69
42
-
/// sets the color used for vertices in mono color mode.
@@ -144,7 +207,7 @@ class Basic_viewer : public CGAL::QGLViewer
144
207
145
208
The class `QApplication_and_basic_viewer` regroups a `Basic_viewer` and Qt `QApplication`. The `QApplication` is created in the constructor, but started by the `run()` method. This allows for example users to modify the `on_key_pressed` method of the `Basic_viewer` to define their own behavior.
146
209
147
-
This class requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined. Linking with the cmake target `CGAL::CGAL_Basic_viewer` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`.
210
+
This class requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` or `CGAL_USE_BASIC_VIEWER_QT` is defined. Linking with the cmake target `CGAL::CGAL_Basic_viewer` or `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER` & `CGAL_USE_BASIC_VIEWER_QT`.
0 commit comments