Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuadPath::Element Class Reference

#include <qquadpath_p.h>

+ Collaboration diagram for QQuadPath::Element:

Public Types

enum  CurvatureFlags : quint8 { CurvatureUndetermined = 0 , FillOnRight = 1 , Convex = 2 }
 
enum  FillSide : quint8 { FillSideUndetermined = 0 , FillSideRight = 1 , FillSideLeft = 2 , FillSideBoth = 3 }
 

Public Member Functions

 Element ()
 
 Element (QVector2D s, QVector2D c, QVector2D e)
 
bool isSubpathStart () const
 
bool isSubpathEnd () const
 
bool isLine () const
 
bool isConvex () const
 
QVector2D startPoint () const
 
QVector2D controlPoint () const
 
QVector2D endPoint () const
 
QVector2D midPoint () const
 
QVector2D referencePoint () const
 
Element segmentFromTo (float t0, float t1) const
 
Element reversed () const
 
int childCount () const
 
int indexOfChild (int childNumber) const
 
QVector2D pointAtFraction (float t) const
 
QVector2D tangentAtFraction (float t) const
 
QVector2D normalAtFraction (float t) const
 
float extent () const
 
void setAsConvex (bool isConvex)
 
void setFillOnRight (bool isFillOnRight)
 
bool isFillOnRight () const
 
bool isControlPointOnLeft () const
 

Friends

class QQuadPath
 
Q_QUICK_EXPORT QDebug operator<< (QDebug, const QQuadPath::Element &)
 

Detailed Description

Definition at line 42 of file qquadpath_p.h.

Member Enumeration Documentation

◆ CurvatureFlags

enum QQuadPath::Element::CurvatureFlags : quint8
Enumerator
CurvatureUndetermined 
FillOnRight 
Convex 

Definition at line 159 of file qquadpath_p.h.

◆ FillSide

enum QQuadPath::Element::FillSide : quint8
Enumerator
FillSideUndetermined 
FillSideRight 
FillSideLeft 
FillSideBoth 

Definition at line 165 of file qquadpath_p.h.

Constructor & Destructor Documentation

◆ Element() [1/2]

QQuadPath::Element::Element ( )
inline

Definition at line 45 of file qquadpath_p.h.

◆ Element() [2/2]

QQuadPath::Element::Element ( QVector2D s,
QVector2D c,
QVector2D e )
inline

Definition at line 50 of file qquadpath_p.h.

Member Function Documentation

◆ childCount()

int QQuadPath::Element::childCount ( ) const
inline

Definition at line 113 of file qquadpath_p.h.

Referenced by QQuadPath::iterateChildrenOf(), QQuadPath::iterateChildrenOf(), QQuadPath::iterateElements(), and QQuadPath::iterateElements().

+ Here is the caller graph for this function:

◆ controlPoint()

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

Definition at line 80 of file qquadpath_p.h.

Referenced by QQuadPath::contains(), QQuadPath::fillSideOf(), QSGCurveProcessor::findOverlappingCandidates(), printElement(), QSGCurveProcessor::processFill(), and QQuickVectorImageGenerator::Utils::toSvgString().

+ Here is the caller graph for this function:

◆ endPoint()

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

Definition at line 85 of file qquadpath_p.h.

Referenced by QQuadPath::contains(), QQuadPath::fillSideOf(), QSGCurveProcessor::findOverlappingCandidates(), printElement(), QSGCurveProcessor::processFill(), and QQuickVectorImageGenerator::Utils::toSvgString().

+ Here is the caller graph for this function:

◆ extent()

float QQuadPath::Element::extent ( ) const

Definition at line 236 of file qquadpath.cpp.

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

Referenced by extent().

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

◆ indexOfChild()

int QQuadPath::Element::indexOfChild ( int childNumber) const
inline

Definition at line 115 of file qquadpath_p.h.

References Q_ASSERT.

◆ isControlPointOnLeft()

bool QQuadPath::Element::isControlPointOnLeft ( ) const
inline

Definition at line 154 of file qquadpath_p.h.

References sp.

◆ isConvex()

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

Definition at line 70 of file qquadpath_p.h.

Referenced by printElement(), and QSGCurveProcessor::processFill().

+ Here is the caller graph for this function:

◆ isFillOnRight()

bool QQuadPath::Element::isFillOnRight ( ) const
inline

Definition at line 152 of file qquadpath_p.h.

◆ isLine()

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

Definition at line 65 of file qquadpath_p.h.

Referenced by QQuadPath::dashed(), pointAtFraction(), printElement(), QSGCurveProcessor::processFill(), QSGCurveProcessor::processStroke(), and QQuickVectorImageGenerator::Utils::toSvgString().

+ Here is the caller graph for this function:

◆ isSubpathEnd()

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

Definition at line 60 of file qquadpath_p.h.

Referenced by printElement().

+ Here is the caller graph for this function:

◆ isSubpathStart()

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

Definition at line 55 of file qquadpath_p.h.

Referenced by QQuadPath::dashed(), printElement(), QSGCurveProcessor::processFill(), and QQuickVectorImageGenerator::Utils::toSvgString().

+ Here is the caller graph for this function:

◆ midPoint()

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

Definition at line 90 of file qquadpath_p.h.

References isLine(), and sp.

Referenced by QQuadPath::splitElementAt().

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

◆ normalAtFraction()

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

Definition at line 128 of file qquadpath_p.h.

◆ pointAtFraction()

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

Definition at line 195 of file qquadpath.cpp.

References isLine(), and pointAtFraction().

Referenced by QQuadPath::contains(), QQuadPath::fillSideOf(), and pointAtFraction().

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

◆ referencePoint()

QVector2D QQuadPath::Element::referencePoint ( ) const
inline

Definition at line 99 of file qquadpath_p.h.

References isLine(), and sp.

+ Here is the call graph for this function:

◆ reversed()

QQuadPath::Element QQuadPath::Element::reversed ( ) const

Definition at line 227 of file qquadpath.cpp.

References reversed(), and sp.

Referenced by reversed().

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

◆ segmentFromTo()

QQuadPath::Element QQuadPath::Element::segmentFromTo ( float t0,
float t1 ) const

Definition at line 205 of file qquadpath.cpp.

References isLine(), segmentFromTo(), and t0.

Referenced by segmentFromTo().

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

◆ setAsConvex()

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

Definition at line 136 of file qquadpath_p.h.

◆ setFillOnRight()

void QQuadPath::Element::setFillOnRight ( bool isFillOnRight)
inline

Definition at line 144 of file qquadpath_p.h.

◆ startPoint()

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

Definition at line 75 of file qquadpath_p.h.

References sp.

Referenced by QQuadPath::contains(), QQuadPath::dashed(), QQuadPath::fillSideOf(), QSGCurveProcessor::findOverlappingCandidates(), printElement(), QSGCurveProcessor::processFill(), and QQuickVectorImageGenerator::Utils::toSvgString().

+ Here is the caller graph for this function:

◆ tangentAtFraction()

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

Definition at line 123 of file qquadpath_p.h.

References isLine(), and sp.

Referenced by QQuadPath::contains(), and QQuadPath::fillSideOf().

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

Friends And Related Symbol Documentation

◆ operator<<

Q_QUICK_EXPORT QDebug operator<< ( QDebug ,
const QQuadPath::Element &  )
friend

Definition at line 923 of file qquadpath.cpp.

◆ QQuadPath

friend class QQuadPath
friend

Definition at line 184 of file qquadpath_p.h.


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