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

#include <qpathclipper_p.h>

+ Collaboration diagram for QPathSegments:

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 SegmentsegmentAt (int index) const
 
const QLineF lineAt (int index) const
 
const QRectFelementBounds (int index) const
 
int pathId (int index) const
 
const QPointFpointAt (int vertex) const
 
int addPoint (const QPointF &point)
 
const IntersectionintersectionAt (int index) const
 
void addIntersection (int index, const Intersection &intersection)
 
void mergePoints ()
 

Friends

class QTypeInfo< Intersection >
 
class QTypeInfo< Segment >
 

Detailed Description

Definition at line 128 of file qpathclipper_p.h.

Constructor & Destructor Documentation

◆ QPathSegments()

QPathSegments::QPathSegments ( int reserve)
inline

Definition at line 309 of file qpathclipper_p.h.

Member Function Documentation

◆ addIntersection()

void QPathSegments::addIntersection ( int index,
const Intersection & intersection )
inline

Definition at line 373 of file qpathclipper_p.h.

References QDataBuffer< Type >::at(), QDataBuffer< Type >::data(), QPathSegments::Intersection::next, and QDataBuffer< Type >::size().

+ Here is the call graph for this function:

◆ addPath()

void QPathSegments::addPath ( const QPainterPath & path)

Definition at line 882 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().

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

◆ addPoint()

int QPathSegments::addPoint ( const QPointF & point)
inline

Definition at line 332 of file qpathclipper_p.h.

References QDataBuffer< Type >::size().

+ Here is the call graph for this function:

◆ elementBounds()

const QRectF & QPathSegments::elementBounds ( int index) const
inline

Definition at line 349 of file qpathclipper_p.h.

◆ intersectionAt()

const QPathSegments::Intersection * QPathSegments::intersectionAt ( int index) const
inline

Definition at line 359 of file qpathclipper_p.h.

References QDataBuffer< Type >::at().

+ Here is the call graph for this function:

◆ intersections()

int QPathSegments::intersections ( ) const
inline

Definition at line 368 of file qpathclipper_p.h.

References QDataBuffer< Type >::size().

+ Here is the call graph for this function:

◆ lineAt()

const QLineF QPathSegments::lineAt ( int index) const
inline

Definition at line 343 of file qpathclipper_p.h.

References QDataBuffer< Type >::at().

Referenced by addPath().

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

◆ mergePoints()

void QPathSegments::mergePoints ( )

Definition at line 725 of file qpathclipper.cpp.

References i, Q_ASSERT, and QKdPointTree::rootNode().

+ Here is the call graph for this function:

◆ pathId()

int QPathSegments::pathId ( int index) const
inline

Definition at line 354 of file qpathclipper_p.h.

◆ pointAt()

const QPointF & QPathSegments::pointAt ( int vertex) const
inline

Definition at line 327 of file qpathclipper_p.h.

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

+ Here is the call graph for this function:

◆ points()

int QPathSegments::points ( ) const
inline

Definition at line 322 of file qpathclipper_p.h.

References QDataBuffer< Type >::size().

+ Here is the call graph for this function:

◆ segmentAt()

const QPathSegments::Segment & QPathSegments::segmentAt ( int index) const
inline

Definition at line 338 of file qpathclipper_p.h.

◆ segments()

int QPathSegments::segments ( ) const
inline

Definition at line 317 of file qpathclipper_p.h.

◆ setPath()

void QPathSegments::setPath ( const QPainterPath & path)

Definition at line 871 of file qpathclipper.cpp.

References addPath(), and QDataBuffer< Type >::reset().

Referenced by QWingedEdge::QWingedEdge().

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

Friends And Related Symbol Documentation

◆ QTypeInfo< Intersection >

friend class QTypeInfo< Intersection >
friend

Definition at line 124 of file qpathclipper_p.h.

◆ QTypeInfo< Segment >

friend class QTypeInfo< Segment >
friend

Definition at line 124 of file qpathclipper_p.h.


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