![]() |
Qt 6.x
The Qt SDK
|
#include <qstroker_p.h>
Inheritance diagram for QStroker:
Collaboration diagram for QStroker:Public Types | |
| enum | LineJoinMode { FlatJoin , SquareJoin , MiterJoin , RoundJoin , RoundCap , SvgMiterJoin } |
Protected Member Functions | |
| void | processCurrentSubpath () override |
| This function is called to stroke the currently built up subpath. | |
Protected Member Functions inherited from QStrokerOps | |
| void | emitMoveTo (qfixed x, qfixed y) |
| void | emitLineTo (qfixed x, qfixed y) |
| void | emitCubicTo (qfixed c1x, qfixed c1y, qfixed c2x, qfixed c2y, qfixed ex, qfixed ey) |
| virtual void | processCurrentSubpath ()=0 |
Static Protected Member Functions | |
| static Qt::PenCapStyle | capForJoinMode (LineJoinMode mode) |
| static LineJoinMode | joinModeForCap (Qt::PenCapStyle) |
| static Qt::PenJoinStyle | joinForJoinMode (LineJoinMode mode) |
| static LineJoinMode | joinModeForJoin (Qt::PenJoinStyle joinStyle) |
Protected Attributes | |
| qfixed | m_strokeWidth |
| qfixed | m_miterLimit |
| LineJoinMode | m_capStyle |
| LineJoinMode | m_joinStyle |
| qfixed | m_back1X |
| qfixed | m_back1Y |
| qfixed | m_back2X |
| qfixed | m_back2Y |
| bool | m_forceOpen |
Protected Attributes inherited from QStrokerOps | |
| QDataBuffer< Element > | m_elements |
| QRectF | m_clip_rect |
| qfixed | m_curveThreshold |
| qfixed | m_dashThreshold |
| void * | m_customData |
| qStrokerMoveToHook | m_moveTo |
| qStrokerLineToHook | m_lineTo |
| qStrokerCubicToHook | m_cubicTo |
Definition at line 160 of file qstroker_p.h.
| Enumerator | |
|---|---|
| FlatJoin | |
| SquareJoin | |
| MiterJoin | |
| RoundJoin | |
| RoundCap | |
| SvgMiterJoin | |
Definition at line 164 of file qstroker_p.h.
| QStroker::QStroker | ( | ) |
Definition at line 330 of file qstroker.cpp.
References m_miterLimit, m_strokeWidth, and qt_real_to_fixed.
| QStroker::~QStroker | ( | ) |
Definition at line 340 of file qstroker.cpp.
|
staticprotected |
Definition at line 344 of file qstroker.cpp.
References Qt::FlatCap, FlatJoin, Qt::RoundCap, Qt::SquareCap, and SquareJoin.
|
inline |
Definition at line 184 of file qstroker_p.h.
|
inline |
Definition at line 185 of file qstroker_p.h.
Referenced by qt_stroke_side().
Here is the caller graph for this function:
|
inline |
Definition at line 329 of file qstroker_p.h.
References QStrokerOps::emitCubicTo(), m_back1X, m_back1Y, m_back2X, and m_back2Y.
Referenced by joinPoints(), and qt_stroke_side().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 320 of file qstroker_p.h.
References QStrokerOps::emitLineTo(), m_back1X, m_back1Y, m_back2X, and m_back2Y.
Referenced by joinPoints(), and qt_stroke_side().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 311 of file qstroker_p.h.
References QStrokerOps::emitMoveTo(), m_back1X, m_back1Y, m_back2X, and m_back2Y.
Referenced by qt_stroke_side().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 195 of file qstroker_p.h.
Referenced by qt_stroke_side().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 358 of file qstroker.cpp.
References Qt::BevelJoin, FlatJoin, Qt::MiterJoin, MiterJoin, Qt::RoundJoin, Qt::SvgMiterJoin, and SvgMiterJoin.
|
staticprotected |
Definition at line 351 of file qstroker.cpp.
References Qt::FlatCap, FlatJoin, RoundCap, Qt::SquareCap, and SquareJoin.
|
staticprotected |
Definition at line 366 of file qstroker.cpp.
References Qt::BevelJoin, FlatJoin, joinStyle(), Qt::MiterJoin, MiterJoin, RoundJoin, Qt::SvgMiterJoin, and SvgMiterJoin.
Here is the call graph for this function:| void QStroker::joinPoints | ( | qfixed | focal_x, |
| qfixed | focal_y, | ||
| const QLineF & | nextLine, | ||
| LineJoinMode | join | ||
| ) |
Definition at line 401 of file qstroker.cpp.
References adapted_angle_on_x(), QLineF::angleTo(), QLineF::BoundedIntersection, QPointF::dotProduct(), QLineF::dx(), QLineF::dy(), emitCubicTo(), emitLineTo(), FlatJoin, i, QLineF::intersects(), QLineF::length(), m_back1X, m_back1Y, m_back2X, m_back2Y, m_miterLimit, m_strokeWidth, MiterJoin, QLineF::NoIntersection, QLineF::p1(), QLineF::p2(), Q_ASSERT, Q_UNUSED, qAbs(), qfixed, qFuzzyCompare(), qt_curves_for_arc(), qt_fixed_to_real, QT_PATH_KAPPA, qt_real_to_fixed, RoundCap, RoundJoin, QLineF::setLength(), SquareJoin, SvgMiterJoin, QLineF::translate(), QPointF::x(), QLineF::x1(), QLineF::x2(), QPointF::y(), QLineF::y1(), and QLineF::y2().
Referenced by processCurrentSubpath(), and qt_stroke_side().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 188 of file qstroker_p.h.
Referenced by joinModeForJoin().
Here is the caller graph for this function:
|
inline |
Definition at line 189 of file qstroker_p.h.
Referenced by qt_stroke_side().
Here is the caller graph for this function:
|
inline |
Definition at line 192 of file qstroker_p.h.
Referenced by QDashStroker::processCurrentSubpath().
Here is the caller graph for this function:
|
overrideprotectedvirtual |
This function is called to stroke the currently built up subpath.
The subpath is cleared when the function completes.
Implements QStrokerOps.
Definition at line 379 of file qstroker.cpp.
References QLineF::isNull(), joinPoints(), m_capStyle, QStrokerOps::m_elements, QPainterPath::MoveToElement, Q_ASSERT, and qt_stroke_side().
Here is the call graph for this function:
|
inline |
Definition at line 183 of file qstroker_p.h.
|
inline |
Definition at line 194 of file qstroker_p.h.
References state.
|
inline |
Definition at line 187 of file qstroker_p.h.
Definition at line 191 of file qstroker_p.h.
Definition at line 176 of file qstroker_p.h.
References qBound(), qt_fixed_to_real, and qt_real_to_fixed.
Referenced by QPdf::Stroker::Stroker().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 181 of file qstroker_p.h.
Referenced by QDashStroker::processCurrentSubpath(), and qt_stroke_side().
Here is the caller graph for this function:
|
protected |
Definition at line 217 of file qstroker_p.h.
Referenced by emitCubicTo(), emitLineTo(), emitMoveTo(), and joinPoints().
|
protected |
Definition at line 218 of file qstroker_p.h.
Referenced by emitCubicTo(), emitLineTo(), emitMoveTo(), and joinPoints().
|
protected |
Definition at line 220 of file qstroker_p.h.
Referenced by emitCubicTo(), emitLineTo(), emitMoveTo(), and joinPoints().
|
protected |
Definition at line 221 of file qstroker_p.h.
Referenced by emitCubicTo(), emitLineTo(), emitMoveTo(), and joinPoints().
|
protected |
Definition at line 214 of file qstroker_p.h.
Referenced by processCurrentSubpath().
|
protected |
Definition at line 223 of file qstroker_p.h.
|
protected |
Definition at line 215 of file qstroker_p.h.
|
protected |
Definition at line 212 of file qstroker_p.h.
Referenced by QStroker(), and joinPoints().
|
protected |
Definition at line 211 of file qstroker_p.h.
Referenced by QStroker(), and joinPoints().