Static Public Member Functions | List of all members
QwtClipper Class Reference

Some clipping algorithms. More...

#include <qwt_clipper.h>

Static Public Member Functions

static QVector< QwtIntervalclipCircle (const QRectF &, const QPointF &, double radius)
 
static QPolygon clippedPolygon (const QRect &, const QPolygon &, bool closePolygon=false)
 
static QPolygon clippedPolygon (const QRectF &, const QPolygon &, bool closePolygon=false)
 
static QPolygonF clippedPolygonF (const QRectF &, const QPolygonF &, bool closePolygon=false)
 
static void clipPolygon (const QRect &, QPolygon &, bool closePolygon=false)
 
static void clipPolygon (const QRectF &, QPolygon &, bool closePolygon=false)
 
static void clipPolygonF (const QRectF &, QPolygonF &, bool closePolygon=false)
 

Detailed Description

Some clipping algorithms.

Definition at line 25 of file qwt_clipper.h.

Member Function Documentation

QVector< QwtInterval > QwtClipper::clipCircle ( const QRectF &  clipRect,
const QPointF &  center,
double  radius 
)
static

Circle clipping

clipCircle() divides a circle into intervals of angles representing arcs of the circle. When the circle is completely inside the clip rectangle an interval [0.0, 2 * M_PI] is returned.

Parameters
clipRectClip rectangle
centerCenter of the circle
radiusRadius of the circle
Returns
Arcs of the circle

Definition at line 477 of file qwt_clipper.cpp.

QPolygon QwtClipper::clippedPolygon ( const QRect &  clipRect,
const QPolygon &  polygon,
bool  closePolygon = false 
)
static

Sutherland-Hodgman polygon clipping

Parameters
clipRectClip rectangle
polygonPolygon
closePolygonTrue, when the polygon is closed
Returns
Clipped polygon

Definition at line 437 of file qwt_clipper.cpp.

QPolygon QwtClipper::clippedPolygon ( const QRectF &  clipRect,
const QPolygon &  polygon,
bool  closePolygon = false 
)
static

Sutherland-Hodgman polygon clipping

Parameters
clipRectClip rectangle
polygonPolygon
closePolygonTrue, when the polygon is closed
Returns
Clipped polygon

Definition at line 420 of file qwt_clipper.cpp.

QPolygonF QwtClipper::clippedPolygonF ( const QRectF &  clipRect,
const QPolygonF &  polygon,
bool  closePolygon = false 
)
static

Sutherland-Hodgman polygon clipping

Parameters
clipRectClip rectangle
polygonPolygon
closePolygonTrue, when the polygon is closed
Returns
Clipped polygon

Definition at line 455 of file qwt_clipper.cpp.

void QwtClipper::clipPolygon ( const QRect &  clipRect,
QPolygon &  polygon,
bool  closePolygon = false 
)
static

Sutherland-Hodgman polygon clipping

Parameters
clipRectClip rectangle
polygonPolygon IN/OUT
closePolygonTrue, when the polygon is closed

Definition at line 390 of file qwt_clipper.cpp.

void QwtClipper::clipPolygon ( const QRectF &  clipRect,
QPolygon &  polygon,
bool  closePolygon = false 
)
static

Sutherland-Hodgman polygon clipping

Parameters
clipRectClip rectangle
polygonPolygon IN/OUT
closePolygonTrue, when the polygon is closed

Definition at line 369 of file qwt_clipper.cpp.

void QwtClipper::clipPolygonF ( const QRectF &  clipRect,
QPolygonF &  polygon,
bool  closePolygon = false 
)
static

Sutherland-Hodgman polygon clipping

Parameters
clipRectClip rectangle
polygonPolygon IN/OUT
closePolygonTrue, when the polygon is closed

Definition at line 404 of file qwt_clipper.cpp.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:18