QtBase  v6.3.1
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
QBezier Class Reference

#include <qbezier_p.h>

Public Member Functions

QPointF pointAt (qreal t) const
 
QPointF normalVector (qreal t) const
 
QPointF derivedAt (qreal t) const
 
QPointF secondDerivedAt (qreal t) const
 
QPolygonF toPolygon (qreal bezier_flattening_threshold=0.5) const
 
void addToPolygon (QPolygonF *p, qreal bezier_flattening_threshold=0.5) const
 
void addToPolygon (QDataBuffer< QPointF > &polygon, qreal bezier_flattening_threshold) const
 
QRectF bounds () const
 
qreal length (qreal error=0.01) const
 
void addIfClose (qreal *length, qreal error) const
 
qreal tAtLength (qreal len) const
 
int stationaryYPoints (qreal &t0, qreal &t1) const
 
qreal tForY (qreal t0, qreal t1, qreal y) const
 
QPointF pt1 () const
 
QPointF pt2 () const
 
QPointF pt3 () const
 
QPointF pt4 () const
 
QBezier mapBy (const QTransform &transform) const
 
QPointF midPoint () const
 
QLineF midTangent () const
 
QLineF startTangent () const
 
QLineF endTangent () const
 
void parameterSplitLeft (qreal t, QBezier *left)
 
std::pair< QBezier, QBeziersplit () const
 
int shifted (QBezier *curveSegments, int maxSegmets, qreal offset, float threshold) const
 
QBezier bezierOnInterval (qreal t0, qreal t1) const
 
QBezier getSubRange (qreal t0, qreal t1) const
 

Static Public Member Functions

static QBezier fromPoints (const QPointF &p1, const QPointF &p2, const QPointF &p3, const QPointF &p4)
 
static void coefficients (qreal t, qreal &a, qreal &b, qreal &c, qreal &d)
 

Public Attributes

qreal x1
 
qreal y1
 
qreal x2
 
qreal y2
 
qreal x3
 
qreal y3
 
qreal x4
 
qreal y4
 

Detailed Description

Definition at line 67 of file qbezier_p.h.

Member Function Documentation

◆ addIfClose()

void QBezier::addIfClose ( qreal length,
qreal  error 
) const

Definition at line 467 of file qbezier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addToPolygon() [1/2]

void QBezier::addToPolygon ( QDataBuffer< QPointF > &  polygon,
qreal  bezier_flattening_threshold 
) const

Definition at line 137 of file qbezier.cpp.

Here is the call graph for this function:

◆ addToPolygon() [2/2]

void QBezier::addToPolygon ( QPolygonF p,
qreal  bezier_flattening_threshold = 0.5 
) const

Definition at line 101 of file qbezier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bezierOnInterval()

QBezier QBezier::bezierOnInterval ( qreal  t0,
qreal  t1 
) const

Definition at line 614 of file qbezier.cpp.

Here is the call graph for this function:

◆ bounds()

QRectF QBezier::bounds ( ) const

Definition at line 173 of file qbezier.cpp.

Here is the caller graph for this function:

◆ coefficients()

void QBezier::coefficients ( qreal  t,
qreal a,
qreal b,
qreal c,
qreal d 
)
inlinestatic

Definition at line 153 of file qbezier_p.h.

Here is the caller graph for this function:

◆ derivedAt()

QPointF QBezier::derivedAt ( qreal  t) const
inline

Definition at line 199 of file qbezier_p.h.

◆ endTangent()

QLineF QBezier::endTangent ( ) const
inline

Definition at line 143 of file qbezier_p.h.

Here is the call graph for this function:

◆ fromPoints()

static QBezier QBezier::fromPoints ( const QPointF p1,
const QPointF p2,
const QPointF p3,
const QPointF p4 
)
inlinestatic

Definition at line 70 of file qbezier_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSubRange()

QBezier QBezier::getSubRange ( qreal  t0,
qreal  t1 
) const

Definition at line 81 of file qbezier.cpp.

Here is the call graph for this function:

◆ length()

qreal QBezier::length ( qreal  error = 0.01) const

Definition at line 458 of file qbezier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mapBy()

QBezier QBezier::mapBy ( const QTransform transform) const

Definition at line 76 of file qbezier.cpp.

Here is the call graph for this function:

◆ midPoint()

QPointF QBezier::midPoint ( ) const
inline

Definition at line 120 of file qbezier_p.h.

Here is the caller graph for this function:

◆ midTangent()

QLineF QBezier::midTangent ( ) const
inline

Definition at line 125 of file qbezier_p.h.

Here is the call graph for this function:

◆ normalVector()

QPointF QBezier::normalVector ( qreal  t) const
inline

Definition at line 189 of file qbezier_p.h.

◆ parameterSplitLeft()

void QBezier::parameterSplitLeft ( qreal  t,
QBezier left 
)
inline

Definition at line 242 of file qbezier_p.h.

Here is the caller graph for this function:

◆ pointAt()

QPointF QBezier::pointAt ( qreal  t) const
inline

Definition at line 164 of file qbezier_p.h.

Here is the caller graph for this function:

◆ pt1()

QPointF QBezier::pt1 ( ) const
inline

Definition at line 95 of file qbezier_p.h.

Here is the caller graph for this function:

◆ pt2()

QPointF QBezier::pt2 ( ) const
inline

Definition at line 96 of file qbezier_p.h.

Here is the caller graph for this function:

◆ pt3()

QPointF QBezier::pt3 ( ) const
inline

Definition at line 97 of file qbezier_p.h.

Here is the caller graph for this function:

◆ pt4()

QPointF QBezier::pt4 ( ) const
inline

Definition at line 98 of file qbezier_p.h.

Here is the caller graph for this function:

◆ secondDerivedAt()

QPointF QBezier::secondDerivedAt ( qreal  t) const
inline

Definition at line 214 of file qbezier_p.h.

◆ shifted()

int QBezier::shifted ( QBezier curveSegments,
int  maxSegmets,
qreal  offset,
float  threshold 
) const

Definition at line 391 of file qbezier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ split()

std::pair< QBezier, QBezier > QBezier::split ( ) const
inline

Definition at line 225 of file qbezier_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ startTangent()

QLineF QBezier::startTangent ( ) const
inline

Definition at line 133 of file qbezier_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stationaryYPoints()

int QBezier::stationaryYPoints ( qreal t0,
qreal t1 
) const

Definition at line 532 of file qbezier.cpp.

Here is the call graph for this function:

◆ tAtLength()

qreal QBezier::tAtLength ( qreal  len) const

Definition at line 581 of file qbezier.cpp.

Here is the call graph for this function:

◆ tForY()

qreal QBezier::tForY ( qreal  t0,
qreal  t1,
qreal  y 
) const

Definition at line 490 of file qbezier.cpp.

Here is the call graph for this function:

◆ toPolygon()

QT_BEGIN_NAMESPACE QPolygonF QBezier::toPolygon ( qreal  bezier_flattening_threshold = 0.5) const

Definition at line 57 of file qbezier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ x1

qreal QBezier::x1

Definition at line 117 of file qbezier_p.h.

◆ x2

qreal QBezier::x2

Definition at line 117 of file qbezier_p.h.

◆ x3

qreal QBezier::x3

Definition at line 117 of file qbezier_p.h.

◆ x4

qreal QBezier::x4

Definition at line 117 of file qbezier_p.h.

◆ y1

qreal QBezier::y1

Definition at line 117 of file qbezier_p.h.

◆ y2

qreal QBezier::y2

Definition at line 117 of file qbezier_p.h.

◆ y3

qreal QBezier::y3

Definition at line 117 of file qbezier_p.h.

◆ y4

qreal QBezier::y4

Definition at line 117 of file qbezier_p.h.


The documentation for this class was generated from the following files: