44 #include <private/qbezier_p.h> 59 return QGLRect(0.0, 0.0, 0.0, 0.0);
76 QPointF sum = points[subPathIndex];
118 switch (elements[i]) {
141 int threshold = qMin<float>(64,
qMax(bounds.
width(), bounds.
height()) * 3.14f / (curveInverseScale * 6));
142 if (threshold < 3) threshold = 3;
143 qreal one_over_threshold_minus_1 =
qreal(1) / (threshold - 1);
144 for (
int t=0; t<threshold; ++t) {
ElementType
This enum describes the types of elements used to connect vertices in subpaths.
#define QT_END_NAMESPACE
This macro expands to.
The QPointF class defines a point in the plane using floating point precision.
QPointF pointAt(qreal t) const
const QPainterPath::ElementType * elements() const
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
qreal x() const
Returns the x-coordinate of this point.
static QBezier fromPoints(const QPointF &p1, const QPointF &p2, const QPointF &p3, const QPointF &p4)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
QGLRect boundingRect() const
qreal height() const
Returns the height of the rectangle.
qreal width() const
Returns the width of the rectangle.
void addPath(const QVectorPath &path, GLfloat curveInverseScale, bool outline=true)
void lineToArray(const GLfloat x, const GLfloat y)
void addCentroid(const QVectorPath &path, int subPathIndex)
const qreal * points() const
qreal y() const
Returns the y-coordinate of this point.
static const QTextHtmlElement elements[Html_NumElements]
QDataBuffer< QGLPoint > vertexArray
QDataBuffer< int > vertexArrayStops
void addClosingLine(int index)