Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QuadPath::Element Class Reference

#include <qquickshapecurverenderer_p.h>

+ Collaboration diagram for QuadPath::Element:

Public Member Functions

 Element ()
 
bool isSubpathStart () const
 
bool isSubpathEnd () const
 
bool isLine () const
 
bool isConvex () const
 
QVector2D startPoint () const
 
QVector2D controlPoint () const
 
QVector2D endPoint () const
 
QVector2D midPoint () const
 
QVector3D uvForPoint (QVector2D p) const
 
std::array< QVector2D, 3 > ABC () const
 
QVector3D HGForPoint (QVector2D p) const
 
qsizetype childCount () const
 
qsizetype indexOfChild (qsizetype childNumber) const
 
QVector2D pointAtFraction (float t) const
 
QVector2D tangentAtFraction (float t) const
 
QVector2D normalAtFraction (float t) const
 
float extent () const
 
void setAsConvex (bool isConvex)
 

Friends

class QuadPath
 
QDebug operator<< (QDebug, const QuadPath::Element &)
 

Detailed Description

Definition at line 66 of file qquickshapecurverenderer_p.h.

Constructor & Destructor Documentation

◆ Element()

QuadPath::Element::Element ( )
inline

Definition at line 69 of file qquickshapecurverenderer_p.h.

Member Function Documentation

◆ ABC()

std::array< QVector2D, 3 > QuadPath::Element::ABC ( ) const

◆ childCount()

qsizetype QuadPath::Element::childCount ( ) const
inline

Definition at line 120 of file qquickshapecurverenderer_p.h.

Referenced by QuadPath::addCurvatureData(), indexOfChild(), and iteratePath().

+ Here is the caller graph for this function:

◆ controlPoint()

QVector2D QuadPath::Element::controlPoint ( ) const
inline

Definition at line 99 of file qquickshapecurverenderer_p.h.

Referenced by printElement(), and QuadPath::toPainterPath().

+ Here is the caller graph for this function:

◆ endPoint()

QVector2D QuadPath::Element::endPoint ( ) const
inline

Definition at line 104 of file qquickshapecurverenderer_p.h.

Referenced by printElement(), and QuadPath::toPainterPath().

+ Here is the caller graph for this function:

◆ extent()

float QuadPath::Element::extent ( ) const

Definition at line 131 of file qquickshapecurverenderer.cpp.

References isLine(), qMax(), qMin(), sp, QVector2D::x(), and QVector2D::y().

+ Here is the call graph for this function:

◆ HGForPoint()

QVector3D QuadPath::Element::HGForPoint ( QVector2D  p) const

◆ indexOfChild()

qsizetype QuadPath::Element::indexOfChild ( qsizetype  childNumber) const
inline

Definition at line 122 of file qquickshapecurverenderer_p.h.

References childCount(), and Q_ASSERT.

Referenced by QuadPath::indexOfChildAt(), and iteratePath().

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

◆ isConvex()

bool QuadPath::Element::isConvex ( ) const
inline

Definition at line 89 of file qquickshapecurverenderer_p.h.

Referenced by printElement(), and setAsConvex().

+ Here is the caller graph for this function:

◆ isLine()

bool QuadPath::Element::isLine ( ) const
inline

Definition at line 84 of file qquickshapecurverenderer_p.h.

Referenced by QuadPath::addCurvatureData(), QuadPath::dashed(), midPoint(), pointAtFraction(), printElement(), and tangentAtFraction().

+ Here is the caller graph for this function:

◆ isSubpathEnd()

bool QuadPath::Element::isSubpathEnd ( ) const
inline

Definition at line 79 of file qquickshapecurverenderer_p.h.

Referenced by printElement().

+ Here is the caller graph for this function:

◆ isSubpathStart()

bool QuadPath::Element::isSubpathStart ( ) const
inline

Definition at line 74 of file qquickshapecurverenderer_p.h.

Referenced by QuadPath::addCurvatureData(), QuadPath::dashed(), and printElement().

+ Here is the caller graph for this function:

◆ midPoint()

QVector2D QuadPath::Element::midPoint ( ) const
inline

Definition at line 109 of file qquickshapecurverenderer_p.h.

References isLine().

+ Here is the call graph for this function:

◆ normalAtFraction()

QVector2D QuadPath::Element::normalAtFraction ( float  t) const
inline

Definition at line 135 of file qquickshapecurverenderer_p.h.

References tangentAtFraction().

+ Here is the call graph for this function:

◆ pointAtFraction()

QVector2D QuadPath::Element::pointAtFraction ( float  t) const

Definition at line 121 of file qquickshapecurverenderer.cpp.

References isLine().

+ Here is the call graph for this function:

◆ setAsConvex()

void QuadPath::Element::setAsConvex ( bool  isConvex)
inline

Definition at line 143 of file qquickshapecurverenderer_p.h.

References isConvex().

+ Here is the call graph for this function:

◆ startPoint()

QVector2D QuadPath::Element::startPoint ( ) const
inline

Definition at line 94 of file qquickshapecurverenderer_p.h.

Referenced by QuadPath::dashed(), printElement(), and QuadPath::toPainterPath().

+ Here is the caller graph for this function:

◆ tangentAtFraction()

QVector2D QuadPath::Element::tangentAtFraction ( float  t) const
inline

Definition at line 130 of file qquickshapecurverenderer_p.h.

References isLine().

Referenced by normalAtFraction().

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

◆ uvForPoint()

QVector3D QuadPath::Element::uvForPoint ( QVector2D  p) const

Definition at line 959 of file qquickshapecurverenderer.cpp.

References curveUv(), and sp.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ operator<<

QDebug operator<< ( QDebug  ,
const QuadPath::Element  
)
friend

Definition at line 706 of file qquickshapecurverenderer.cpp.

◆ QuadPath

friend class QuadPath
friend

Definition at line 170 of file qquickshapecurverenderer_p.h.


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