Qt 4.8
|
#include <qstroker_p.h>
Classes | |
struct | Element |
Public Functions | |
virtual void | begin (void *customData) |
Prepares the stroker. More... | |
QRectF | clipRect () const |
void | cubicTo (qfixed x1, qfixed y1, qfixed x2, qfixed y2, qfixed ex, qfixed ey) |
qfixed | curveThreshold () const |
virtual void | end () |
Finishes the stroke. More... | |
void | lineTo (qfixed x, qfixed y) |
void | moveTo (qfixed x, qfixed y) |
QStrokerOps () | |
void | setClipRect (const QRectF &clip) |
void | setCubicToHook (qStrokerCubicToHook cubicToHook) |
void | setCurveThreshold (qfixed threshold) |
void | setCurveThresholdFromTransform (const QTransform &transform) |
void | setLineToHook (qStrokerLineToHook lineToHook) |
void | setMoveToHook (qStrokerMoveToHook moveToHook) |
void | strokeEllipse (const QRectF &ellipse, void *data, const QTransform &matrix) |
Convenience function for stroking an ellipse with bounding rect rect. More... | |
void | strokePath (const QPainterPath &path, void *data, const QTransform &matrix) |
Convenience function that decomposes path into begin(), moveTo(), lineTo(), curevTo() and end() calls. More... | |
void | strokePolygon (const QPointF *points, int pointCount, bool implicit_close, void *data, const QTransform &matrix) |
Convenience function for stroking a polygon of the pointCount first points in points. More... | |
virtual | ~QStrokerOps () |
Protected Functions | |
void | emitCubicTo (qfixed c1x, qfixed c1y, qfixed c2x, qfixed c2y, qfixed ex, qfixed ey) |
void | emitLineTo (qfixed x, qfixed y) |
void | emitMoveTo (qfixed x, qfixed y) |
virtual void | processCurrentSubpath ()=0 |
Protected Variables | |
QRectF | m_clip_rect |
qStrokerCubicToHook | m_cubicTo |
qfixed | m_curveThreshold |
void * | m_customData |
qfixed | m_dashThreshold |
QDataBuffer< Element > | m_elements |
qStrokerLineToHook | m_lineTo |
qStrokerMoveToHook | m_moveTo |
Definition at line 130 of file qstroker_p.h.
QStrokerOps::QStrokerOps | ( | ) |
Definition at line 190 of file qstroker.cpp.
|
virtual |
Definition at line 201 of file qstroker.cpp.
|
virtual |
Prepares the stroker.
Call this function once before starting a stroke by calling moveTo, lineTo or cubicTo.
The customData is passed back through that callback functions and can be used by the user to for instance maintain state information.
Reimplemented in QDashStroker.
Definition at line 213 of file qstroker.cpp.
Referenced by QDashStroker::begin(), strokeEllipse(), strokePath(), and strokePolygon().
|
inline |
|
inline |
Definition at line 323 of file qstroker_p.h.
Referenced by strokeEllipse(), and strokePath().
|
inline |
|
inlineprotected |
Definition at line 296 of file qstroker_p.h.
Referenced by QStroker::emitLineTo(), and QDashStroker::processCurrentSubpath().
Definition at line 290 of file qstroker_p.h.
Referenced by QStroker::emitMoveTo(), and QDashStroker::processCurrentSubpath().
|
virtual |
Finishes the stroke.
Call this function once when an entire primitive has been stroked.
Reimplemented in QDashStroker.
Definition at line 224 of file qstroker.cpp.
Referenced by QDashStroker::end(), qt_curves_for_arc(), strokeEllipse(), strokePath(), and strokePolygon().
Definition at line 317 of file qstroker_p.h.
Referenced by QDashedStrokeProcessor::process(), strokePath(), and strokePolygon().
Definition at line 308 of file qstroker_p.h.
Referenced by QDashedStrokeProcessor::process(), strokeEllipse(), strokePath(), and strokePolygon().
|
protectedpure virtual |
Implemented in QDashStroker, and QStroker.
Referenced by end().
|
inline |
Definition at line 165 of file qstroker_p.h.
Referenced by QPainterPathStroker::createStroke(), QX11PaintEngine::drawPath(), and QDashedStrokeProcessor::process().
|
inline |
Definition at line 150 of file qstroker_p.h.
Referenced by QDashedStrokeProcessor::QDashedStrokeProcessor(), QDashStroker::QDashStroker(), QPainterPathStrokerPrivate::QPainterPathStrokerPrivate(), and QPdf::Stroker::Stroker().
|
inline |
Definition at line 174 of file qstroker_p.h.
|
inline |
Definition at line 167 of file qstroker_p.h.
Referenced by strokeEllipse(), strokePath(), and strokePolygon().
|
inline |
Definition at line 149 of file qstroker_p.h.
Referenced by QDashedStrokeProcessor::QDashedStrokeProcessor(), QDashStroker::QDashStroker(), QPainterPathStrokerPrivate::QPainterPathStrokerPrivate(), and QPdf::Stroker::Stroker().
|
inline |
Definition at line 148 of file qstroker_p.h.
Referenced by QDashedStrokeProcessor::QDashedStrokeProcessor(), QDashStroker::QDashStroker(), QPainterPathStrokerPrivate::QPainterPathStrokerPrivate(), and QPdf::Stroker::Stroker().
void QStrokerOps::strokeEllipse | ( | const QRectF & | rect, |
void * | data, | ||
const QTransform & | matrix | ||
) |
Convenience function for stroking an ellipse with bounding rect rect.
The matrix is used to transform the coordinates before they enter the stroker.
Definition at line 346 of file qstroker.cpp.
void QStrokerOps::strokePath | ( | const QPainterPath & | path, |
void * | customData, | ||
const QTransform & | matrix | ||
) |
Convenience function that decomposes path into begin(), moveTo(), lineTo(), curevTo() and end() calls.
The customData parameter is used in the callback functions
The matrix is used to transform the points before input to the stroker.
Definition at line 242 of file qstroker.cpp.
Referenced by QPainterPathStroker::createStroke(), and QPdf::Stroker::strokePath().
void QStrokerOps::strokePolygon | ( | const QPointF * | points, |
int | pointCount, | ||
bool | implicit_close, | ||
void * | data, | ||
const QTransform & | matrix | ||
) |
Convenience function for stroking a polygon of the pointCount first points in points.
If implicit_close is set to true a line is implictly drawn between the first and last point in the polygon. Typically true for polygons and false for polylines.
The matrix is used to transform the points before they enter the stroker.
Definition at line 313 of file qstroker.cpp.
|
protected |
Definition at line 185 of file qstroker_p.h.
Referenced by QDashStroker::processCurrentSubpath().
|
protected |
Definition at line 192 of file qstroker_p.h.
|
protected |
Definition at line 186 of file qstroker_p.h.
|
protected |
Definition at line 189 of file qstroker_p.h.
Referenced by begin(), end(), and QDashStroker::processCurrentSubpath().
|
protected |
Definition at line 187 of file qstroker_p.h.
Referenced by QDashStroker::processCurrentSubpath().
|
protected |
Definition at line 183 of file qstroker_p.h.
Referenced by begin(), end(), QStroker::processCurrentSubpath(), and QDashStroker::processCurrentSubpath().
|
protected |
Definition at line 191 of file qstroker_p.h.
|
protected |
Definition at line 190 of file qstroker_p.h.