Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QRasterizer Class Reference

#include <qrasterizer_p.h>

+ Collaboration diagram for QRasterizer:

Public Member Functions

 QRasterizer ()
 
 ~QRasterizer ()
 
void setAntialiased (bool antialiased)
 
void setClipRect (const QRect &clipRect)
 
void initialize (ProcessSpans blend, void *data)
 
void rasterize (const QT_FT_Outline *outline, Qt::FillRule fillRule)
 
void rasterize (const QPainterPath &path, Qt::FillRule fillRule)
 
void rasterizeLine (const QPointF &a, const QPointF &b, qreal width, bool squareCap=false)
 

Detailed Description

Definition at line 30 of file qrasterizer_p.h.

Constructor & Destructor Documentation

◆ QRasterizer()

QRasterizer::QRasterizer ( )

Definition at line 592 of file qrasterizer.cpp.

◆ ~QRasterizer()

QRasterizer::~QRasterizer ( )

Definition at line 597 of file qrasterizer.cpp.

Member Function Documentation

◆ initialize()

void QRasterizer::initialize ( ProcessSpans blend,
void * data )

Definition at line 607 of file qrasterizer.cpp.

References QRasterizerPrivate::blend, and QRasterizerPrivate::data.

Referenced by QRasterPaintEnginePrivate::initializeRasterizer(), and QRasterPaintEnginePrivate::rasterize().

+ Here is the caller graph for this function:

◆ rasterize() [1/2]

◆ rasterize() [2/2]

void QRasterizer::rasterize ( const QT_FT_Outline * outline,
Qt::FillRule fillRule )

Definition at line 1166 of file qrasterizer.cpp.

References QScanConverter::begin(), QRasterizerPrivate::blend, QRect::bottom(), QRasterizerPrivate::clipRect, QT_FT_Outline_::contours, QRasterizerPrivate::data, QScanConverter::end(), i, j, QRect::left(), QScanConverter::mergeCurve(), QScanConverter::mergeLine(), QT_FT_Outline_::n_contours, QT_FT_Outline_::n_points, QT_FT_Outline_::points, Q_ASSERT, qMax(), qMin(), QT_FT_CURVE_TAG_CUBIC, QT_FT_Pos, QRect::right(), QRasterizerPrivate::scanConverter, QT_FT_Outline_::tags, and QRect::top().

Referenced by QRasterPaintEnginePrivate::rasterize(), and QRasterPaintEnginePrivate::rasterize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rasterizeLine()

void QRasterizer::rasterizeLine ( const QPointF & a,
const QPointF & b,
qreal width,
bool squareCap = false )

Definition at line 768 of file qrasterizer.cpp.

References QRasterizerPrivate::antialiased, QRasterizerPrivate::blend, QRect::bottom(), QRect::bottomRight(), QRasterizerPrivate::clipRect, d, QRasterizerPrivate::data, DO_SEGMENT, i, intersectPixelFP(), IntToQScFixed, QRect::isEmpty(), QRect::left(), perp(), q26Dot6Compare(), Q_ASSERT, qAbs(), qBound(), qClipLine(), qMax(), qMin(), qSafeDivide(), qSafeFloatToQScFixed(), QScFixed, QScFixedFactor, QScFixedMultiply, QScFixedToInt, qSqrt(), qSwap(), QRect::right(), QPointF::ry(), snapTo26Dot6Grid(), QRect::top(), QRect::topLeft(), QPointF::x(), and QPointF::y().

Referenced by QRasterPaintEnginePrivate::rasterizeLine_dashed().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAntialiased()

void QRasterizer::setAntialiased ( bool antialiased)

Definition at line 602 of file qrasterizer.cpp.

References QRasterizerPrivate::antialiased.

Referenced by QRasterPaintEnginePrivate::initializeRasterizer(), and QRasterPaintEnginePrivate::rasterize().

+ Here is the caller graph for this function:

◆ setClipRect()

void QRasterizer::setClipRect ( const QRect & clipRect)

Definition at line 613 of file qrasterizer.cpp.

References QRasterizerPrivate::clipRect.

Referenced by QRasterPaintEnginePrivate::initializeRasterizer(), and QRasterPaintEnginePrivate::rasterize().

+ Here is the caller graph for this function:

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