replace macro CGAL_USE_BASIC_VIEWER by CGAL_USE_BASIC_VIEWER_QT

This commit is contained in:
Guillaume Damiand 2025-04-17 17:45:10 +02:00
parent d65526c1d8
commit b9efd6983c
65 changed files with 173 additions and 180 deletions

View File

@ -6859,8 +6859,8 @@ An arrangement data structure can be visualized by calling the \link PkgArrangem
\cgalExample{Arrangement_on_surface_2/draw_arr.cpp} \cgalExample{Arrangement_on_surface_2/draw_arr.cpp}
This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined. This function 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` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\cgalFigureBegin{aos_fig-draw_arr,draw_arr.png} \cgalFigureBegin{aos_fig-draw_arr,draw_arr.png}
A snapshot of the window created by the program A snapshot of the window created by the program

View File

@ -29,8 +29,8 @@ namespace CGAL {
* `CGAL::Arrangement_2` class template. Parameters of the drawing are taken * `CGAL::Arrangement_2` class template. Parameters of the drawing are taken
* from the optional graphics scene options parameter. * from the optional graphics scene options parameter.
* *
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
* *
* \tparam GeometryTraits_2 a geometry traits type, a model of a 2D arrangement * \tparam GeometryTraits_2 a geometry traits type, a model of a 2D arrangement
* traits concept. At this point it must be an instance of either * traits concept. At this point it must be an instance of either

View File

@ -16,15 +16,15 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_arr PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_arr PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(linear_conics PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(linear_conics PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(parabolas PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(parabolas PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(ellipses PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(ellipses PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(hyperbolas PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(hyperbolas PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(polylines PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(polylines PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(circles PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(circles PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(circular_arcs PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(circular_arcs PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(spherical_insert PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(spherical_insert PRIVATE CGAL::CGAL_Basic_viewer_Qt)
else() else()
message( message(
STATUS STATUS

View File

@ -5,7 +5,7 @@ namespace CGAL {
/*! /*!
\ingroup PkgBasicViewerClasses \ingroup PkgBasicViewerClasses
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`. 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_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
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>. 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>.
*/ */
@ -207,7 +207,7 @@ public:
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. 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.
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`. 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_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
*/ */
class QApplication_and_basic_viewer class QApplication_and_basic_viewer
@ -230,7 +230,7 @@ public:
/*! /*!
\ingroup PkgBasicViewerClasses \ingroup PkgBasicViewerClasses
opens a new window and draws the given `Graphics_scene` (which must have been filled before). `title` will be the title of the window. A call to this method is blocking, that is the program continues as soon as the user closes the window. This function 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. opens a new window and draws the given `Graphics_scene` (which must have been filled before). `title` will be the title of the window. A call to this method is blocking, that is the program continues as soon as the user closes the window. This function 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_Qt` will link with `CGAL_Qt6` and add the definition CGAL_USE_BASIC_VIEWER_QT.
*/ */
void draw_graphics_scene(const Graphics_scene& graphic_scene, void draw_graphics_scene(const Graphics_scene& graphic_scene,
const char *title="CGAL Basic Viewer") const char *title="CGAL Basic Viewer")

View File

@ -16,7 +16,7 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_polygon_set PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_polygon_set PRIVATE CGAL::CGAL_Basic_viewer_Qt)
else() else()
message(STATUS "NOTICE: The example 'draw_polygon_set' requires Qt and drawing will be disabled.") message(STATUS "NOTICE: The example 'draw_polygon_set' requires Qt and drawing will be disabled.")
endif() endif()

View File

@ -166,7 +166,7 @@ void compute_elements(const PWH& pwh,
} // End namespace draw_function_for_boolean_set_2 } // End namespace draw_function_for_boolean_set_2
#if defined(CGAL_USE_BASIC_VIEWER_QT) || defined(CGAL_USE_BASIC_VIEWER) #if defined(CGAL_USE_BASIC_VIEWER_QT)
template <typename PolygonSet_2, typename GSOptions> template <typename PolygonSet_2, typename GSOptions>
class Polygon_set_2_basic_viewer_qt : public Basic_viewer class Polygon_set_2_basic_viewer_qt : public Basic_viewer
@ -259,7 +259,7 @@ private:
GSOptions& gso; GSOptions& gso;
}; };
#endif // CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
#define CGAL_PS2_TYPE CGAL::Polygon_set_2<T, C, D> #define CGAL_PS2_TYPE CGAL::Polygon_set_2<T, C, D>
@ -281,7 +281,7 @@ void add_to_graphics_scene(const CGAL_PS2_TYPE& ap2,
draw_function_for_boolean_set_2::compute_elements(ap2, graphics_scene, gso); draw_function_for_boolean_set_2::compute_elements(ap2, graphics_scene, gso);
} }
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
// Specialization of draw function. // Specialization of draw function.
template<class T, class C, class D, class GSOptions> template<class T, class C, class D, class GSOptions>
@ -319,7 +319,7 @@ void draw(const CGAL_PS2_TYPE& ps,
draw(ps, gso, title); draw(ps, gso, title);
} }
#endif // CGAL_USE_BASIC_VIEWER_QT || CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
#undef CGAL_PS2_TYPE #undef CGAL_PS2_TYPE

View File

@ -43,7 +43,7 @@ This section describes a minimal example of a program that uses \cgal and Qt6 fo
\skip if(CGAL_Qt6_FOUND) \skip if(CGAL_Qt6_FOUND)
\until target_link_libraries(draw_surface_mesh PRIVATE CGAL::CGAL_Basic_viewer) \until target_link_libraries(draw_surface_mesh PRIVATE CGAL::CGAL_Basic_viewer_Qt)
\skip endif \skip endif
\until #end of the file \until #end of the file

View File

@ -208,10 +208,10 @@ endif()
# #
# Define a specific target for basic viewer # Define a specific target for basic viewer
# #
if (NOT TARGET CGAL::CGAL_Basic_viewer) if (NOT TARGET CGAL::CGAL_Basic_viewer_Qt)
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED GLOBAL) add_library(CGAL::CGAL_Basic_viewer_Qt INTERFACE IMPORTED GLOBAL)
set_target_properties(CGAL::CGAL_Basic_viewer PROPERTIES set_target_properties(CGAL::CGAL_Basic_viewer_Qt PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER;QT_NO_KEYWORDS" INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER_QT;QT_NO_KEYWORDS"
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt6) INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt6)
endif() endif()

View File

@ -193,10 +193,10 @@ endif()
# #
# Define a specific target for basic viewer # Define a specific target for basic viewer
# #
if (NOT TARGET CGAL::CGAL_Basic_viewer) if (NOT TARGET CGAL::CGAL_Basic_viewer_Qt)
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED GLOBAL) add_library(CGAL::CGAL_Basic_viewer_Qt INTERFACE IMPORTED GLOBAL)
set_target_properties(CGAL::CGAL_Basic_viewer PROPERTIES set_target_properties(CGAL::CGAL_Basic_viewer_Qt PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER;QT_NO_KEYWORDS" INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER_QT;QT_NO_KEYWORDS"
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt6) INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt6)
endif() endif()

View File

@ -124,7 +124,7 @@ function(cgal_add_compilation_test exe_name)
if(TARGET CGAL_Qt6_moc_and_resources) # if CGAL_Qt6 was searched, and is header-only if(TARGET CGAL_Qt6_moc_and_resources) # if CGAL_Qt6 was searched, and is header-only
get_property(linked_libraries TARGET "${exe_name}" PROPERTY LINK_LIBRARIES) get_property(linked_libraries TARGET "${exe_name}" PROPERTY LINK_LIBRARIES)
# message(STATUS "${exe_name} depends on ${linked_libraries}") # message(STATUS "${exe_name} depends on ${linked_libraries}")
if( ("CGAL_Qt6" IN_LIST linked_libraries OR "CGAL::CGAL_Qt6" IN_LIST linked_libraries OR "CGAL::CGAL_Basic_viewer" IN_LIST linked_libraries) if( ("CGAL_Qt6" IN_LIST linked_libraries OR "CGAL::CGAL_Qt6" IN_LIST linked_libraries OR "CGAL::CGAL_Basic_viewer_Qt" IN_LIST linked_libraries)
AND NOT TARGET "compilation_of__CGAL_Qt6_moc_and_resources") AND NOT TARGET "compilation_of__CGAL_Qt6_moc_and_resources")
# This custom target is useless. It is used only as a flag to # This custom target is useless. It is used only as a flag to
# detect that the test has already been created. # detect that the test has already been created.

View File

@ -110,7 +110,7 @@ function(CGAL_hook_fix_ctest_depending_on_Qt6)
continue() continue()
endif() endif()
get_property(_target_links TARGET ${_target} PROPERTY LINK_LIBRARIES) get_property(_target_links TARGET ${_target} PROPERTY LINK_LIBRARIES)
if("CGAL_Qt6" IN_LIST _target_links OR "CGAL::CGAL_Qt6" IN_LIST _target_links OR "CGAL::CGAL_Basic_viewer" IN_LIST _target_links) if("CGAL_Qt6" IN_LIST _target_links OR "CGAL::CGAL_Qt6" IN_LIST _target_links OR "CGAL::CGAL_Basic_viewer_Qt" IN_LIST _target_links)
set_property(TEST "compilation of ${_target}" APPEND PROPERTY FIXTURES_REQUIRED CGAL_Qt6_moc_and_resources_Fixture) set_property(TEST "compilation of ${_target}" APPEND PROPERTY FIXTURES_REQUIRED CGAL_Qt6_moc_and_resources_Fixture)
endif() endif()
endforeach() endforeach()

View File

@ -196,13 +196,6 @@ endforeach()
# #
# Define a specific target for basic viewer # Define a specific target for basic viewer
# #
if (NOT TARGET CGAL::CGAL_Basic_viewer)
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED GLOBAL)
set_target_properties(CGAL::CGAL_Basic_viewer PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER"
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt6)
endif()
if (NOT TARGET CGAL::CGAL_Basic_viewer_Qt) if (NOT TARGET CGAL::CGAL_Basic_viewer_Qt)
add_library(CGAL::CGAL_Basic_viewer_Qt INTERFACE IMPORTED GLOBAL) add_library(CGAL::CGAL_Basic_viewer_Qt INTERFACE IMPORTED GLOBAL)
set_target_properties(CGAL::CGAL_Basic_viewer_Qt PROPERTIES set_target_properties(CGAL::CGAL_Basic_viewer_Qt PROPERTIES

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12...3.31) cmake_minimum_required(VERSION 3.12...3.31)
project(test_configuration) project(test_configuration)
find_package(CGAL COMPONENTS Qt6) find_package(CGAL COMPONENTS Qt6)
add_definitions(-DCGAL_USE_BASIC_VIEWER -DQT_NO_KEYWORDS) add_definitions(-DCGAL_USE_BASIC_VIEWER_QT -DQT_NO_KEYWORDS)
get_filename_component(CGAL_DIR_PATH "${CGAL_DIR}/CMakeConfig.cmake" DIRECTORY) get_filename_component(CGAL_DIR_PATH "${CGAL_DIR}/CMakeConfig.cmake" DIRECTORY)
get_filename_component(CGAL_GIVEN_DIR_PATH "${CGAL_GIVEN_DIR}/CMakeConfig.cmake" DIRECTORY) get_filename_component(CGAL_GIVEN_DIR_PATH "${CGAL_GIVEN_DIR}/CMakeConfig.cmake" DIRECTORY)

View File

@ -40,7 +40,7 @@ if(NOT CGAL_Qt6_FOUND OR NOT Qt6_FOUND)
else() else()
add_compile_definitions(CGAL_USE_BASIC_VIEWER QT_NO_KEYWORDS) add_compile_definitions(CGAL_USE_BASIC_VIEWER_QT QT_NO_KEYWORDS)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON) set(CMAKE_AUTORCC ON)

View File

@ -5,8 +5,8 @@ namespace CGAL {
opens a new window and draws a linear cell complex. Parameters of the drawing are taken from the optional graphics scene options parameter. opens a new window and draws a linear cell complex. Parameters of the drawing are taken from the optional graphics scene options parameter.
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\tparam LCC which must be an instantiation of a `CGAL::Linear_cell_complex_for_combinatorial_map<...>` or `CGAL::Linear_cell_complex_for_generalized_map<...>`. \tparam LCC which must be an instantiation of a `CGAL::Linear_cell_complex_for_combinatorial_map<...>` or `CGAL::Linear_cell_complex_for_generalized_map<...>`.
\tparam GSOptions a model of `GraphicsSceneOptions` concept. \tparam GSOptions a model of `GraphicsSceneOptions` concept.

View File

@ -265,8 +265,8 @@ A linear cell complex can be visualized by calling the \link PkgDrawLinearCellCo
\cgalExample{Linear_cell_complex/draw_linear_cell_complex.cpp} \cgalExample{Linear_cell_complex/draw_linear_cell_complex.cpp}
This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined. This function 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` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\cgalFigureBegin{fig_draw_lcc,draw_lcc.png} \cgalFigureBegin{fig_draw_lcc,draw_lcc.png}
Result of the run of the draw_linear_cell_complex program. A window shows two 3D cubes and allows to navigate through the 3D scene. Result of the run of the draw_linear_cell_complex program. A window shows two 3D cubes and allows to navigate through the 3D scene.

View File

@ -30,7 +30,7 @@ create_single_source_cgal_program("voronoi_3.cpp")
create_single_source_cgal_program("draw_linear_cell_complex.cpp") create_single_source_cgal_program("draw_linear_cell_complex.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_linear_cell_complex PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_linear_cell_complex PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(linear_cell_complex_3_incremental_builder PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(linear_cell_complex_3_incremental_builder PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(linear_cell_complex_3_insert PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(linear_cell_complex_3_insert PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()

View File

@ -13,6 +13,6 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(mesh_with_seeds PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(mesh_with_seeds PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(mesh_marked_domain PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(mesh_marked_domain PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()

View File

@ -5,8 +5,8 @@ namespace CGAL {
opens a new window and draws a nef polyhedron. Parameters of the drawing are taken from the optional graphics scene options parameter. opens a new window and draws a nef polyhedron. Parameters of the drawing are taken from the optional graphics scene options parameter.
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\tparam NP3 which must be an instantiation of a `CGAL::Nef_polyhedron_3<...>`. \tparam NP3 which must be an instantiation of a `CGAL::Nef_polyhedron_3<...>`.
\tparam GSOptions a model of `GraphicsSceneOptions` concept. \tparam GSOptions a model of `GraphicsSceneOptions` concept.

View File

@ -424,8 +424,8 @@ A nef polyhedron can be visualized by calling the \link PkgDrawNef3 CGAL::draw<N
\cgalExample{Nef_3/draw_nef_3.cpp} \cgalExample{Nef_3/draw_nef_3.cpp}
This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined. This function 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` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\cgalFigureBegin{fig_draw_nef_polyhedron, draw_nef_3.png} \cgalFigureBegin{fig_draw_nef_polyhedron, draw_nef_3.png}
Result of the run of the draw_nef_3 program. A window shows the nef polyhedron and allows to navigate through the 3D scene. Result of the run of the draw_nef_3 program. A window shows the nef polyhedron and allows to navigate through the 3D scene.

View File

@ -16,5 +16,5 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_nef_3 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_nef_3 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()

View File

@ -27,8 +27,8 @@ struct Graphics_scene_options_periodic_2_triangulation_2: public CGAL::Graphics_
opens a new window and draws a periodic 2D triangulation. Parameters of the drawing are taken from the optional graphics scene options parameter. opens a new window and draws a periodic 2D triangulation. Parameters of the drawing are taken from the optional graphics scene options parameter.
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\tparam P2T2 which must be an instantiation of a `CGAL::Periodic_2_triangulation_2<...>`. \tparam P2T2 which must be an instantiation of a `CGAL::Periodic_2_triangulation_2<...>`.
\tparam GSOptions a model of `GraphicsSceneOptionsPeriodic2Triangulation2` concept. \tparam GSOptions a model of `GraphicsSceneOptionsPeriodic2Triangulation2` concept.

View File

@ -16,5 +16,5 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_periodic_2_triangulation_2 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_periodic_2_triangulation_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()

View File

@ -220,7 +220,7 @@ void add_to_graphics_scene(const CGAL_P2T2_TYPE& p2t2,
add_to_graphics_scene(p2t2, graphics_scene, gs_options); add_to_graphics_scene(p2t2, graphics_scene, gs_options);
} }
#if defined(CGAL_USE_BASIC_VIEWER_QT) || defined(CGAL_USE_BASIC_VIEWER) #if defined(CGAL_USE_BASIC_VIEWER_QT)
// Specialization of draw function // Specialization of draw function
template<class Gt, class Tds, class GSOptions> template<class Gt, class Tds, class GSOptions>
@ -278,7 +278,7 @@ void draw(const CGAL_P2T2_TYPE& ap2t2,
draw(ap2t2, gs_options, title); draw(ap2t2, gs_options, title);
} }
#endif // CGAL_USE_BASIC_VIEWER_QT || CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
#undef CGAL_P2T2_TYPE #undef CGAL_P2T2_TYPE

View File

@ -169,8 +169,8 @@ A 3D point set can be visualized by calling the \link PkgDrawPointSet3D CGAL::dr
\cgalExample{Point_set_3/draw_point_set_3.cpp} \cgalExample{Point_set_3/draw_point_set_3.cpp}
This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined. This function 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` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\cgalFigureBegin{fig_draw_point_set,draw_point_set.png} \cgalFigureBegin{fig_draw_point_set,draw_point_set.png}
Result of the run of the draw_point_set_3 program. A window shows the 3D points and allows to navigate through the 3D scene. Result of the run of the draw_point_set_3 program. A window shows the 3D points and allows to navigate through the 3D scene.

View File

@ -24,5 +24,5 @@ endif()
create_single_source_cgal_program("draw_point_set_3.cpp") create_single_source_cgal_program("draw_point_set_3.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_point_set_3 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_point_set_3 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()

View File

@ -28,8 +28,8 @@ namespace CGAL {
opens a new window and draws a point set. Parameters of the drawing are taken from the optional graphics scene options parameter. opens a new window and draws a point set. Parameters of the drawing are taken from the optional graphics scene options parameter.
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\tparam PS which must be an instantiation of a `CGAL::Point_set_3<...>`. \tparam PS which must be an instantiation of a `CGAL::Point_set_3<...>`.
\tparam GSOptions a model of `GraphicsSceneOptions` concept. \tparam GSOptions a model of `GraphicsSceneOptions` concept.

View File

@ -107,8 +107,8 @@ CGAL::draw<MPH>() \endlink.
\cgalExample{Polygon/draw_polygon.cpp} \cgalExample{Polygon/draw_polygon.cpp}
This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined. This function 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` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\cgalFigureBegin{fig_draw_polygon,draw_polygon.png} \cgalFigureBegin{fig_draw_polygon,draw_polygon.png}
Result of the run of the draw_polygon program. A window shows the polygon and allows to navigate through the scene. Result of the run of the draw_polygon program. A window shows the polygon and allows to navigate through the scene.

View File

@ -16,8 +16,8 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_polygon PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_polygon PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(draw_polygon_with_holes PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_polygon_with_holes PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(draw_polygon_with_holes_2 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_polygon_with_holes_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(draw_multipolygon_with_holes PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_multipolygon_with_holes PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()

View File

@ -30,9 +30,9 @@ namespace CGAL {
* `CGAL::Multipolygon_with_holes_2` class. A call to this function is blocking, that * `CGAL::Multipolygon_with_holes_2` class. A call to this function is blocking, that
* is the program continues as soon as the user closes the window. This function * is the program continues as soon as the user closes the window. This function
* requires `CGAL_Qt6`, and is only available if the macro * requires `CGAL_Qt6`, and is only available if the macro
* `CGAL_USE_BASIC_VIEWER` is defined. Linking with the cmake target * `CGAL_USE_BASIC_VIEWER_QT` is defined. Linking with the cmake target
* `CGAL::CGAL_Basic_viewer` will link with `CGAL_Qt6` and add the definition * `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition
* `CGAL_USE_BASIC_VIEWER`. * `CGAL_USE_BASIC_VIEWER_QT`.
* \tparam PH an instance of the `CGAL::Multipolygon_with_holes_2` class. * \tparam PH an instance of the `CGAL::Multipolygon_with_holes_2` class.
* \param aph the multipolygon with holes to draw. * \param aph the multipolygon with holes to draw.
*/ */
@ -44,7 +44,7 @@ void draw(const MPH& aph);
#endif #endif
#if defined(CGAL_USE_BASIC_VIEWER_QT) || defined(CGAL_USE_BASIC_VIEWER) #if defined(CGAL_USE_BASIC_VIEWER_QT)
#include <CGAL/Qt/init_ogl_context.h> #include <CGAL/Qt/init_ogl_context.h>
#include <CGAL/Multipolygon_with_holes_2.h> #include <CGAL/Multipolygon_with_holes_2.h>
@ -207,6 +207,6 @@ void draw(const CGAL::Multipolygon_with_holes_2<T, C>& mpwh,
} // End namespace CGAL } // End namespace CGAL
#endif // CGAL_USE_BASIC_VIEWER_QT || CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
#endif // CGAL_DRAW_MULTIPOLYGON_WITH_HOLES_2_H #endif // CGAL_DRAW_MULTIPOLYGON_WITH_HOLES_2_H

View File

@ -31,8 +31,8 @@ namespace CGAL {
opens a new window and draws a 2D polygon. Parameters of the drawing are taken from the optional graphics scene options parameter. opens a new window and draws a 2D polygon. Parameters of the drawing are taken from the optional graphics scene options parameter.
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\tparam P which must be an instantiation of a `CGAL::Polygon_2<...>`. \tparam P which must be an instantiation of a `CGAL::Polygon_2<...>`.
\tparam GSOptions a model of `GraphicsSceneOptions` concept. \tparam GSOptions a model of `GraphicsSceneOptions` concept.

View File

@ -31,8 +31,8 @@ namespace CGAL {
opens a new window and draws a 2D polygon with holes. Parameters of the drawing are taken from the optional graphics scene options parameter. opens a new window and draws a 2D polygon with holes. Parameters of the drawing are taken from the optional graphics scene options parameter.
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\tparam PH which must be an instantiation of a `CGAL::Polygon_with_holes_2<...>`. \tparam PH which must be an instantiation of a `CGAL::Polygon_with_holes_2<...>`.
\tparam GSOptions a model of `GraphicsSceneOptions` concept. \tparam GSOptions a model of `GraphicsSceneOptions` concept.

View File

@ -18,6 +18,6 @@ endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(repair_non_zero_polygon_2 PUBLIC CGAL::CGAL_Basic_viewer) target_link_libraries(repair_non_zero_polygon_2 PUBLIC CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(repair_union_intersect_2 PUBLIC CGAL::CGAL_Basic_viewer) target_link_libraries(repair_union_intersect_2 PUBLIC CGAL::CGAL_Basic_viewer_Qt)
endif() endif()

View File

@ -5,7 +5,7 @@
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Polygon_repair/repair.h> #include <CGAL/Polygon_repair/repair.h>
#include <CGAL/IO/WKT.h> #include <CGAL/IO/WKT.h>
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
#include <CGAL/draw_multipolygon_with_holes_2.h> #include <CGAL/draw_multipolygon_with_holes_2.h>
#endif #endif
@ -24,7 +24,7 @@ int main(int argc, char* argv[]) {
CGAL::IO::read_polygon_WKT(in, pin); CGAL::IO::read_polygon_WKT(in, pin);
Multipolygon_with_holes_2 mp = CGAL::Polygon_repair::repair(pin, CGAL::Polygon_repair::Non_zero_rule()); Multipolygon_with_holes_2 mp = CGAL::Polygon_repair::repair(pin, CGAL::Polygon_repair::Non_zero_rule());
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
CGAL::draw(mp); CGAL::draw(mp);
#endif #endif

View File

@ -3,7 +3,7 @@
#include <CGAL/Polygon_with_holes_2.h> #include <CGAL/Polygon_with_holes_2.h>
#include <CGAL/Multipolygon_with_holes_2.h> #include <CGAL/Multipolygon_with_holes_2.h>
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
#include <CGAL/draw_multipolygon_with_holes_2.h> #include <CGAL/draw_multipolygon_with_holes_2.h>
#endif #endif
@ -41,7 +41,7 @@ main(int argc, char* argv[])
{ {
std::ofstream out("union.wkt"); std::ofstream out("union.wkt");
CGAL::IO::write_multi_polygon_WKT(out, mpwh); CGAL::IO::write_multi_polygon_WKT(out, mpwh);
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
CGAL::draw(mpwh); CGAL::draw(mpwh);
#endif #endif
} }
@ -49,7 +49,7 @@ main(int argc, char* argv[])
{ {
std::ofstream out("intersection.wkt"); std::ofstream out("intersection.wkt");
CGAL::IO::write_multi_polygon_WKT(out, mpwh); CGAL::IO::write_multi_polygon_WKT(out, mpwh);
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
CGAL::draw(mpwh); CGAL::draw(mpwh);
#endif #endif
} }
@ -64,7 +64,7 @@ main(int argc, char* argv[])
std::ofstream out("joinn.wkt"); std::ofstream out("joinn.wkt");
CGAL::IO::write_multi_polygon_WKT(out, mpwh); CGAL::IO::write_multi_polygon_WKT(out, mpwh);
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
CGAL::draw(mpwh); CGAL::draw(mpwh);
#endif #endif
} }

View File

@ -20,6 +20,6 @@ create_single_source_cgal_program( "exact_test.cpp")
create_single_source_cgal_program( "repair_polygon_2_test.cpp" ) create_single_source_cgal_program( "repair_polygon_2_test.cpp" )
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_test_polygons PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_test_polygons PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(exact_test PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(exact_test PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()

View File

@ -5,8 +5,8 @@ namespace CGAL {
opens a new window and draws a polyhedron. Parameters of the drawing are taken from the optional graphics scene options parameter. opens a new window and draws a polyhedron. Parameters of the drawing are taken from the optional graphics scene options parameter.
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\tparam P which must be an instantiation of a `CGAL::Polyhedron_3<...>`. \tparam P which must be an instantiation of a `CGAL::Polyhedron_3<...>`.
\tparam GSOptions a model of `GraphicsSceneOptions` concept. \tparam GSOptions a model of `GraphicsSceneOptions` concept.

View File

@ -284,8 +284,8 @@ A polyhedron can be visualized by calling the \link PkgDrawPolyhedron CGAL::draw
\cgalExample{Polyhedron/draw_polyhedron.cpp} \cgalExample{Polyhedron/draw_polyhedron.cpp}
This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined. This function 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` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\cgalFigureBegin{fig_draw_polyhedron,draw_polyhedron.png} \cgalFigureBegin{fig_draw_polyhedron,draw_polyhedron.png}
Result of the run of the draw_polyhedron program. A window shows the polyhedron and allows to navigate through the 3D scene. Result of the run of the draw_polyhedron program. A window shows the polyhedron and allows to navigate through the 3D scene.

View File

@ -16,5 +16,5 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_polyhedron PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_polyhedron PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()

View File

@ -15,12 +15,12 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_straight_skeleton_2 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_straight_skeleton_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(exterior_offset_of_multiple_polygons_with_holes PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(exterior_offset_of_multiple_polygons_with_holes PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(Create_straight_skeleton_2 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(Create_straight_skeleton_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(Show_offset_polygon PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(Show_offset_polygon PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(Show_straight_skeleton PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(Show_straight_skeleton PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(extrude_skeleton PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(extrude_skeleton PRIVATE CGAL::CGAL_Basic_viewer_Qt)
else() else()
message(STATUS "NOTICE: The example 'draw_straight_skeleton_2' requires Qt and will not be compiled.") message(STATUS "NOTICE: The example 'draw_straight_skeleton_2' requires Qt and will not be compiled.")
endif() endif()

View File

@ -17,8 +17,8 @@ create_single_source_cgal_program("test_sls_traits.cpp")
create_single_source_cgal_program("test_straight_skeleton_copy.cpp") create_single_source_cgal_program("test_straight_skeleton_copy.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(issue4684 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(issue4684 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(test_sls_previous_issues PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(test_sls_previous_issues PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()
if (CGAL_Core_FOUND OR LEDA_FOUND) if (CGAL_Core_FOUND OR LEDA_FOUND)
@ -30,11 +30,11 @@ if (CGAL_Core_FOUND OR LEDA_FOUND)
create_single_source_cgal_program("test_sls_weighted_polygons.cpp") create_single_source_cgal_program("test_sls_weighted_polygons.cpp")
create_single_source_cgal_program("test_sls_weighted_polygons_with_holes.cpp") create_single_source_cgal_program("test_sls_weighted_polygons_with_holes.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(issue7149 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(issue7149 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(issue7284 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(issue7284 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(test_sls_offset PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(test_sls_offset PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(test_sls_weighted_offset PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(test_sls_weighted_offset PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(test_sls_weighted_polygons PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(test_sls_weighted_polygons PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(test_sls_weighted_polygons_with_holes PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(test_sls_weighted_polygons_with_holes PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()
endif() endif()

View File

@ -12,7 +12,7 @@ include_directories(BEFORE "include")
if (CGAL_Core_FOUND OR LEDA_FOUND) if (CGAL_Core_FOUND OR LEDA_FOUND)
create_single_source_cgal_program("test_sls_extrude.cpp") create_single_source_cgal_program("test_sls_extrude.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(test_sls_extrude PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(test_sls_extrude PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()
else() else()
message("NOTICE: Tests require CGAL_Core (or LEDA), and will not be compiled.") message("NOTICE: Tests require CGAL_Core (or LEDA), and will not be compiled.")

View File

@ -388,8 +388,8 @@ A surface mesh can be visualized by calling the \link PkgDrawSurfaceMesh CGAL::d
\cgalExample{Surface_mesh/draw_surface_mesh.cpp} \cgalExample{Surface_mesh/draw_surface_mesh.cpp}
This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined. This function 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` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\cgalFigureBegin{fig_draw_surface_mesh,draw_surface_mesh.png} \cgalFigureBegin{fig_draw_surface_mesh,draw_surface_mesh.png}
Result of the run of the draw_surface_mesh program. A window shows the surface mesh and allows to navigate through the 3D scene. Result of the run of the draw_surface_mesh program. A window shows the surface mesh and allows to navigate through the 3D scene.

View File

@ -30,7 +30,7 @@ create_single_source_cgal_program("draw_surface_mesh.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
#link it with the required CGAL libraries #link it with the required CGAL libraries
target_link_libraries(draw_surface_mesh PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_surface_mesh PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()

View File

@ -20,8 +20,8 @@
opens a new window and draws a surface mesh. Parameters of the drawing are taken from the optional graphics scene options parameter. opens a new window and draws a surface mesh. Parameters of the drawing are taken from the optional graphics scene options parameter.
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\tparam SM which must be an instantiation of a `CGAL::Surface_mesh<...>`. \tparam SM which must be an instantiation of a `CGAL::Surface_mesh<...>`.
\tparam GSOptions a model of `GraphicsSceneOptions` concept. \tparam GSOptions a model of `GraphicsSceneOptions` concept.

View File

@ -5,8 +5,8 @@ namespace CGAL {
opens a new window and draws `amesh`, either a 2D linear cell complex or a model of the FaceGraph concept, plus the paths lying on this mesh given in `apaths`. Parameters of the drawing are taken from the optional graphics scene options parameter. opens a new window and draws `amesh`, either a 2D linear cell complex or a model of the FaceGraph concept, plus the paths lying on this mesh given in `apaths`. Parameters of the drawing are taken from the optional graphics scene options parameter.
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\tparam Mesh either a 2D linear cell complex or a model of the FaceGraph concept. \tparam Mesh either a 2D linear cell complex or a model of the FaceGraph concept.
\tparam GSOptions a model of `GraphicsSceneOptionsFaceGraphWithPaths` concept. \tparam GSOptions a model of `GraphicsSceneOptionsFaceGraphWithPaths` concept.

View File

@ -32,17 +32,17 @@ foreach(cppfile ${SOURCE_FILES})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(edgewidth_lcc PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(edgewidth_lcc PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(edgewidth_surface_mesh PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(edgewidth_surface_mesh PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(facewidth PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(facewidth PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(open_path_homotopy PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(open_path_homotopy PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(path_homotopy PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(path_homotopy PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(path_homotopy_double_torus PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(path_homotopy_double_torus PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(path_homotopy_torus PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(path_homotopy_torus PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(path_homotopy_with_sm_and_polyhedron PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(path_homotopy_with_sm_and_polyhedron PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(path_simplicity_double_torus PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(path_simplicity_double_torus PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(path_simplicity_double_torus_2 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(path_simplicity_double_torus_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(shortest_noncontractible_cycle_2 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(shortest_noncontractible_cycle_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(shortest_noncontractible_cycle PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(shortest_noncontractible_cycle PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(unsew_edgewidth_repeatedly PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(unsew_edgewidth_repeatedly PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()

View File

@ -33,7 +33,7 @@ int main(int argc, char* argv[])
{ {
std::cout<<" Number of faces: "<<cycle.size()<<std::endl; std::cout<<" Number of faces: "<<cycle.size()<<std::endl;
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
if(argc>=3 && std::string(argv[2])=="-draw") if(argc>=3 && std::string(argv[2])=="-draw")
{ draw_facewidth(lcc, cycle); } { draw_facewidth(lcc, cycle); }
#endif #endif

View File

@ -4,7 +4,7 @@
#include <CGAL/Path_on_surface.h> #include <CGAL/Path_on_surface.h>
/* If you want to use a viewer, you can use qglviewer. */ /* If you want to use a viewer, you can use qglviewer. */
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
#include <CGAL/draw_face_graph_with_paths.h> #include <CGAL/draw_face_graph_with_paths.h>
#endif #endif
@ -167,7 +167,7 @@ int main(int argc, char** argv)
if (!res) if (!res)
{ errors_seeds.push_back(random.get_seed()); } { errors_seeds.push_back(random.get_seed()); }
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
if (draw) if (draw)
{ CGAL::draw(lcc, paths); } { CGAL::draw(lcc, paths); }
#endif #endif

View File

@ -32,7 +32,7 @@ private:
const LCC_3& m_lcc; const LCC_3& m_lcc;
}; };
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
struct Draw_functor: public CGAL::Graphics_scene_options<LCC_3, struct Draw_functor: public CGAL::Graphics_scene_options<LCC_3,
typename LCC_3::Dart_const_handle, typename LCC_3::Dart_const_handle,
@ -63,16 +63,16 @@ struct Draw_functor: public CGAL::Graphics_scene_options<LCC_3,
LCC_3::size_type belong_to_cycle; LCC_3::size_type belong_to_cycle;
}; };
#endif // CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
std::cout<<"Program unsew_edgewidth_repeatedly started."<<std::endl; std::cout<<"Program unsew_edgewidth_repeatedly started."<<std::endl;
std::string filename(argc==1?CGAL::data_file_path("meshes/double-torus-example.off"):argv[1]); std::string filename(argc==1?CGAL::data_file_path("meshes/double-torus-example.off"):argv[1]);
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
bool draw=(argc<3?false:std::string(argv[2])=="-draw"); bool draw=(argc<3?false:std::string(argv[2])=="-draw");
#endif // CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
std::ifstream inp(filename); std::ifstream inp(filename);
if (inp.fail()) if (inp.fail())
@ -143,13 +143,13 @@ int main(int argc, char* argv[])
} }
while(cycle_exist); while(cycle_exist);
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
if (draw) if (draw)
{ {
Draw_functor df(is_root, belong_to_cycle); Draw_functor df(is_root, belong_to_cycle);
CGAL::draw(lccoriginal, df, "Unsew edge width repeatdly"); CGAL::draw(lccoriginal, df, "Unsew edge width repeatdly");
} }
#endif // CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
lccoriginal.free_mark(belong_to_cycle); lccoriginal.free_mark(belong_to_cycle);
lccoriginal.free_mark(is_root); lccoriginal.free_mark(is_root);

View File

@ -34,8 +34,8 @@ foreach(cppfile ${SOURCE_FILES})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(fundamental_group_of_the_circle PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(fundamental_group_of_the_circle PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(fundamental_group_of_the_torus PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(fundamental_group_of_the_torus PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(path_with_rle_deformation_tests PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(path_with_rle_deformation_tests PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(test_homotopy PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(test_homotopy PRIVATE CGAL::CGAL_Basic_viewer_Qt)
endif() endif()

View File

@ -20,7 +20,7 @@ Then it verify that
#include <cassert> #include <cassert>
// If you want to use a viewer, you can use qglviewer. // If you want to use a viewer, you can use qglviewer.
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
#include <CGAL/draw_face_graph_with_paths.h> #include <CGAL/draw_face_graph_with_paths.h>
#endif #endif
@ -76,11 +76,11 @@ void create_positive_loop_24(Path_on_surface<SM>& p, unsigned int n)
{ {
p.extend_straight_positive((10*n)-1); p.extend_straight_positive((10*n)-1);
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
/* std::vector<Path_on_surface<SM> > v; /* std::vector<Path_on_surface<SM> > v;
v.push_back(p); v.push_back(p);
CGAL::draw(p.get_mesh(), v, "Title"); */ CGAL::draw(p.get_mesh(), v, "Title"); */
#endif // CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
assert(p.is_closed()); assert(p.is_closed());
} }

View File

@ -119,10 +119,10 @@ int main()
bool cij, ckl, hij_ij, hij_kl, hkl_ij, hkl_kl; bool cij, ckl, hij_ij, hij_kl, hkl_ij, hkl_kl;
bool test_valid=true; bool test_valid=true;
/* /*
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
std::vector<Path_on_surface<SM> > paths={pij, pkl}; std::vector<Path_on_surface<SM> > paths={pij, pkl};
CGAL::draw(sm, paths); // Enable only if CGAL was compiled with Qt6 CGAL::draw(sm, paths); // Enable only if CGAL was compiled with Qt6
#endif // CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
*/ */
for (int i=-4; i<=4; ++i) for (int i=-4; i<=4; ++i)
{ {

View File

@ -11,7 +11,7 @@
#include "Creation_of_test_cases_for_paths.h" #include "Creation_of_test_cases_for_paths.h"
// If you want to use a viewer, you can use qglviewer. // If you want to use a viewer, you can use qglviewer.
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
#include <CGAL/draw_face_graph_with_paths.h> #include <CGAL/draw_face_graph_with_paths.h>
#endif #endif
@ -53,21 +53,21 @@ void transform_path(Path_on_surface<LCC_3_cmap>& path, Transformation t,
bool use_only_positive, bool use_only_positive,
bool use_only_negative, bool use_only_negative,
bool bool
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
draw draw
#endif #endif
=false, =false,
std::size_t repeat=0) // If 0, repeat as long as there is one modification; std::size_t repeat=0) // If 0, repeat as long as there is one modification;
// otherwise repeat the given number of times // otherwise repeat the given number of times
{ {
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
std::vector<Path_on_surface<LCC_3_cmap> > v; std::vector<Path_on_surface<LCC_3_cmap> > v;
if (draw) if (draw)
{ {
v.push_back(path); v.push_back(path);
// CGAL::draw(path.get_map(), v); // CGAL::draw(path.get_map(), v);
} }
#endif // CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
internal::Light_MQ<LCC_3_cmap> lmq(path.get_map()); internal::Light_MQ<LCC_3_cmap> lmq(path.get_map());
Path_on_surface<LCC_3_cmap> prepp(path.get_map()); Path_on_surface<LCC_3_cmap> prepp(path.get_map());
@ -100,9 +100,9 @@ void transform_path(Path_on_surface<LCC_3_cmap>& path, Transformation t,
if (modified) if (modified)
{ {
prevp=Path_on_surface<LCC_3_cmap>(curp); prevp=Path_on_surface<LCC_3_cmap>(curp);
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
if (draw) { v.push_back(prevp); } if (draw) { v.push_back(prevp); }
#endif // CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
} }
// if (draw /* && nbtest==1*/) // if (draw /* && nbtest==1*/)
@ -112,13 +112,13 @@ void transform_path(Path_on_surface<LCC_3_cmap>& path, Transformation t,
} }
while((repeat==0 && modified) || (nb<repeat)); while((repeat==0 && modified) || (nb<repeat));
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
if (draw) if (draw)
{ {
std::string title="Test "+std::to_string(nbtests); std::string title="Test "+std::to_string(nbtests);
CGAL::draw(path.get_map(), v, title.c_str()); CGAL::draw(path.get_map(), v, title.c_str());
} }
#endif // CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
path.swap(prevp); path.swap(prevp);
assert(path.is_valid(true)); assert(path.is_valid(true));

View File

@ -10,7 +10,7 @@
#include "Creation_of_test_cases_for_paths.h" #include "Creation_of_test_cases_for_paths.h"
/* If you want to use a viewer, you can use qglviewer. */ /* If you want to use a viewer, you can use qglviewer. */
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
#include <CGAL/draw_face_graph_with_paths.h> #include <CGAL/draw_face_graph_with_paths.h>
#endif #endif
@ -44,7 +44,7 @@ bool unit_test_canonize(Curves_on_surface_topology<LCC_3_cmap>& cst,
std::vector<Path_on_surface<LCC_3_cmap> >& paths, std::vector<Path_on_surface<LCC_3_cmap> >& paths,
const char* msg, const char* msg,
bool bool
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
draw draw
#endif #endif
, int testtorun) , int testtorun)
@ -70,13 +70,13 @@ bool unit_test_canonize(Curves_on_surface_topology<LCC_3_cmap>& cst,
} }
} }
#ifdef CGAL_USE_BASIC_VIEWER #ifdef CGAL_USE_BASIC_VIEWER_QT
if (draw) if (draw)
{ {
std::string title="Test "+std::to_string(nbtests); std::string title="Test "+std::to_string(nbtests);
CGAL::draw(paths[0].get_map(), paths, title.c_str()); CGAL::draw(paths[0].get_map(), paths, title.c_str());
} }
#endif // CGAL_USE_BASIC_VIEWER #endif // CGAL_USE_BASIC_VIEWER_QT
#ifdef CGAL_TRACE_PATH_TESTS #ifdef CGAL_TRACE_PATH_TESTS
if (res) { std::cout<<std::endl; } if (res) { std::cout<<std::endl; }

View File

@ -5,8 +5,8 @@ namespace CGAL {
opens a new window and draws a triangulation. Parameters of the drawing are taken from the optional graphics scene options parameter. opens a new window and draws a triangulation. Parameters of the drawing are taken from the optional graphics scene options parameter.
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\tparam T2 which must be an instantiation of a `CGAL::Triangulation_2<...>`. \tparam T2 which must be an instantiation of a `CGAL::Triangulation_2<...>`.
\tparam GSOptions a model of `GraphicsSceneOptions` concept. \tparam GSOptions a model of `GraphicsSceneOptions` concept.

View File

@ -509,8 +509,8 @@ A 2D triangulation can be visualized by calling the \link PkgDrawTriangulation2
\cgalExample{Triangulation_2/draw_triangulation_2.cpp} \cgalExample{Triangulation_2/draw_triangulation_2.cpp}
This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined. This function 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` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\cgalFigureBegin{fig_draw_triangulation_2,draw_triangulation_2.png} \cgalFigureBegin{fig_draw_triangulation_2,draw_triangulation_2.png}
Result of the run of the draw_triangulation_2 program. A window shows the 2D triangulation and allows to navigate through the scene. Result of the run of the draw_triangulation_2 program. A window shows the 2D triangulation and allows to navigate through the scene.

View File

@ -16,10 +16,10 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(constrained PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(constrained PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(draw_triangulation_2 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_triangulation_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(polygon_triangulation PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(polygon_triangulation PRIVATE CGAL::CGAL_Basic_viewer_Qt)
target_link_libraries(star_conflict_zone PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(star_conflict_zone PRIVATE CGAL::CGAL_Basic_viewer_Qt)
else() else()
message(STATUS "NOTICE: Several examples require Qt6 and will not be compiled.") message(STATUS "NOTICE: Several examples require Qt6 and will not be compiled.")
endif() endif()

View File

@ -5,8 +5,8 @@ namespace CGAL {
opens a new window and draws a 3D triangulation. Parameters of the drawing are taken from the optional graphics scene options parameter. opens a new window and draws a 3D triangulation. Parameters of the drawing are taken from the optional graphics scene options parameter.
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\tparam T3 which must be an instantiation of a `CGAL::Triangulation_3<...>`. \tparam T3 which must be an instantiation of a `CGAL::Triangulation_3<...>`.
\tparam GSOptions a model of `GraphicsSceneOptions` concept. \tparam GSOptions a model of `GraphicsSceneOptions` concept.

View File

@ -569,8 +569,8 @@ A 3D triangulation can be visualized by calling the \link PkgDrawTriangulation3
\cgalExample{Triangulation_3/draw_triangulation_3.cpp} \cgalExample{Triangulation_3/draw_triangulation_3.cpp}
This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined. This function 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` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\cgalFigureBegin{fig_draw_triangulation_3,draw_triangulation_3.png} \cgalFigureBegin{fig_draw_triangulation_3,draw_triangulation_3.png}
Result of the run of the draw_triangulation_3 program. A window shows the 3D triangulation and allows to navigate through the 3D scene. Result of the run of the draw_triangulation_3 program. A window shows the 3D triangulation and allows to navigate through the 3D scene.

View File

@ -22,7 +22,7 @@ create_single_source_cgal_program("simplex.cpp")
create_single_source_cgal_program("draw_triangulation_3.cpp") create_single_source_cgal_program("draw_triangulation_3.cpp")
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_triangulation_3 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_triangulation_3 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
else() else()
message(STATUS "NOTICE: The example 'draw_triangulation_3' requires Qt6, and will not be compiled.") message(STATUS "NOTICE: The example 'draw_triangulation_3' requires Qt6, and will not be compiled.")
endif() endif()

View File

@ -27,8 +27,8 @@ struct Graphics_scene_options_voronoi_diagram_2: public CGAL::Graphics_scene_opt
opens a new window and draws a 2D voronoi diagram. Parameters of the drawing are taken from the optional graphics scene options parameter. opens a new window and draws a 2D voronoi diagram. Parameters of the drawing are taken from the optional graphics scene options parameter.
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. 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_QT` (Qt viewer) is defined.
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`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\tparam VD2 which must be an instantiation of a `CGAL::Voronoi_diagram_2<...>`. \tparam VD2 which must be an instantiation of a `CGAL::Voronoi_diagram_2<...>`.
\tparam GSOptions a model of `GraphicsSceneOptionsVoronoiDiagram2` concept. \tparam GSOptions a model of `GraphicsSceneOptionsVoronoiDiagram2` concept.

View File

@ -493,8 +493,8 @@ location queries.
A 2D Voronoi Diagram can be visualized by calling the \link PkgDrawVoronoiDiagram2 CGAL::draw<VD>() \endlink function as A 2D Voronoi Diagram can be visualized by calling the \link PkgDrawVoronoiDiagram2 CGAL::draw<VD>() \endlink function as
shown in the following example. This function opens a new window showing the Voronoi Diagram of the given input sites/vertex locations. A call to this function is blocking, that is the program continues as soon as the user closes the window. shown in the following example. This function opens a new window showing the Voronoi Diagram of the given input sites/vertex locations. A call to this function is blocking, that is the program continues as soon as the user closes the window.
This function requires `CGAL_Qt6`, and is only available if the macro `CGAL_USE_BASIC_VIEWER` is defined. This function 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` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER`. Linking with the cmake target `CGAL::CGAL_Basic_viewer_Qt` will link with `CGAL_Qt6` and add the definition `CGAL_USE_BASIC_VIEWER_QT`.
\cgalExample{Voronoi_diagram_2/draw_voronoi_diagram_2.cpp} \cgalExample{Voronoi_diagram_2/draw_voronoi_diagram_2.cpp}

View File

@ -16,7 +16,7 @@ foreach(cppfile ${cppfiles})
endforeach() endforeach()
if(CGAL_Qt6_FOUND) if(CGAL_Qt6_FOUND)
target_link_libraries(draw_voronoi_diagram_2 PRIVATE CGAL::CGAL_Basic_viewer) target_link_libraries(draw_voronoi_diagram_2 PRIVATE CGAL::CGAL_Basic_viewer_Qt)
else() else()
message(STATUS "NOTICE: The Qt6 library was not found. The example 'draw_voronoi_diagram_2' will not be compiled.") message(STATUS "NOTICE: The Qt6 library was not found. The example 'draw_voronoi_diagram_2' will not be compiled.")
endif() endif()

View File

@ -371,7 +371,7 @@ void add_to_graphics_scene(const CGAL_VORONOI_TYPE& v2,
add_to_graphics_scene(v2, graphics_scene, gs_options); add_to_graphics_scene(v2, graphics_scene, gs_options);
} }
#if defined(CGAL_USE_BASIC_VIEWER) || defined(CGAL_USE_BASIC_VIEWER_QT) #if defined(CGAL_USE_BASIC_VIEWER_QT)
// Specialization of draw function. // Specialization of draw function.
template<class DG, class AT, class AP, class GSOptions> template<class DG, class AT, class AP, class GSOptions>
@ -449,7 +449,7 @@ void draw(const CGAL_VORONOI_TYPE& av2,
draw(av2, gs_options, title); draw(av2, gs_options, title);
} }
#endif // CGAL_USE_BASIC_VIEWER || CGAL_USE_BASIC_VIEWER_QT #endif // CGAL_USE_BASIC_VIEWER_QT
#undef CGAL_VORONOI_TYPE #undef CGAL_VORONOI_TYPE