\( \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::PainterOstream< K > Class Template Reference

#include <CGAL/Qt/PainterOstream.h>

Definition

An object of type PainterOstream provides output operators for Kernel objects.

As CGAL has unbounded objects the PainterOstream must be constructed with a clipping rectangle. This is typically the visible area of the widget where the unbounded object is displayed.

Creation

 PainterOstream (QPainter *qp, QRectF clippingRect)
 The clipping rect is used for unbounded Kernel objects. More...
 

Operations

PainterOstream< K > operator<< (K::Point_2)
 Draws a point. More...
 
PainterOstream< K > operator<< (K::Segment_2)
 Draws a segment. More...
 
PainterOstream< K > operator<< (K::Ray_2)
 Draws a clipped ray. More...
 
PainterOstream< K > operator<< (K::Line_2)
 Draws a clipped line. More...
 
PainterOstream< K > operator<< (K::Triangle_2)
 Draws a triangle. More...
 
PainterOstream< K > operator<< (K::Iso_rectangle_2)
 Draws an iso rectangle. More...
 
PainterOstream< K > operator<< (K::Circle_2)
 Draws a circle. More...
 
PainterOstream< K > operator<< (K::Circular_arc_2)
 Draws a circular arc. More...
 
PainterOstream< K > operator<< (std::list< K::Point_2 >)
 Draws a polyline. More...
 
PainterOstream< K > operator<< (Bbox_2)
 Draws an iso rectangle. More...
 
PainterOstream< K > operator<< (QPen)
 Sets the pen used in the next paint operations. More...
 
PainterOstream< K > operator<< (QBrush)
 Sets the brush used in the next paint operations. More...
 

Constructor & Destructor Documentation

template<typename K >
CGAL::Qt::PainterOstream< K >::PainterOstream ( QPainter *  qp,
QRectF  clippingRect 
)

The clipping rect is used for unbounded Kernel objects.

Member Function Documentation

template<typename K >
PainterOstream<K> CGAL::Qt::PainterOstream< K >::operator<< ( K::Point_2  )

Draws a point.

template<typename K >
PainterOstream<K> CGAL::Qt::PainterOstream< K >::operator<< ( QBrush  )

Sets the brush used in the next paint operations.

template<typename K >
PainterOstream<K> CGAL::Qt::PainterOstream< K >::operator<< ( QPen  )

Sets the pen used in the next paint operations.

template<typename K >
PainterOstream<K> CGAL::Qt::PainterOstream< K >::operator<< ( Bbox_2  )

Draws an iso rectangle.

template<typename K >
PainterOstream<K> CGAL::Qt::PainterOstream< K >::operator<< ( std::list< K::Point_2 >  )

Draws a polyline.

In order to close it the first and last point must be equal.

template<typename K >
PainterOstream<K> CGAL::Qt::PainterOstream< K >::operator<< ( K::Circular_arc_2  )

Draws a circular arc.

template<typename K >
PainterOstream<K> CGAL::Qt::PainterOstream< K >::operator<< ( K::Circle_2  )

Draws a circle.

template<typename K >
PainterOstream<K> CGAL::Qt::PainterOstream< K >::operator<< ( K::Iso_rectangle_2  )

Draws an iso rectangle.

template<typename K >
PainterOstream<K> CGAL::Qt::PainterOstream< K >::operator<< ( K::Triangle_2  )

Draws a triangle.

template<typename K >
PainterOstream<K> CGAL::Qt::PainterOstream< K >::operator<< ( K::Line_2  )

Draws a clipped line.

template<typename K >
PainterOstream<K> CGAL::Qt::PainterOstream< K >::operator<< ( K::Ray_2  )

Draws a clipped ray.

template<typename K >
PainterOstream<K> CGAL::Qt::PainterOstream< K >::operator<< ( K::Segment_2  )

Draws a segment.