![]() |
Qt 6.x
The Qt SDK
|
#include <qpathclipper_p.h>
Classes | |
struct | TraversalStatus |
Public Member Functions | |
QWingedEdge () | |
QWingedEdge (const QPainterPath &subject, const QPainterPath &clip) | |
void | simplify () |
QPainterPath | toPath () const |
int | edgeCount () const |
QPathEdge * | edge (int edge) |
const QPathEdge * | edge (int edge) const |
int | vertexCount () const |
int | addVertex (const QPointF &p) |
QPathVertex * | vertex (int vertex) |
const QPathVertex * | vertex (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) |
Definition at line 197 of file qpathclipper_p.h.
QWingedEdge::QWingedEdge | ( | ) |
Definition at line 817 of file qpathclipper.cpp.
QWingedEdge::QWingedEdge | ( | const QPainterPath & | subject, |
const QPainterPath & | clip | ||
) |
Definition at line 824 of file qpathclipper.cpp.
References QPathSegments::addPath(), and QPathSegments::setPath().
Definition at line 1147 of file qpathclipper.cpp.
Referenced by addEdge().
int QWingedEdge::addEdge | ( | int | vertexA, |
int | vertexB | ||
) |
Definition at line 1155 of file qpathclipper.cpp.
References QPathEdge::angle, QPathEdge::Backward, commonEdge(), computeAngle(), QWingedEdge::TraversalStatus::direction, QPathVertex::edge, QWingedEdge::TraversalStatus::edge, edge(), fi, QWingedEdge::TraversalStatus::flipDirection(), QPathEdge::Forward, fp, i, QPathEdge::invAngle, QPathEdge::LeftTraversal, QPathEdge::next(), next, Q_ASSERT, QPathEdge::RightTraversal, QPathEdge::setNext(), QDataBuffer< Type >::size(), sp, QWingedEdge::TraversalStatus::traversal, QPathEdge::vertex(), and vertex().
|
inline |
Definition at line 410 of file qpathclipper_p.h.
References QDataBuffer< Type >::size().
|
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().
|
inline |
Definition at line 400 of file qpathclipper_p.h.
References QDataBuffer< Type >::at(), edge(), and nullptr.
|
inline |
Definition at line 390 of file qpathclipper_p.h.
References QDataBuffer< Type >::size().
Referenced by isInside(), simplify(), and toPath().
|
inlinestatic |
Definition at line 436 of file qpathclipper_p.h.
References QPathEdge::Backward, direction, and QPathEdge::Forward.
|
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().
Definition at line 1720 of file qpathclipper.cpp.
References edge(), edgeCount(), QPathEdge::first, QPathEdge::flag, i, QPathEdge::second, and vertex().
QWingedEdge::TraversalStatus QWingedEdge::next | ( | const TraversalStatus & | status | ) | const |
Definition at line 835 of file qpathclipper.cpp.
References QWingedEdge::TraversalStatus::direction, QWingedEdge::TraversalStatus::edge, edge(), Q_ASSERT, sp, QWingedEdge::TraversalStatus::traversal, and QPathEdge::vertex().
void QWingedEdge::simplify | ( | ) |
Definition at line 1296 of file qpathclipper.cpp.
References edge(), edgeCount(), QPathEdge::flag, and i.
QPainterPath QWingedEdge::toPath | ( | ) | const |
Definition at line 1311 of file qpathclipper.cpp.
References add(), edge(), edgeCount(), QPathEdge::flag, i, QPathEdge::LeftTraversal, and QPathEdge::RightTraversal.
|
inline |
Definition at line 416 of file qpathclipper_p.h.
References QDataBuffer< Type >::at(), nullptr, and vertex().
Referenced by addEdge(), isInside(), vertex(), and vertex().
|
inline |
Definition at line 421 of file qpathclipper_p.h.
References QDataBuffer< Type >::at(), nullptr, and vertex().
|
inline |
Definition at line 405 of file qpathclipper_p.h.
References QDataBuffer< Type >::size().