Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquadpath.cpp File Reference

(24838eb716ac888eef06afc073aba9052b01bd3d)

#include "qquadpath_p.h"
#include <private/qsgcurveprocessor_p.h>
#include <QtGui/private/qbezier_p.h>
#include <QtMath>
#include <QtCore/QLoggingCategory>
#include <QtCore/QVarLengthArray>
Include dependency graph for qquadpath.cpp:

Go to the source code of this file.

Classes

class  ElementCutter

Macros

#define QQUICKSHAPECURVERENDERER_CONVEX_CHECK_ERROR_MARGIN   (1.0f / 32.0f)

Functions

static QT_BEGIN_NAMESPACE qreal qt_scoreQuadratic (const QBezier &b, QPointF qcp)
static QPointF qt_quadraticForCubic (const QBezier &b)
static int qt_getInflectionPoints (const QBezier &orig, qreal *tpoints)
static void qt_addToQuadratics (const QBezier &b, QPolygonF *p, int maxSplits, qreal maxDiff)
static void qt_toQuadratics (const QBezier &b, QPolygonF *out, qreal errorLimit=0.01)
static float crossProduct (const QVector2D &sp, const QVector2D &p, const QVector2D &ep)
static void printElement (QDebug stream, const QQuadPath::Element &element)
QDebug operator<< (QDebug stream, const QQuadPath::Element &element)
QDebug operator<< (QDebug stream, const QQuadPath &path)

Macro Definition Documentation

◆ QQUICKSHAPECURVERENDERER_CONVEX_CHECK_ERROR_MARGIN

#define QQUICKSHAPECURVERENDERER_CONVEX_CHECK_ERROR_MARGIN   (1.0f / 32.0f)

Definition at line 483 of file qquadpath.cpp.

Function Documentation

◆ crossProduct()

float crossProduct ( const QVector2D & sp,
const QVector2D & p,
const QVector2D & ep )
static

Definition at line 283 of file qquadpath.cpp.

◆ operator<<() [1/2]

QDebug operator<< ( QDebug stream,
const QQuadPath & path )

Definition at line 971 of file qquadpath.cpp.

◆ operator<<() [2/2]

QDebug operator<< ( QDebug stream,
const QQuadPath::Element & element )

Definition at line 961 of file qquadpath.cpp.

◆ printElement()

void printElement ( QDebug stream,
const QQuadPath::Element & element )
static

Definition at line 948 of file qquadpath.cpp.

◆ qt_addToQuadratics()

void qt_addToQuadratics ( const QBezier & b,
QPolygonF * p,
int maxSplits,
qreal maxDiff )
static

Definition at line 147 of file qquadpath.cpp.

◆ qt_getInflectionPoints()

int qt_getInflectionPoints ( const QBezier & orig,
qreal * tpoints )
static

Definition at line 92 of file qquadpath.cpp.

◆ qt_quadraticForCubic()

QPointF qt_quadraticForCubic ( const QBezier & b)
static

Definition at line 71 of file qquadpath.cpp.

◆ qt_scoreQuadratic()

QT_BEGIN_NAMESPACE qreal qt_scoreQuadratic ( const QBezier & b,
QPointF qcp )
static

Definition at line 15 of file qquadpath.cpp.

◆ qt_toQuadratics()

void qt_toQuadratics ( const QBezier & b,
QPolygonF * out,
qreal errorLimit = 0.01 )
static

Definition at line 162 of file qquadpath.cpp.