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
qbezier.cpp File Reference

(3cc693d2565c5633382517145822bb5edc3106cd)

#include "qbezier_p.h"
#include <qdebug.h>
#include <qline.h>
#include <qmath.h>
#include <qpolygon.h>
#include <private/qnumeric_p.h>
#include <tuple>
+ Include dependency graph for qbezier.cpp:

Go to the source code of this file.

Macros

#define KAPPA   qreal(0.5522847498)
 

Enumerations

enum  ShiftResult { Ok , Discard , Split , Circle }
 

Functions

static ShiftResult good_offset (const QBezier *b1, const QBezier *b2, qreal offset, qreal threshold)
 
static QT_WARNING_DISABLE_FLOAT_COMPARE ShiftResult shift (const QBezier *orig, QBezier *shifted, qreal offset, qreal threshold)
 
static bool addCircle (const QBezier *b, qreal offset, QBezier *o)
 

Macro Definition Documentation

◆ KAPPA

#define KAPPA   qreal(0.5522847498)

Definition at line 292 of file qbezier.cpp.

Referenced by addCircle(), and QPaintEngineEx::drawRoundedRect().

Enumeration Type Documentation

◆ ShiftResult

Enumerator
Ok 
Discard 
Split 
Circle 

Definition at line 172 of file qbezier.cpp.

Function Documentation

◆ addCircle()

static bool addCircle ( const QBezier * b,
qreal offset,
QBezier * o )
static

Definition at line 295 of file qbezier.cpp.

References dist(), i, KAPPA, M_1_PI, o, qAcos(), qFuzzyIsNull(), qSqrt(), sign(), QPointF::x(), and QPointF::y().

Referenced by QBezier::shifted().

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

◆ good_offset()

static ShiftResult good_offset ( const QBezier * b1,
const QBezier * b2,
qreal offset,
qreal threshold )
static

Definition at line 179 of file qbezier.cpp.

References d, i, Ok, p1, p2, qAbs(), spacing, and Split.

Referenced by shift().

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

◆ shift()