CGAL 6.1 - CGAL Basic Viewer

Loading...
Searching...
No Matches
Classes | Functions
Classes
Reference Manual

##

## Classes
class | CGAL::Graphics_scene
| The class `Graphics_scene` stores points, segments, triangles, rays, and lines. More...
struct | CGAL::Graphics_scene_options< DS, VertexDescriptor, EdgeDescriptor, FaceDescriptor, VolumeDescriptor >
| The class `Graphics_scene_options` is used to tune the way that the cells of a given data structure of CGAL are considered. More...
class | CGAL::Qt::Basic_viewer
| The class `Basic_viewer` is a Qt widget based on `QGLViewer` that allows to visualize 3D elements: points, segments, triangles, rays and lines. More...
class | CGAL::Qt::QApplication_and_basic_viewer
| The class `QApplication_and_basic_viewer` regroups a `Basic_viewer` and Qt `QApplication`. More...

## Functions
void | CGAL::draw_graphics_scene (const Graphics_scene &graphic_scene, const char *title="CGAL Basic Viewer")
| opens a new window and draws the given `Graphics_scene` (which must have been filled before).

## Function Documentation

## ◆ draw_graphics_scene()

void CGAL::draw_graphics_scene | ( | const Graphics_scene & | graphic_scene,
|  | const char * | title = `"CGAL Basic Viewer"`
| ) |  |

`#include <CGAL/Qt/Basic_viewer.h>`

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.

Examples
  Basic_viewer/draw_mesh_and_points.cpp.