QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Functions
QwtClipper Namespace Reference

Namespace for clipping algorithms . More...

Functions

QWT_EXPORT void clipPolygon (const QRect &, QPolygon &, bool closePolygon=false)
 Sutherland-Hodgman polygon clipping algorithm (integer coordinates)
 
QWT_EXPORT void clipPolygon (const QRectF &, QPolygon &, bool closePolygon=false)
 Sutherland-Hodgman polygon clipping algorithm.
 
QWT_EXPORT void clipPolygonF (const QRectF &, QPolygonF &, bool closePolygon=false)
 Sutherland-Hodgman polygon clipping algorithm (float coordinates)
 
QWT_EXPORT QPolygon clippedPolygon (const QRect &, const QPolygon &, bool closePolygon=false)
 Return clipped polygon (integer rectangle)
 
QWT_EXPORT QPolygon clippedPolygon (const QRectF &, const QPolygon &, bool closePolygon=false)
 Return clipped polygon (float rectangle)
 
QWT_EXPORT QPolygonF clippedPolygonF (const QRectF &, const QPolygonF &, bool closePolygon=false)
 Return clipped float polygon.
 
QWT_EXPORT QVector< QwtIntervalclipCircle (const QRectF &, const QPointF &, double radius)
 Clip circle and return arcs as intervals.
 

Detailed Description

Namespace for clipping algorithms .

Function Documentation

◆ clipCircle()

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

Clip circle and return arcs as intervals.

◆ clippedPolygon() [1/2]

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

Return clipped polygon (integer rectangle)

◆ clippedPolygon() [2/2]

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

Return clipped polygon (float rectangle)

◆ clippedPolygonF()

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

Return clipped float polygon.

◆ clipPolygon() [1/2]

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

Sutherland-Hodgman polygon clipping algorithm (integer coordinates)

◆ clipPolygon() [2/2]

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

Sutherland-Hodgman polygon clipping algorithm.

◆ clipPolygonF()

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

Sutherland-Hodgman polygon clipping algorithm (float coordinates)