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>.
|
#include <qbezier_p.h>
Static Public Member Functions | |
static QBezier | fromPoints (const QPointF &p1, const QPointF &p2, const QPointF &p3, const QPointF &p4) |
static void | coefficients (qreal t, qreal &a, qreal &b, qreal &c, qreal &d) |
Public Attributes | |
qreal | x1 |
qreal | y1 |
qreal | x2 |
qreal | y2 |
qreal | x3 |
qreal | y3 |
qreal | x4 |
qreal | y4 |
Definition at line 30 of file qbezier_p.h.
Definition at line 431 of file qbezier.cpp.
References error, QLineF::length(), split(), x3, x4, y3, and y4.
Referenced by length().
void QBezier::addToPolygon | ( | QDataBuffer< QPointF > & | polygon, |
qreal | bezier_flattening_threshold ) const |
Definition at line 65 of file qbezier.cpp.
Referenced by QOutlineMapper::curveTo(), toPolygon(), and QPainterPath::toSubpathPolygons().
Definition at line 578 of file qbezier.cpp.
References parameterSplitLeft(), and t0.
Referenced by operator<<().
QRectF QBezier::bounds | ( | ) | const |
Definition at line 137 of file qbezier.cpp.
References x1, x2, x3, x4, y1, y2, y3, and y4.
Referenced by QPathSegments::addPath(), QOutlineMapper::curveTo(), qt_isect_curve_horizontal(), qt_isect_curve_vertical(), qt_painterpath_isect_curve(), and shift().
Definition at line 116 of file qbezier_p.h.
References d.
Referenced by qt_find_ellipse_coords(), and tForY().
|
inline |
Definition at line 106 of file qbezier_p.h.
References QLineF::isNull(), pt1(), pt2(), pt3(), and pt4().
|
inlinestatic |
Definition at line 33 of file qbezier_p.h.
Referenced by QPathSegments::addPath(), QOpenGL2PEXVertexArray::addPath(), bezierAtT(), QPainterPath::contains(), cubicTo_clipped(), QOutlineMapper::curveTo(), QQuadPath::fromPainterPath(), QTriangulator< T >::initialize(), QPainterPath::length(), mapBy(), QSubpathFlatIterator::next(), nextBezier(), QPainterPath::percentAtLength(), QDashedStrokeProcessor::process(), qt_curves_for_arc(), qt_painterpath_check_crossing(), qt_stroke_side(), shift(), split(), and QPainterPath::toSubpathPolygons().
Definition at line 45 of file qbezier.cpp.
References parameterSplitLeft(), and qFuzzyIsNull().
Definition at line 422 of file qbezier.cpp.
References addIfClose(), and error.
QBezier QBezier::mapBy | ( | const QTransform & | transform | ) | const |
Definition at line 40 of file qbezier.cpp.
References fromPoints(), pt1(), pt2(), pt3(), and pt4().
Referenced by qt_getInflectionPoints().
|
inline |
Definition at line 83 of file qbezier_p.h.
References x3, x4, y3, and y4.
Referenced by midTangent().
|
inline |
Definition at line 88 of file qbezier_p.h.
References dir, midPoint(), pointAt(), QPointF::x(), x3, x4, QPointF::y(), y3, and y4.
Definition at line 205 of file qbezier_p.h.
References x1, x2, x3, x4, y1, y2, y3, and y4.
Referenced by bezierOnInterval(), getSubRange(), qt_addToQuadratics(), and tAtLength().
Definition at line 127 of file qbezier_p.h.
References x3, x4, y3, and y4.
Referenced by QPathSegments::addPath(), midTangent(), and tForY().
|
inline |
Definition at line 58 of file qbezier_p.h.
Referenced by endTangent(), isLine(), mapBy(), qt_getInflectionPoints(), qt_painterpath_isect_curve(), qt_stroke_side(), split(), and startTangent().
|
inline |
Definition at line 59 of file qbezier_p.h.
Referenced by endTangent(), isLine(), mapBy(), qt_getInflectionPoints(), split(), and startTangent().
|
inline |
Definition at line 60 of file qbezier_p.h.
Referenced by endTangent(), isLine(), mapBy(), split(), and startTangent().
|
inline |
Definition at line 61 of file qbezier_p.h.
Referenced by endTangent(), isLine(), mapBy(), qt_getInflectionPoints(), qt_painterpath_isect_curve(), split(), and startTangent().
int QBezier::shifted | ( | QBezier * | curveSegments, |
int | maxSegmets, | ||
qreal | offset, | ||
float | threshold ) const |
Definition at line 355 of file qbezier.cpp.
References addCircle(), Circle, Discard, o, Ok, Q_ASSERT, qFuzzyCompare(), shift(), Split, x3, x4, y3, and y4.
Referenced by qt_stroke_side().
Definition at line 188 of file qbezier_p.h.
References fromPoints(), pt1(), pt2(), pt3(), and pt4().
Referenced by addIfClose(), qt_isect_curve_horizontal(), qt_isect_curve_vertical(), and qt_painterpath_isect_curve().
|
inline |
Definition at line 96 of file qbezier_p.h.
References QLineF::isNull(), pt1(), pt2(), pt3(), and pt4().
Referenced by qt_stroke_side().
Definition at line 496 of file qbezier.cpp.
References qFuzzyIsNull(), qSqrt(), qSwap(), t0, t1, y2, y3, and y4.
Definition at line 545 of file qbezier.cpp.
References error, parameterSplitLeft(), qAbs(), and qFuzzyCompare().
Definition at line 454 of file qbezier.cpp.
References coefficients(), d, pointAt(), Q_ASSERT, qAbs(), qSwap(), t0, t1, QPointF::y(), y3, and y4.
QT_BEGIN_NAMESPACE QPolygonF QBezier::toPolygon | ( | qreal | bezier_flattening_threshold = 0.5 | ) | const |
Definition at line 21 of file qbezier.cpp.
References addToPolygon().
Referenced by QTriangulator< T >::initialize().
qreal QBezier::x1 |
Definition at line 80 of file qbezier_p.h.
Referenced by bounds(), parameterSplitLeft(), and shift().
qreal QBezier::x2 |
Definition at line 80 of file qbezier_p.h.
Referenced by bounds(), parameterSplitLeft(), and shift().
qreal QBezier::x3 |
Definition at line 80 of file qbezier_p.h.
Referenced by addIfClose(), bounds(), derivedAt(), midPoint(), midTangent(), normalVector(), parameterSplitLeft(), pointAt(), secondDerivedAt(), shift(), and shifted().
qreal QBezier::x4 |
Definition at line 80 of file qbezier_p.h.
Referenced by addIfClose(), bounds(), derivedAt(), midPoint(), midTangent(), normalVector(), parameterSplitLeft(), pointAt(), secondDerivedAt(), shift(), and shifted().
qreal QBezier::y1 |
Definition at line 80 of file qbezier_p.h.
Referenced by bounds(), parameterSplitLeft(), and shift().
qreal QBezier::y2 |
Definition at line 80 of file qbezier_p.h.
Referenced by bounds(), parameterSplitLeft(), shift(), and stationaryYPoints().
qreal QBezier::y3 |
Definition at line 80 of file qbezier_p.h.
Referenced by addIfClose(), bounds(), derivedAt(), midPoint(), midTangent(), normalVector(), parameterSplitLeft(), pointAt(), secondDerivedAt(), shift(), shifted(), stationaryYPoints(), and tForY().
qreal QBezier::y4 |
Definition at line 80 of file qbezier_p.h.
Referenced by addIfClose(), addToPolygon(), addToPolygon(), bounds(), derivedAt(), midPoint(), midTangent(), normalVector(), parameterSplitLeft(), pointAt(), secondDerivedAt(), shift(), shifted(), stationaryYPoints(), and tForY().