444 #ifdef QPP_STROKE_DEBUG 445 printf(
" -----> joinPoints: around=(%.0f, %.0f), next_p1=(%.0f, %.f) next_p2=(%.0f, %.f)\n",
448 nextLine.
x1(), nextLine.
y1(), nextLine.
x2(), nextLine.
y2());
452 #if !defined (QFIXED_26_6) && !defined (Q_FIXED_32_32) 467 QLineF shortCut(prevLine.p2(), nextLine.
p1());
488 QLineF shortCut(prevLine.p2(), nextLine.
p1());
499 l1.setLength(appliedMiterLimit);
500 l1.translate(prevLine.dx(), prevLine.dy());
503 l2.setLength(appliedMiterLimit);
504 l2.translate(-l2.dx(), -l2.dy());
518 l1.translate(l1.dx(), l1.dy());
530 QLineF shortCut(prevLine.p2(), nextLine.
p1());
540 qreal sweepLength =
qAbs(l2_on_x - l1_on_x);
550 l1_on_x + 90, -sweepLength,
551 curves, &point_count);
557 for (
int i=0; i<point_count; i+=3) {
581 prevLine.x2(), prevLine.y2());
593 l2 =
QLineF(l2.x1(), l2.y1(), l2.x1()-l2.dx(), l2.y1()-l2.dy());
605 QLineF shortCut(prevLine.p2(), nextLine.
p1());
622 Q_ASSERT(!
"QStroker::joinPoints(), bad join style...");
#define qt_real_to_fixed(real)
void emitCubicTo(qfixed c1x, qfixed c1y, qfixed c2x, qfixed c2y, qfixed ex, qfixed ey)
qreal x2() const
Returns the x-coordinate of the line's end point.
QPointF p1() const
Returns the line's start point.
qreal y2() const
Returns the y-coordinate of the line's end point.
The QPointF class defines a point in the plane using floating point precision.
static Q_DECL_CONSTEXPR bool qFuzzyCompare(double p1, double p2)
qreal dy() const
Returns the vertical component of the line's vector.
Q_DECL_CONSTEXPR T qAbs(const T &t)
qreal angleTo(const QLineF &l) const
Returns the angle (in positive degrees) from this line to the given line, taking the direction of the...
qreal x() const
Returns the x-coordinate of this point.
The QLineF class provides a two-dimensional vector using floating point precision.
void translate(const QPointF &p)
Translates this line by the given offset.
The QRectF class defines a rectangle in the plane using floating point precision. ...
static qreal adapted_angle_on_x(const QLineF &line)
IntersectType
Describes the intersection between two lines.
qreal y1() const
Returns the y-coordinate of the line's start point.
void setLength(qreal len)
Sets the length of the line to the given length.
qreal dx() const
Returns the horizontal component of the line's vector.
#define qt_fixed_to_real(fixed)
qreal angle(const QPointF &p1, const QPointF &p2)
QPointF p2() const
Returns the line's end point.
qreal y() const
Returns the y-coordinate of this point.
QPointF qt_curves_for_arc(const QRectF &rect, qreal startAngle, qreal sweepLength, QPointF *curves, int *point_count)
Creates a number of curves for a given arc definition.
qreal x1() const
Returns the x-coordinate of the line's start point.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
void emitLineTo(qfixed x, qfixed y)