Class

CGAL::Qt::VoronoiGraphicsItem<DT>

Definition

An object of type Qt::VoronoiGraphicsItem<DT> is a graphics item that encapsulates a Delaunay triangulation in order to draw its dual, the Voronoi diagram.

#include <CGAL/Qt/VoronoiGraphicsItem.h>

Parameters

The template parameter DT of Qt::VoronoiGraphicsItem<DT> must be a Cgal 2D Delaunay triangulation class.

Inherits From

Qt::GraphicsItem

Creation

Qt::VoronoiGraphicsItem<DT> vgi ( DT* dt);
Constructs a graphics item for the dual of the Delaunay triangulation dt.

Operations

QPen vgi.edgesPen() () const Returns the pen used to draw edges.

void vgi.setEdgesPen() ( QPen p) Set the pen used to draw edges.

bool vgi.visibleEdges () Returns true, iff edges are drawn.

bool vgi.setVisibleEdges ( bool b) Set the property.