Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 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 >

Detailed Description

Definition at line 129 of file qpathclipper_p.h.

Constructor & Destructor Documentation

◆ QPathSegments()

QPathSegments::QPathSegments ( int reserve)
inline

Definition at line 310 of file qpathclipper_p.h.

References QPathSegments().

Referenced by QPathSegments().

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

Member Function Documentation

◆ addIntersection()

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

◆ addPath()

void QPathSegments::addPath ( const QPainterPath & path)

Definition at line 883 of file qpathclipper.cpp.

◆ addPoint()

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

Definition at line 333 of file qpathclipper_p.h.

◆ elementBounds()

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

Definition at line 350 of file qpathclipper_p.h.

◆ intersectionAt()

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

Definition at line 360 of file qpathclipper_p.h.

◆ intersections()

int QPathSegments::intersections ( ) const
inline

Definition at line 369 of file qpathclipper_p.h.

◆ lineAt()

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

Definition at line 344 of file qpathclipper_p.h.

◆ mergePoints()

void QPathSegments::mergePoints ( )

Definition at line 726 of file qpathclipper.cpp.

References QKdPointFinder::QKdPointFinder(), QKdPointTree::QKdPointTree(), points(), QKdPointFinder::result(), and QKdPointTree::rootNode().

Here is the call graph for this function:

◆ pathId()

int QPathSegments::pathId ( int index) const
inline

Definition at line 355 of file qpathclipper_p.h.

◆ pointAt()

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

Definition at line 328 of file qpathclipper_p.h.

◆ points()

int QPathSegments::points ( ) const
inline

Definition at line 323 of file qpathclipper_p.h.

Referenced by mergePoints().

Here is the caller graph for this function:

◆ segmentAt()

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

Definition at line 339 of file qpathclipper_p.h.

◆ segments()

int QPathSegments::segments ( ) const
inline

Definition at line 318 of file qpathclipper_p.h.

Referenced by QIntersectionFinder::hasIntersections(), and QIntersectionFinder::produceIntersections().

Here is the caller graph for this function:

◆ setPath()

void QPathSegments::setPath ( const QPainterPath & path)

Definition at line 872 of file qpathclipper.cpp.

◆ QTypeInfo< Intersection >

friend class QTypeInfo< Intersection >
friend

Definition at line 125 of file qpathclipper_p.h.

◆ QTypeInfo< Segment >

friend class QTypeInfo< Segment >
friend

Definition at line 125 of file qpathclipper_p.h.


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