Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/painting/qbezier_p.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    6060#include "QtCore/qlist.h"
    6161#include "QtCore/qpair.h"
     62#include "QtGui/qtransform.h"
    6263
    6364QT_BEGIN_NAMESPACE
     
    7980    inline QPointF secondDerivedAt(qreal t) const;
    8081
    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
    8585    QRectF bounds() const;
    8686    qreal length(qreal error = 0.01) const;
     
    9797    QPointF pt4() const { return QPointF(x4, y4); }
    9898
     99    QBezier mapBy(const QTransform &transform) const;
     100
    99101    inline QPointF midPoint() const;
    100102    inline QLineF midTangent() const;
     
    105107    inline void parameterSplitLeft(qreal t, QBezier *left);
    106108    inline void split(QBezier *firstHalf, QBezier *secondHalf) const;
     109
    107110    int shifted(QBezier *curveSegments, int maxSegmets,
    108111                qreal offset, float threshold) const;
    109112
    110     QVector< QList<QBezier> > splitAtIntersections(QBezier &a);
    111 
    112113    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;
    119115
    120116    qreal x1, y1, x2, y2, x3, y3, x4, y4;
Note: See TracChangeset for help on using the changeset viewer.