931 bool hasMoveTo =
false;
944 current = lastMoveTo;
953 last = lastMoveTo = current;
970 if (threshold < 3) threshold = 3;
971 qreal one_over_threshold_minus_1 =
qreal(1) / (threshold - 1);
973 for (
int t = 1; t < threshold - 1; ++t) {
974 currentPoint = bezier.
pointAt(t * one_over_threshold_minus_1);
998 for (
int i = firstSegment; i <
m_segments.size(); ++i) {
ElementType type
the type of element
const QLineF lineAt(int index) const
QPointF p1() const
Returns the line's start point.
The QPointF class defines a point in the plane using floating point precision.
QPointF pointAt(qreal t) const
const QPainterPath::Element & elementAt(int i) const
Returns the element at the given index in the painter path.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
qreal x() const
Returns the x-coordinate of this point.
QDataBuffer< QPointF > m_points
The QLineF class provides a two-dimensional vector using floating point precision.
static QBezier fromPoints(const QPointF &p1, const QPointF &p2, const QPointF &p3, const QPointF &p4)
The QRectF class defines a rectangle in the plane using floating point precision. ...
qreal height() const
Returns the height of the rectangle.
QDataBuffer< Segment > m_segments
qreal width() const
Returns the width of the rectangle.
void qSwap(T &value1, T &value2)
static bool isLine(const QBezier &bezier)
QPointF p2() const
Returns the line's end point.
qreal y() const
Returns the y-coordinate of this point.
int elementCount() const
Returns the number of path elements in the painter path.
static bool comparePoints(const QPointF &a, const QPointF &b)