Changeset 846 for trunk/src/gui/painting/qbezier_p.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/painting/qbezier_p.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 60 60 #include "QtCore/qlist.h" 61 61 #include "QtCore/qpair.h" 62 #include "QtGui/qtransform.h" 62 63 63 64 QT_BEGIN_NAMESPACE … … 79 80 inline QPointF secondDerivedAt(qreal t) const; 80 81 81 QPolygonF toPolygon() const; 82 void addToPolygon(QPolygonF *p) const; 83 void addToPolygonIterative(QPolygonF *p) const; 84 void addToPolygonMixed(QPolygonF *p) const; 82 QPolygonF toPolygon(qreal bezier_flattening_threshold = 0.5) const; 83 void addToPolygon(QPolygonF *p, qreal bezier_flattening_threshold = 0.5) const; 84 85 85 QRectF bounds() const; 86 86 qreal length(qreal error = 0.01) const; … … 97 97 QPointF pt4() const { return QPointF(x4, y4); } 98 98 99 QBezier mapBy(const QTransform &transform) const; 100 99 101 inline QPointF midPoint() const; 100 102 inline QLineF midTangent() const; … … 105 107 inline void parameterSplitLeft(qreal t, QBezier *left); 106 108 inline void split(QBezier *firstHalf, QBezier *secondHalf) const; 109 107 110 int shifted(QBezier *curveSegments, int maxSegmets, 108 111 qreal offset, float threshold) const; 109 112 110 QVector< QList<QBezier> > splitAtIntersections(QBezier &a);111 112 113 QBezier bezierOnInterval(qreal t0, qreal t1) const; 113 114 static QVector< QPair<qreal, qreal> > findIntersections(const QBezier &a, 115 const QBezier &b); 116 117 static bool findIntersections(const QBezier &a, const QBezier &b, 118 QVector<QPair<qreal, qreal> > *t); 114 QBezier getSubRange(qreal t0, qreal t1) const; 119 115 120 116 qreal x1, y1, x2, y2, x3, y3, x4, y4;
Note:
See TracChangeset
for help on using the changeset viewer.