Qt 6.x
The Qt SDK
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

Referenced by QTessellatorPrivate::emitEdges().

+ Here is the caller graph for this function:

◆ 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 QTessellator::Trapezoid::bottom, QTessellator::Trapezoid::bottomLeft, QTessellator::Trapezoid::bottomRight, d, dir, FloatToQ27Dot5, i, Q_ASSERT, qMax(), qMin(), qSwap(), QTessellator::Trapezoid::top, QTessellator::Trapezoid::topLeft, QTessellator::Trapezoid::topRight, QTessellator::Vertex::x, QTessellatorPrivate::y, and QTessellator::Vertex::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(), QPointF::x(), QTessellator::Vertex::x, QPointF::y(), 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: