![]() |
Qt 6.x
The Qt SDK
|
#include "qquickshapecurverenderer_p.h"
#include "qquickshapecurverenderer_p_p.h"
#include "qquickshapecurvenode_p.h"
#include "qquickshapestrokenode_p.h"
#include <QtGui/qvector2d.h>
#include <QtGui/qvector4d.h>
#include <QtGui/private/qtriangulator_p.h>
#include <QtGui/private/qtriangulatingstroker_p.h>
#include <QtGui/private/qrhi_p.h>
#include <QtQuick/qsgmaterial.h>
#include <QThread>
Go to the source code of this file.
Classes | |
class | ElementCutter |
Macros | |
#define | QQUICKSHAPECURVERENDERER_CONVEX_CHECK_ERROR_MARGIN (1.0f / 32.0f) |
Functions | |
QT_BEGIN_NAMESPACE | Q_LOGGING_CATEGORY (lcShapeCurveRenderer, "qt.shape.curverenderer") |
static float | crossProduct (const QVector2D &sp, const QVector2D &p, const QVector2D &ep) |
static void | printElement (QDebug stream, const QuadPath::Element &element) |
QDebug | operator<< (QDebug stream, const QuadPath::Element &element) |
QDebug | operator<< (QDebug stream, const QuadPath &path) |
static QVector2D | uvForPoint (QVector2D v1, QVector2D v2, QVector2D p) |
static QVector2D | curveUv (QVector2D p0, QVector2D p1, QVector2D p2, QVector2D p) |
static QVector2D | calcNormalVector (QVector2D a, QVector2D b) |
static float | testSideOfLineByNormal (QVector2D a, QVector2D n, QVector2D p) |
template<typename Func > | |
void | iteratePath (const QuadPath &path, int index, Func &&lambda) |
static void | handleOverlap (QuadPath &path, qsizetype e1, qsizetype e2, int recursionLevel=0) |
static void | handleOverlap (QuadPath &path, qsizetype e1, const QVector2D vertex, int recursionLevel=0) |
#define QQUICKSHAPECURVERENDERER_CONVEX_CHECK_ERROR_MARGIN (1.0f / 32.0f) |
Definition at line 24 of file qquickshapecurverenderer.cpp.
Definition at line 968 of file qquickshapecurverenderer.cpp.
|
static |
Definition at line 173 of file qquickshapecurverenderer.cpp.
References sp.
Referenced by QVector3D::normal(), and QVector3D::normal().
Definition at line 952 of file qquickshapecurverenderer.cpp.
References p1, p2, and uvForPoint().
Referenced by QuadPath::Element::uvForPoint().
|
static |
Definition at line 2103 of file qquickshapecurverenderer.cpp.
References handleOverlap(), and qDebug.
|
static |
Definition at line 2043 of file qquickshapecurverenderer.cpp.
References handleOverlap(), and qDebug.
Referenced by handleOverlap(), and handleOverlap().
Definition at line 982 of file qquickshapecurverenderer.cpp.
References QuadPath::Element::childCount(), i, QuadPath::Element::indexOfChild(), and iteratePath().
Referenced by iteratePath().
Definition at line 716 of file qquickshapecurverenderer.cpp.
QDebug operator<< | ( | QDebug | stream, |
const QuadPath::Element & | element | ||
) |
Definition at line 706 of file qquickshapecurverenderer.cpp.
|
static |
Definition at line 695 of file qquickshapecurverenderer.cpp.
References QuadPath::Element::controlPoint(), QuadPath::Element::endPoint(), QuadPath::Element::isConvex(), QuadPath::Element::isLine(), QuadPath::Element::isSubpathEnd(), QuadPath::Element::isSubpathStart(), and QuadPath::Element::startPoint().
QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY | ( | lcShapeCurveRenderer | , |
"qt.shape.curverenderer" | |||
) |
Definition at line 975 of file qquickshapecurverenderer.cpp.
References dot(), and QVector2D::dotProduct().
Definition at line 940 of file qquickshapecurverenderer.cpp.
References QVector2D::x().
Referenced by QQuickShapeCurveNode::appendTriangle(), QQuickShapeCurveNode::appendVertex(), and curveUv().