![]() |
Qt 6.x
The Qt SDK
|
#include <qclipperutils_p.h>
Collaboration diagram for QClipperUtils:Public Types | |
| enum | Operation { Union , Intersection , Difference , Xor } |
| enum | PolyFillType { pftEvenOdd , pftNonZero , pftPositive , pftNegative } |
Public Member Functions | |
| QClipperUtils () | |
| QClipperUtils (const QClipperUtils &other) | |
| ~QClipperUtils () | |
| void | clearClipper () |
| void | addSubjectPath (const QList< QDoubleVector2D > &path, bool closed) |
| void | addClipPolygon (const QList< QDoubleVector2D > &path) |
| QList< QList< QDoubleVector2D > > | execute (Operation op, PolyFillType subjFillType=pftNonZero, PolyFillType clipFillType=pftNonZero) |
| void | setPolygon (const QList< QDoubleVector2D > &polygon) |
| int | pointInPolygon (const QDoubleVector2D &point) const |
Static Public Member Functions | |
| static double | clipperScaleFactor () |
| static int | pointInPolygon (const QDoubleVector2D &point, const QList< QDoubleVector2D > &polygon) |
Definition at line 39 of file qclipperutils_p.h.
| Enumerator | |
|---|---|
| Union | |
| Intersection | |
| Difference | |
| Xor | |
Definition at line 47 of file qclipperutils_p.h.
| Enumerator | |
|---|---|
| pftEvenOdd | |
| pftNonZero | |
| pftPositive | |
| pftNegative | |
Definition at line 55 of file qclipperutils_p.h.
| QClipperUtils::QClipperUtils | ( | ) |
Definition at line 57 of file qclipperutils.cpp.
| QClipperUtils::QClipperUtils | ( | const QClipperUtils & | other | ) |
Definition at line 61 of file qclipperutils.cpp.
References QClipperUtilsPrivate::m_cachedPolygon, and other().
Here is the call graph for this function:| QClipperUtils::~QClipperUtils | ( | ) |
Definition at line 66 of file qclipperutils.cpp.
| void QClipperUtils::addClipPolygon | ( | const QList< QDoubleVector2D > & | path | ) |
Definition at line 93 of file qclipperutils.cpp.
References QClipperUtilsPrivate::m_clipper, and qListToPath().
Referenced by QDeclarativeGeoMapItemUtils::clipPolygon(), and QGeoMapPolygonGeometry::updateSourcePoints().
Here is the call graph for this function:
Here is the caller graph for this function:| void QClipperUtils::addSubjectPath | ( | const QList< QDoubleVector2D > & | path, |
| bool | closed | ||
| ) |
Definition at line 88 of file qclipperutils.cpp.
References QClipperUtilsPrivate::m_clipper, and qListToPath().
Referenced by QDeclarativeGeoMapItemUtils::clipPolygon(), and QGeoMapPolygonGeometry::updateSourcePoints().
Here is the call graph for this function:
Here is the caller graph for this function:| void QClipperUtils::clearClipper | ( | ) |
Definition at line 83 of file qclipperutils.cpp.
References QClipperUtilsPrivate::m_clipper.
|
static |
Definition at line 71 of file qclipperutils.cpp.
References kClipperScaleFactor.
| QList< QList< QDoubleVector2D > > QClipperUtils::execute | ( | Operation | op, |
| PolyFillType | subjFillType = pftNonZero, |
||
| PolyFillType | clipFillType = pftNonZero |
||
| ) |
Definition at line 98 of file qclipperutils.cpp.
References QClipperUtilsPrivate::m_clipper, and pathsToQList().
Referenced by QDeclarativeGeoMapItemUtils::clipPolygon(), and QGeoMapPolygonGeometry::updateSourcePoints().
Here is the call graph for this function:
Here is the caller graph for this function:| int QClipperUtils::pointInPolygon | ( | const QDoubleVector2D & | point | ) | const |
Definition at line 113 of file qclipperutils.cpp.
References QClipperUtilsPrivate::m_cachedPolygon, qWarning, and toIntPoint().
Here is the call graph for this function:
|
static |
Definition at line 76 of file qclipperutils.cpp.
References qListToPath(), qWarning, and toIntPoint().
Referenced by QGeoPolygonPrivate::polygonContains().
Here is the call graph for this function:
Here is the caller graph for this function:| void QClipperUtils::setPolygon | ( | const QList< QDoubleVector2D > & | polygon | ) |
Definition at line 108 of file qclipperutils.cpp.
References QClipperUtilsPrivate::m_cachedPolygon, and qListToPath().
Referenced by QGeoPolygonPrivate::updateClipperPath().
Here is the call graph for this function:
Here is the caller graph for this function: