QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
函数
QwtClipper 命名空间参考

Namespace for clipping algorithms 更多...

函数

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

详细描述

Namespace for clipping algorithms

函数说明

◆ clipCircle()

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

Clip circle and return arcs as intervals

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π] is returned.

参数
clipRectClip rectangle
centerCenter of the circle
radiusRadius of the circle
返回
Arcs of the circle as angle intervals

◆ clippedPolygon() [1/2]

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

Return clipped polygon (integer rectangle)

参数
clipRectClip rectangle
polygonPolygon to clip
closePolygonTrue if the polygon is closed
返回
Clipped polygon

◆ clippedPolygon() [2/2]

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

Return clipped polygon (float rectangle)

参数
clipRectClip rectangle
polygonPolygon to clip
closePolygonTrue if the polygon is closed
返回
Clipped polygon

◆ clippedPolygonF()

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

Return clipped float polygon

参数
clipRectClip rectangle
polygonPolygon to clip
closePolygonTrue if the polygon is closed
返回
Clipped polygon

◆ clipPolygon() [1/2]

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

Sutherland-Hodgman polygon clipping algorithm (integer coordinates)

参数
clipRectClip rectangle
polygonPolygon to be clipped (modified in place)
closePolygonTrue if the polygon is closed

◆ clipPolygon() [2/2]

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

Sutherland-Hodgman polygon clipping algorithm

参数
clipRectClip rectangle
polygonPolygon to be clipped (modified in place)
closePolygonTrue if the polygon is closed

◆ clipPolygonF()

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

Sutherland-Hodgman polygon clipping algorithm (float coordinates)

参数
clipRectClip rectangle
polygonPolygon to be clipped (modified in place)
closePolygonTrue if the polygon is closed