Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QBezier Class Reference

#include <qbezier_p.h>

+ Collaboration diagram for QBezier:

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 30 of file qbezier_p.h.

Member Function Documentation

◆ addIfClose()

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

Definition at line 431 of file qbezier.cpp.

◆ addToPolygon() [1/2]

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

Definition at line 101 of file qbezier.cpp.

◆ addToPolygon() [2/2]

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

Definition at line 65 of file qbezier.cpp.

◆ bezierOnInterval()

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

Definition at line 578 of file qbezier.cpp.

◆ bounds()

QRectF QBezier::bounds ( ) const

Definition at line 137 of file qbezier.cpp.

◆ coefficients()

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

Definition at line 116 of file qbezier_p.h.

◆ derivedAt()

QPointF QBezier::derivedAt ( qreal t) const
inline

Definition at line 162 of file qbezier_p.h.

◆ endTangent()

QLineF QBezier::endTangent ( ) const
inline

Definition at line 106 of file qbezier_p.h.

◆ fromPoints()

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

Definition at line 33 of file qbezier_p.h.

◆ getSubRange()

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

Definition at line 45 of file qbezier.cpp.

◆ length()

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

Definition at line 422 of file qbezier.cpp.

Referenced by testing.tools.encode_pdf_filter._PngIdatPdfStream::write().

+ Here is the caller graph for this function:

◆ mapBy()

QBezier QBezier::mapBy ( const QTransform & transform) const

Definition at line 40 of file qbezier.cpp.

◆ midPoint()

QPointF QBezier::midPoint ( ) const
inline

Definition at line 83 of file qbezier_p.h.

◆ midTangent()

QLineF QBezier::midTangent ( ) const
inline

Definition at line 88 of file qbezier_p.h.

◆ normalVector()

QPointF QBezier::normalVector ( qreal t) const
inline

Definition at line 152 of file qbezier_p.h.

◆ parameterSplitLeft()

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

Definition at line 205 of file qbezier_p.h.

◆ pointAt()

QPointF QBezier::pointAt ( qreal t) const
inline

Definition at line 127 of file qbezier_p.h.

◆ pt1()

QPointF QBezier::pt1 ( ) const
inline

Definition at line 58 of file qbezier_p.h.

◆ pt2()

QPointF QBezier::pt2 ( ) const
inline

Definition at line 59 of file qbezier_p.h.

◆ pt3()

QPointF QBezier::pt3 ( ) const
inline

Definition at line 60 of file qbezier_p.h.

◆ pt4()

QPointF QBezier::pt4 ( ) const
inline

Definition at line 61 of file qbezier_p.h.

◆ secondDerivedAt()

QPointF QBezier::secondDerivedAt ( qreal t) const
inline

Definition at line 177 of file qbezier_p.h.

◆ shifted()

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

Definition at line 355 of file qbezier.cpp.

◆ split()

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

Definition at line 188 of file qbezier_p.h.

◆ startTangent()

QLineF QBezier::startTangent ( ) const
inline

Definition at line 96 of file qbezier_p.h.

◆ stationaryYPoints()

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

Definition at line 496 of file qbezier.cpp.

◆ tAtLength()

qreal QBezier::tAtLength ( qreal len) const

Definition at line 545 of file qbezier.cpp.

◆ tForY()

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

Definition at line 454 of file qbezier.cpp.

◆ toPolygon()

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

Definition at line 21 of file qbezier.cpp.

Member Data Documentation

◆ x1

qreal QBezier::x1

Definition at line 80 of file qbezier_p.h.

◆ x2

qreal QBezier::x2

Definition at line 80 of file qbezier_p.h.

◆ x3

qreal QBezier::x3

Definition at line 80 of file qbezier_p.h.

◆ x4

qreal QBezier::x4

Definition at line 80 of file qbezier_p.h.

◆ y1

qreal QBezier::y1

Definition at line 80 of file qbezier_p.h.

◆ y2

qreal QBezier::y2

Definition at line 80 of file qbezier_p.h.

◆ y3

qreal QBezier::y3

Definition at line 80 of file qbezier_p.h.

◆ y4

qreal QBezier::y4

Definition at line 80 of file qbezier_p.h.


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