![]() |
Qt 6.x
The Qt SDK
|
#include <qpathclipper_p.h>
Classes | |
struct | Intersection |
struct | Segment |
Public Member Functions | |
QPathSegments (int reserve) | |
void | setPath (const QPainterPath &path) |
void | addPath (const QPainterPath &path) |
int | intersections () const |
int | segments () const |
int | points () const |
const Segment & | segmentAt (int index) const |
const QLineF | lineAt (int index) const |
const QRectF & | elementBounds (int index) const |
int | pathId (int index) const |
const QPointF & | pointAt (int vertex) const |
int | addPoint (const QPointF &point) |
const Intersection * | intersectionAt (int index) const |
void | addIntersection (int index, const Intersection &intersection) |
void | mergePoints () |
Friends | |
class | QTypeInfo< Intersection > |
class | QTypeInfo< Segment > |
Definition at line 128 of file qpathclipper_p.h.
|
inline |
Definition at line 309 of file qpathclipper_p.h.
|
inline |
Definition at line 373 of file qpathclipper_p.h.
References QDataBuffer< Type >::at(), QDataBuffer< Type >::data(), QPathSegments::Intersection::next, and QDataBuffer< Type >::size().
void QPathSegments::addPath | ( | const QPainterPath & | path | ) |
Definition at line 881 of file qpathclipper.cpp.
References QDataBuffer< Type >::at(), QBezier::bounds(), comparePoints(), QPainterPath::CurveToElement, QBezier::fromPoints(), QRectF::height(), i, isLine(), line, lineAt(), QPainterPath::LineToElement, QPainterPath::MoveToElement, QBezier::pointAt(), Q_ASSERT, qMax(), qSwap(), QDataBuffer< Type >::size(), and QRectF::width().
Referenced by QWingedEdge::QWingedEdge(), and setPath().
|
inline |
Definition at line 332 of file qpathclipper_p.h.
References QDataBuffer< Type >::size().
|
inline |
Definition at line 349 of file qpathclipper_p.h.
|
inline |
Definition at line 359 of file qpathclipper_p.h.
References QDataBuffer< Type >::at().
|
inline |
Definition at line 368 of file qpathclipper_p.h.
References QDataBuffer< Type >::size().
|
inline |
Definition at line 343 of file qpathclipper_p.h.
References QDataBuffer< Type >::at().
Referenced by addPath().
void QPathSegments::mergePoints | ( | ) |
Definition at line 724 of file qpathclipper.cpp.
References QDataBuffer< Type >::at(), i, points(), Q_ASSERT, QT_PREPEND_NAMESPACE(), QKdPointFinder::result(), QKdPointTree::rootNode(), QDataBuffer< Type >::size(), QDataBuffer< Type >::swap(), and QPathSegments::Intersection::vertex.
|
inline |
Definition at line 354 of file qpathclipper_p.h.
|
inline |
Definition at line 327 of file qpathclipper_p.h.
References QDataBuffer< Type >::at(), and i.
Referenced by QKdPointTree::build(), and QKdPointFinder::operator()().
|
inline |
Definition at line 322 of file qpathclipper_p.h.
References QDataBuffer< Type >::size().
Referenced by QKdPointTree::QKdPointTree(), and mergePoints().
|
inline |
Definition at line 338 of file qpathclipper_p.h.
|
inline |
Definition at line 317 of file qpathclipper_p.h.
void QPathSegments::setPath | ( | const QPainterPath & | path | ) |
Definition at line 870 of file qpathclipper.cpp.
References addPath(), and QDataBuffer< Type >::reset().
Referenced by QWingedEdge::QWingedEdge().
|
friend |
Definition at line 124 of file qpathclipper_p.h.
Definition at line 124 of file qpathclipper_p.h.