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
QWingedEdge Class Reference

#include <qpathclipper_p.h>

+ Collaboration diagram for QWingedEdge:

Classes

struct  TraversalStatus
 

Public Member Functions

 QWingedEdge ()
 
 QWingedEdge (const QPainterPath &subject, const QPainterPath &clip)
 
void simplify ()
 
QPainterPath toPath () const
 
int edgeCount () const
 
QPathEdgeedge (int edge)
 
const QPathEdgeedge (int edge) const
 
int vertexCount () const
 
int addVertex (const QPointF &p)
 
QPathVertexvertex (int vertex)
 
const QPathVertexvertex (int vertex) const
 
TraversalStatus next (const TraversalStatus &status) const
 
int addEdge (const QPointF &a, const QPointF &b)
 
int addEdge (int vertexA, int vertexB)
 
bool isInside (qreal x, qreal y) const
 

Static Public Member Functions

static QPathEdge::Traversal flip (QPathEdge::Traversal traversal)
 
static QPathEdge::Direction flip (QPathEdge::Direction direction)
 

Detailed Description

Definition at line 197 of file qpathclipper_p.h.

Constructor & Destructor Documentation

◆ QWingedEdge() [1/2]

QWingedEdge::QWingedEdge ( )

Definition at line 818 of file qpathclipper.cpp.

◆ QWingedEdge() [2/2]

QWingedEdge::QWingedEdge ( const QPainterPath & subject,
const QPainterPath & clip )

Definition at line 825 of file qpathclipper.cpp.

References QPathSegments::addPath(), and QPathSegments::setPath().

+ Here is the call graph for this function:

Member Function Documentation

◆ addEdge() [1/2]

int QWingedEdge::addEdge ( const QPointF & a,
const QPointF & b )

Definition at line 1148 of file qpathclipper.cpp.

References addEdge().

Referenced by addEdge().

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

◆ addEdge() [2/2]

int QWingedEdge::addEdge ( int vertexA,
int vertexB )

Definition at line 1156 of file qpathclipper.cpp.

References QPathEdge::angle, QPathEdge::Backward, commonEdge(), computeAngle(), QPathVertex::edge, edge(), QPathEdge::Forward, fp, i, QPathEdge::invAngle, QPathEdge::LeftTraversal, QPathEdge::next(), next, Q_ASSERT, QPathEdge::RightTraversal, QPathEdge::setNext(), QDataBuffer< Type >::size(), sp, QPathEdge::vertex(), and vertex().

+ Here is the call graph for this function:

◆ addVertex()

int QWingedEdge::addVertex ( const QPointF & p)
inline

Definition at line 410 of file qpathclipper_p.h.

References QDataBuffer< Type >::size().

+ Here is the call graph for this function:

◆ edge() [1/2]

QPathEdge * QWingedEdge::edge ( int edge)
inline

Definition at line 395 of file qpathclipper_p.h.

References QDataBuffer< Type >::at(), edge(), and nullptr.

Referenced by addEdge(), edge(), edge(), isInside(), next(), simplify(), and toPath().

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

◆ edge() [2/2]

const QPathEdge * QWingedEdge::edge ( int edge) const
inline

Definition at line 400 of file qpathclipper_p.h.

References QDataBuffer< Type >::at(), edge(), and nullptr.

+ Here is the call graph for this function:

◆ edgeCount()

int QWingedEdge::edgeCount ( ) const
inline

Definition at line 390 of file qpathclipper_p.h.

References QDataBuffer< Type >::size().

Referenced by isInside(), simplify(), and toPath().

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

◆ flip() [1/2]

QPathEdge::Direction QWingedEdge::flip ( QPathEdge::Direction direction)
inlinestatic

Definition at line 436 of file qpathclipper_p.h.

References QPathEdge::Backward, direction, and QPathEdge::Forward.

◆ flip() [2/2]

QPathEdge::Traversal QWingedEdge::flip ( QPathEdge::Traversal traversal)
inlinestatic

Definition at line 426 of file qpathclipper_p.h.

References QPathEdge::LeftTraversal, and QPathEdge::RightTraversal.

Referenced by QWingedEdge::TraversalStatus::flipDirection(), and QWingedEdge::TraversalStatus::flipTraversal().

+ Here is the caller graph for this function:

◆ isInside()

bool QWingedEdge::isInside ( qreal x,
qreal y ) const

Definition at line 1721 of file qpathclipper.cpp.

References edge(), edgeCount(), QPathEdge::first, QPathEdge::flag, i, QPathEdge::second, and vertex().

+ Here is the call graph for this function:

◆ next()

QWingedEdge::TraversalStatus QWingedEdge::next ( const TraversalStatus & status) const

Definition at line 836 of file qpathclipper.cpp.

References QWingedEdge::TraversalStatus::direction, QWingedEdge::TraversalStatus::edge, edge(), Q_ASSERT, sp, QWingedEdge::TraversalStatus::traversal, and QPathEdge::vertex().

+ Here is the call graph for this function:

◆ simplify()

void QWingedEdge::simplify ( )

Definition at line 1297 of file qpathclipper.cpp.

References edge(), edgeCount(), QPathEdge::flag, and i.

+ Here is the call graph for this function:

◆ toPath()

QPainterPath QWingedEdge::toPath ( ) const

Definition at line 1312 of file qpathclipper.cpp.

References add(), edge(), edgeCount(), QPathEdge::flag, i, QPathEdge::LeftTraversal, and QPathEdge::RightTraversal.

+ Here is the call graph for this function:

◆ vertex() [1/2]

QPathVertex * QWingedEdge::vertex ( int vertex)
inline

Definition at line 416 of file qpathclipper_p.h.

References QDataBuffer< Type >::at(), nullptr, and vertex().

Referenced by addEdge(), isInside(), vertex(), and vertex().

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

◆ vertex() [2/2]

const QPathVertex * QWingedEdge::vertex ( int vertex) const
inline

Definition at line 421 of file qpathclipper_p.h.

References QDataBuffer< Type >::at(), nullptr, and vertex().

+ Here is the call graph for this function:

◆ vertexCount()

int QWingedEdge::vertexCount ( ) const
inline

Definition at line 405 of file qpathclipper_p.h.

References QDataBuffer< Type >::size().

+ Here is the call graph for this function:

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