\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.7 - CGAL and the Qt Graphics View Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::Qt::VoronoiGraphicsItem< DT > Class Template Reference

#include <CGAL/Qt/VoronoiGraphicsItem.h>

Inherits from

CGAL::Qt::GraphicsItem.

Definition

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

Template Parameters
DTmust be a 2D Delaunay triangulation class.

Creation

 VoronoiGraphicsItem (DT *dt)
 Constructs a graphics item for the dual of the Delaunay triangulation dt. More...
 

Operations

QPen edgesPen ()() const
 Returns the pen used to draw edges. More...
 
void setEdgesPen ()(const QPen &p)
 Set the pen used to draw edges. More...
 
bool visibleEdges ()
 Returns true, iff edges are drawn. More...
 
bool setVisibleEdges (bool b)
 Set the property. More...
 

Additional Inherited Members

- Public Member Functions inherited from CGAL::Qt::GraphicsItem
virtual void modelChanged ()
 This slot must be provided by derived classes. More...
 

Constructor & Destructor Documentation

template<typename DT >
CGAL::Qt::VoronoiGraphicsItem< DT >::VoronoiGraphicsItem ( DT *  dt)

Constructs a graphics item for the dual of the Delaunay triangulation dt.

Member Function Documentation

template<typename DT >
QPen CGAL::Qt::VoronoiGraphicsItem< DT >::edgesPen ( ) const

Returns the pen used to draw edges.

template<typename DT >
void CGAL::Qt::VoronoiGraphicsItem< DT >::setEdgesPen ( ) const

Set the pen used to draw edges.

template<typename DT >
bool CGAL::Qt::VoronoiGraphicsItem< DT >::setVisibleEdges ( bool  b)

Set the property.

template<typename DT >
bool CGAL::Qt::VoronoiGraphicsItem< DT >::visibleEdges ( )

Returns true, iff edges are drawn.