Class

CGAL::Qt::PainterOstream<K>

Definition

An object of type Qt::PainterOstream<K> provides output operators for Cgal kernel objects. As Cgal has unbounded objects the Qt::PainterOstream<K> must be constructed with a clipping rectangle. This is typically the visible area of the widget where the unbounded object is displayed.

#include <CGAL/Qt/PainterOstream.h>

Creation

Qt::PainterOstream<K> os ( QPainter* qp, QRectF clippingRect);
The clipping rect is used for unbounded Cgal objects.

Operations

PainterOstream<K> os << K::Point_2 Draws a point.

PainterOstream<K> os << K::Segment_2 Draws a segment.

PainterOstream<K> os << K::Ray_2 Draws a clipped ray.

PainterOstream<K> os << K::Line_2 Draws a clipped line.

PainterOstream<K> os << K::Triangle_2 Draws a triangle.

PainterOstream<K> os << K::Iso_rectangle_2 Draws an iso rectangle.

PainterOstream<K> os << K::Circle_2 Draws a circle.

PainterOstream<K> os << K::Circular_arc_2 Draws a circular arc.

PainterOstream<K> os << std::list<K::Point_2> Draws a polyline. In order to close it the first and last point must be equal.

PainterOstream<K> os << Bbox_2 Draws an iso rectangle.

PainterOstream<K> os << QPen Sets the pen used in the next paint operations.

PainterOstream<K> os << QBrush Sets the brush used in the next paint operations.