CGAL 5.1 - CGAL and the Qt Graphics View Framework
CGAL::Qt::TriangulationGraphicsItem< T > Class Template Reference

#include <CGAL/Qt/TriangulationGraphicsItem.h>

Inherits CGAL::Qt::GraphicsItem.

Inherited by CGAL::Qt::ConstrainedTriangulationGraphicsItem< CT >.

Definition

template<typename T>
class CGAL::Qt::TriangulationGraphicsItem< T >

An object of type TriangulationGraphicsItem is a graphics item that encapsulates a 2D triangulation.

Template Parameters
Tmust be a 2D triangulation class.

Creation

 TriangulationGraphicsItem (T *t)
 Constructs a graphics item for a triangulation pointed by t. More...
 

Operations

QPen verticesPen ()() const
 Returns the pen used to draw vertices. More...
 
void setVerticesPen ()(const QPen &p)
 Sets the pen used to draw vertices. More...
 
QPen edgesPen ()() const
 Returns the pen used to draw edges. More...
 
void setEdgesPen ()(const QPen &p)
 Sets the pen used to draw edges. More...
 
bool visibleVertices ()
 Returns true, iff vertices are drawn. More...
 
void setVisibleVertices (bool b)
 Sets the property. More...
 
bool visibleEdges ()
 Returns true, iff edges are drawn. More...
 
void setVisibleEdges (bool b)
 Sets 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

◆ TriangulationGraphicsItem()

template<typename T >
CGAL::Qt::TriangulationGraphicsItem< T >::TriangulationGraphicsItem ( T *  t)

Constructs a graphics item for a triangulation pointed by t.

Member Function Documentation

◆ edgesPen()

template<typename T >
QPen CGAL::Qt::TriangulationGraphicsItem< T >::edgesPen ( ) const

Returns the pen used to draw edges.

◆ setEdgesPen()

template<typename T >
void CGAL::Qt::TriangulationGraphicsItem< T >::setEdgesPen ( ) const &

Sets the pen used to draw edges.

◆ setVerticesPen()

template<typename T >
void CGAL::Qt::TriangulationGraphicsItem< T >::setVerticesPen ( ) const &

Sets the pen used to draw vertices.

◆ setVisibleEdges()

template<typename T >
void CGAL::Qt::TriangulationGraphicsItem< T >::setVisibleEdges ( bool  b)

Sets the property.

◆ setVisibleVertices()

template<typename T >
void CGAL::Qt::TriangulationGraphicsItem< T >::setVisibleVertices ( bool  b)

Sets the property.

◆ verticesPen()

template<typename T >
QPen CGAL::Qt::TriangulationGraphicsItem< T >::verticesPen ( ) const

Returns the pen used to draw vertices.

◆ visibleEdges()

template<typename T >
bool CGAL::Qt::TriangulationGraphicsItem< T >::visibleEdges ( )

Returns true, iff edges are drawn.

◆ visibleVertices()

template<typename T >
bool CGAL::Qt::TriangulationGraphicsItem< T >::visibleVertices ( )

Returns true, iff vertices are drawn.