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
QTessellator Class Referenceabstract

#include <qtessellator_p.h>

+ Collaboration diagram for QTessellator:

Classes

struct  Trapezoid
 
struct  Vertex
 

Public Member Functions

 QTessellator ()
 
virtual ~QTessellator ()
 
QRectF tessellate (const QPointF *points, int nPoints)
 
void tessellateConvex (const QPointF *points, int nPoints)
 
void tessellateRect (const QPointF &a, const QPointF &b, qreal width)
 
void setWinding (bool w)
 
virtual void addTrap (const Trapezoid &trap)=0
 

Friends

class QTessellatorPrivate
 

Detailed Description

Definition at line 21 of file qtessellator_p.h.

Constructor & Destructor Documentation

◆ QTessellator()

QTessellator::QTessellator ( )

Definition at line 1166 of file qtessellator.cpp.

References QTessellatorPrivate::QTessellatorPrivate(), and d.

+ Here is the call graph for this function:

◆ ~QTessellator()

QTessellator::~QTessellator ( )
virtual

Definition at line 1171 of file qtessellator.cpp.

References d.

Member Function Documentation

◆ addTrap()

virtual void QTessellator::addTrap ( const Trapezoid & trap)
pure virtual

◆ setWinding()

void QTessellator::setWinding ( bool w)

Definition at line 1176 of file qtessellator.cpp.

References d.

◆ tessellate()

QRectF QTessellator::tessellate ( const QPointF * points,
int nPoints )

Definition at line 1182 of file qtessellator.cpp.

References d, i, Q27Dot5ToDouble, Q_ASSERT, QDEBUG, and qMin().

+ Here is the call graph for this function:

◆ tessellateConvex()

void QTessellator::tessellateConvex ( const QPointF * points,
int nPoints )

Definition at line 1258 of file qtessellator.cpp.

References d, dir, FloatToQ27Dot5, i, Q_ASSERT, qMax(), qMin(), qSwap(), QTessellator::Trapezoid::top, QTessellator::Vertex::x, and QTessellatorPrivate::y.

+ Here is the call graph for this function:

◆ tessellateRect()

void QTessellator::tessellateRect ( const QPointF & a,
const QPointF & b,
qreal width )

Definition at line 1353 of file qtessellator.cpp.

References FloatToQ27Dot5, perp(), qFuzzyIsNull(), qSqrt(), qSwap(), QTessellator::Vertex::x, and QTessellator::Vertex::y.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ QTessellatorPrivate

friend class QTessellatorPrivate
friend

Definition at line 47 of file qtessellator_p.h.


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