4#ifndef QTRIANGULATOR_P_H
5#define QTRIANGULATOR_P_H
18#include <QtGui/private/qtguiglobal_p.h>
19#include <QtGui/private/qvectorpath_p.h>
20#include <QtCore/qlist.h>
24class QVertexIndexVector
32 inline Type type()
const {
return t; }
34 inline void setDataUint(
const QList<quint32> &data)
40 inline void setDataUshort(
const QList<quint16> &data)
46 inline const void* data()
const
49 return indices32.data();
50 return indices16.data();
53 inline int size()
const
56 return indices32.size();
57 return indices16.size();
63 QList<quint32> indices32;
64 QList<quint16> indices16;
86 uint hint = QVectorPath::PolygonHint | QVectorPath::OddEvenFill,
87 const QTransform &matrix = QTransform(),
88 bool allowUintIndices =
true);
90 qreal lod = 1,
bool allowUintIndices =
true);
92 qreal lod = 1,
bool allowUintIndices =
true);
94 qreal lod = 1,
bool allowUintIndices =
true);
96 qreal lod = 1,
bool allowUintIndices =
true);
bool contains(quint64 key) const
ComplexToSimple(QTriangulator< T > *parent)
MonotoneToTriangles(QTriangulator< T > *parent)
SimpleToMonotone(QTriangulator< T > *parent)
QVarLengthArray< int, 6 > ShortArray
void initialize(const qreal *polygon, int count, uint hint, const QTransform &matrix)
QVertexSet< T > polyline()
void initialize(const QVectorPath &path, const QTransform &matrix, qreal lod)
QVertexSet< T > triangulate()
QDebug Q_GUI_EXPORT & operator<<(QDebug &s, const QVectorPath &path)
#define Q_FIXED_POINT_SCALE
static int primeForCount(int count)
static QIntersectionPoint qIntersectionPoint(const QPodPoint &u1, const QPodPoint &u2, const QPodPoint &v1, const QPodPoint &v2)
static int compare(quint64 a, quint64 b)
static QIntersectionPoint qIntersectionPoint(const QPodPoint &point)
static QFraction qFraction(quint64 n, quint64 d)
static qint64 qCross(const QPodPoint &u, const QPodPoint &v)
QPolylineSet qPolyline(const QVectorPath &path, const QTransform &matrix, qreal lod, bool allowUintIndices)
QTriangleSet qTriangulate(const QPainterPath &path, const QTransform &matrix, qreal lod, bool allowUintIndices)
static quint64 gcd(quint64 x, quint64 y)
static int qCompareFractions(quint64 a, quint64 b, quint64 c, quint64 d)
static qint64 qPointDistanceFromLine(const QPodPoint &p, const QPodPoint &v1, const QPodPoint &v2)
static bool qPointIsLeftOfLine(const QPodPoint &p, const QPodPoint &v1, const QPodPoint &v2)
bool operator<=(const QFraction &other) const
bool operator!=(const QFraction &other) const
bool operator>(const QFraction &other) const
bool operator<(const QFraction &other) const
bool operator>=(const QFraction &other) const
bool operator==(const QFraction &other) const
bool operator<(const QIntersectionPoint &other) const
bool operator>(const QIntersectionPoint &other) const
bool isOnLine(const QPodPoint &u, const QPodPoint &v) const
bool operator>=(const QIntersectionPoint &other) const
bool operator<=(const QIntersectionPoint &other) const
bool operator==(const QIntersectionPoint &other) const
bool operator!=(const QIntersectionPoint &other) const
bool operator>=(const QPodPoint &other) const
QPodPoint & operator+=(const QPodPoint &other)
QPodPoint operator-(const QPodPoint &other) const
QPodPoint operator+(const QPodPoint &other) const
bool operator!=(const QPodPoint &other) const
QPodPoint & operator-=(const QPodPoint &other)
bool operator<=(const QPodPoint &other) const
bool operator>(const QPodPoint &other) const
bool operator<(const QPodPoint &other) const
bool operator==(const QPodPoint &other) const
QVertexIndexVector indices
QVertexIndexVector indices