Qt 4.8
|
#include <qbezier_p.h>
Public Functions | |
void | addIfClose (qreal *length, qreal error) const |
void | addToPolygon (QPolygonF *p, qreal bezier_flattening_threshold=0.5) const |
QBezier | bezierOnInterval (qreal t0, qreal t1) const |
QRectF | bounds () const |
QPointF | derivedAt (qreal t) const |
QLineF | endTangent () const |
QBezier | getSubRange (qreal t0, qreal t1) const |
qreal | length (qreal error=0.01) const |
QBezier | mapBy (const QTransform &transform) const |
QPointF | midPoint () const |
QLineF | midTangent () const |
QPointF | normalVector (qreal t) const |
void | parameterSplitLeft (qreal t, QBezier *left) |
QPointF | pointAt (qreal t) const |
QPointF | pt1 () const |
QPointF | pt2 () const |
QPointF | pt3 () const |
QPointF | pt4 () const |
QPointF | secondDerivedAt (qreal t) const |
int | shifted (QBezier *curveSegments, int maxSegmets, qreal offset, float threshold) const |
void | split (QBezier *firstHalf, QBezier *secondHalf) const |
QLineF | startTangent () const |
int | stationaryYPoints (qreal &t0, qreal &t1) const |
qreal | tAtLength (qreal len) const |
qreal | tForY (qreal t0, qreal t1, qreal y) const |
QPolygonF | toPolygon (qreal bezier_flattening_threshold=0.5) const |
Static Public Functions | |
static void | coefficients (qreal t, qreal &a, qreal &b, qreal &c, qreal &d) |
static QBezier | fromPoints (const QPointF &p1, const QPointF &p2, const QPointF &p3, const QPointF &p4) |
Public Variables | |
qreal | x1 |
qreal | x2 |
qreal | x3 |
qreal | x4 |
qreal | y1 |
qreal | y2 |
qreal | y3 |
qreal | y4 |
Definition at line 68 of file qbezier_p.h.
Definition at line 538 of file qbezier.cpp.
Referenced by addIfClose(), and length().
Definition at line 191 of file qbezier.cpp.
Referenced by toPolygon().
Definition at line 687 of file qbezier.cpp.
Referenced by qt_curves_for_arc().
QRectF QBezier::bounds | ( | ) | const |
Definition at line 223 of file qbezier.cpp.
Referenced by QGL2PEXVertexArray::addPath(), QPathSegments::addPath(), QTriangulatingStroker::cubicTo(), QDashedStrokeProcessor::process(), qt_isect_curve_horizontal(), qt_isect_curve_vertical(), qt_painterpath_isect_curve(), and shift().
Definition at line 198 of file qbezier_p.h.
|
inline |
Definition at line 142 of file qbezier_p.h.
|
static |
Definition at line 71 of file qbezier.cpp.
Referenced by QGL2PEXVertexArray::addPath(), QPathSegments::addPath(), bezierAtT(), QPainterPath::computeBoundingRect(), QPainterPath::contains(), QTriangulatingStroker::cubicTo(), cubicTo_clipped(), QOpenGLPaintEnginePrivate::curveToStencil(), 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(), QOpenGLPaintEnginePrivate::strokePathFastPen(), and QPainterPath::toSubpathPolygons().
Definition at line 113 of file qbezier.cpp.
Definition at line 529 of file qbezier.cpp.
Referenced by bezierAtT(), QPainterPath::length(), nextBezier(), QPainterPath::percentAtLength(), and tAtLength().
QBezier QBezier::mapBy | ( | const QTransform & | transform | ) | const |
Definition at line 108 of file qbezier.cpp.
|
inline |
Definition at line 119 of file qbezier_p.h.
|
inline |
Definition at line 124 of file qbezier_p.h.
Definition at line 248 of file qbezier_p.h.
Referenced by bezierOnInterval(), getSubRange(), and tAtLength().
Definition at line 163 of file qbezier_p.h.
Referenced by QGL2PEXVertexArray::addPath(), QPathSegments::addPath(), QDeclarativePath::createPointCache(), QTriangulatingStroker::cubicTo(), good_offset(), QPainterPath::pointAtPercent(), QDashedStrokeProcessor::process(), and tForY().
|
inline |
Definition at line 94 of file qbezier_p.h.
Referenced by isLine(), mapBy(), qt_painterpath_isect_curve(), and qt_stroke_side().
|
inline |
Definition at line 95 of file qbezier_p.h.
Referenced by isLine(), mapBy(), qt_curves_for_arc(), and qt_stroke_side().
|
inline |
Definition at line 96 of file qbezier_p.h.
Referenced by isLine(), mapBy(), qt_curves_for_arc(), and qt_stroke_side().
|
inline |
Definition at line 97 of file qbezier_p.h.
Referenced by isLine(), mapBy(), qt_curves_for_arc(), qt_painterpath_isect_curve(), and qt_stroke_side().
Definition at line 213 of file qbezier_p.h.
int QBezier::shifted | ( | QBezier * | curveSegments, |
int | maxSegmets, | ||
qreal | offset, | ||
float | threshold | ||
) | const |
Definition at line 433 of file qbezier.cpp.
Referenced by qt_stroke_side().
Definition at line 224 of file qbezier_p.h.
Referenced by addIfClose(), addToPolygon(), qt_isect_curve_horizontal(), qt_isect_curve_vertical(), qt_painterpath_isect_curve(), shifted(), and QOpenGLPaintEnginePrivate::strokePathFastPen().
|
inline |
Definition at line 132 of file qbezier_p.h.
Referenced by qt_stroke_side().
Definition at line 605 of file qbezier.cpp.
Definition at line 654 of file qbezier.cpp.
Referenced by QPainterPath::percentAtLength().
Definition at line 563 of file qbezier.cpp.
Definition at line 89 of file qbezier.cpp.
Referenced by cubicTo_clipped(), and QTriangulator< T >::initialize().
qreal QBezier::x1 |
Definition at line 116 of file qbezier_p.h.
Referenced by addCircle(), addIfClose(), addToPolygon(), QPainterPath::angleAtPercent(), bounds(), fromPoints(), parameterSplitLeft(), qt_painterpath_bezier_extrema(), shift(), shifted(), QPainterPath::slopeAtPercent(), split(), splitBezierAt(), QOpenGLPaintEnginePrivate::strokePathFastPen(), and toPolygon().
qreal QBezier::x2 |
Definition at line 116 of file qbezier_p.h.
Referenced by addCircle(), addIfClose(), addToPolygon(), QPainterPath::angleAtPercent(), bounds(), fromPoints(), parameterSplitLeft(), shift(), shifted(), QPainterPath::slopeAtPercent(), split(), splitBezierAt(), and QOpenGLPaintEnginePrivate::strokePathFastPen().
qreal QBezier::x3 |
Definition at line 116 of file qbezier_p.h.
Referenced by addCircle(), addIfClose(), addToPolygon(), QPainterPath::angleAtPercent(), bounds(), fromPoints(), parameterSplitLeft(), shift(), shifted(), QPainterPath::slopeAtPercent(), split(), splitBezierAt(), and QOpenGLPaintEnginePrivate::strokePathFastPen().
qreal QBezier::x4 |
Definition at line 116 of file qbezier_p.h.
Referenced by addCircle(), addIfClose(), addToPolygon(), QPainterPath::angleAtPercent(), bounds(), fromPoints(), parameterSplitLeft(), qt_painterpath_bezier_extrema(), shift(), shifted(), QPainterPath::slopeAtPercent(), split(), splitBezierAt(), and QOpenGLPaintEnginePrivate::strokePathFastPen().
qreal QBezier::y1 |
Definition at line 116 of file qbezier_p.h.
Referenced by addCircle(), addIfClose(), addToPolygon(), QPainterPath::angleAtPercent(), bounds(), fromPoints(), parameterSplitLeft(), qt_painterpath_bezier_extrema(), shift(), shifted(), QPainterPath::slopeAtPercent(), split(), splitBezierAt(), stationaryYPoints(), QOpenGLPaintEnginePrivate::strokePathFastPen(), tForY(), and toPolygon().
qreal QBezier::y2 |
Definition at line 116 of file qbezier_p.h.
Referenced by addCircle(), addIfClose(), addToPolygon(), QPainterPath::angleAtPercent(), bounds(), fromPoints(), parameterSplitLeft(), shift(), shifted(), QPainterPath::slopeAtPercent(), split(), splitBezierAt(), stationaryYPoints(), QOpenGLPaintEnginePrivate::strokePathFastPen(), and tForY().
qreal QBezier::y3 |
Definition at line 116 of file qbezier_p.h.
Referenced by addCircle(), addIfClose(), addToPolygon(), QPainterPath::angleAtPercent(), bounds(), fromPoints(), parameterSplitLeft(), shift(), shifted(), QPainterPath::slopeAtPercent(), split(), splitBezierAt(), stationaryYPoints(), QOpenGLPaintEnginePrivate::strokePathFastPen(), and tForY().
qreal QBezier::y4 |
Definition at line 116 of file qbezier_p.h.
Referenced by addCircle(), addIfClose(), addToPolygon(), QPainterPath::angleAtPercent(), bounds(), fromPoints(), parameterSplitLeft(), qt_painterpath_bezier_extrema(), shift(), shifted(), QPainterPath::slopeAtPercent(), split(), splitBezierAt(), stationaryYPoints(), QOpenGLPaintEnginePrivate::strokePathFastPen(), and tForY().