![]() |
Qt 6.x
The Qt SDK
|
#include <qquickshapegenericrenderer_p.h>
Inheritance diagram for QQuickShapeGenericRenderer:
Collaboration diagram for QQuickShapeGenericRenderer:Classes | |
| struct | Color4ub |
Public Types | |
| enum | Dirty { DirtyFillGeom = 0x01 , DirtyStrokeGeom = 0x02 , DirtyColor = 0x04 , DirtyFillGradient = 0x08 , DirtyList = 0x10 } |
| typedef QVector< QSGGeometry::ColoredPoint2D > | VertexContainerType |
| typedef QVector< quint32 > | IndexContainerType |
Public Types inherited from QQuickAbstractPathRenderer | |
| enum | Flag { SupportsAsync = 0x01 } |
| enum | FillGradientType { NoGradient = 0 , LinearGradient , RadialGradient , ConicalGradient } |
Static Public Member Functions | |
| static void | triangulateFill (const QPainterPath &path, const Color4ub &fillColor, VertexContainerType *fillVertices, IndexContainerType *fillIndices, QSGGeometry::Type *indexType, bool supportsElementIndexUint, qreal triangulationScale) |
| static void | triangulateStroke (const QPainterPath &path, const QPen &pen, const Color4ub &strokeColor, VertexContainerType *strokeVertices, const QSize &clipSize, qreal triangulationScale) |
Definition at line 34 of file qquickshapegenericrenderer_p.h.
Definition at line 77 of file qquickshapegenericrenderer_p.h.
Definition at line 76 of file qquickshapegenericrenderer_p.h.
| Enumerator | |
|---|---|
| DirtyFillGeom | |
| DirtyStrokeGeom | |
| DirtyColor | |
| DirtyFillGradient | |
| DirtyList | |
Definition at line 37 of file qquickshapegenericrenderer_p.h.
|
inline |
Definition at line 45 of file qquickshapegenericrenderer_p.h.
| QQuickShapeGenericRenderer::~QQuickShapeGenericRenderer | ( | ) |
Definition at line 76 of file qquickshapegenericrenderer.cpp.
References d.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 89 of file qquickshapegenericrenderer.cpp.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 238 of file qquickshapegenericrenderer.cpp.
References QObject::connect(), d, DirtyFillGeom, DirtyStrokeGeom, QQuickShapeFillRunnable::done(), QQuickShapeStrokeRunnable::done(), QRhi::ElementIndexUint, QQuickWindowPrivate::get(), QSGRendererInterface::graphicsApi(), QQuickItem::height, i, QThread::idealThreadCount(), item, qAddPostRoutine(), qApp, qtVectorPathForPath(), QQuickWindowPrivate::rhi, QRunnable::setAutoDelete(), QThreadPool::setMaxThreadCount(), QThreadPool::start(), triangulateFill(), triangulateStroke(), QSGRendererInterface::Unknown, QQuickItem::width, QGraphicsItem::window(), and QQuickItem::window().
Here is the call graph for this function:
|
inlineoverridevirtual |
Reimplemented from QQuickAbstractPathRenderer.
Definition at line 69 of file qquickshapegenericrenderer_p.h.
References QQuickAbstractPathRenderer::SupportsAsync.
|
overridevirtual |
Reimplemented from QQuickAbstractPathRenderer.
Definition at line 222 of file qquickshapegenericrenderer.cpp.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 155 of file qquickshapegenericrenderer.cpp.
References d, and DirtyStrokeGeom.
Implements QQuickAbstractPathRenderer.
Definition at line 129 of file qquickshapegenericrenderer.cpp.
References colorToColor4ub(), d, DirtyColor, and DirtyFillGeom.
Here is the call graph for this function:
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 174 of file qquickshapegenericrenderer.cpp.
References QQuickAbstractPathRenderer::ConicalGradient, d, DirtyFillGradient, QQuickGradient::gradientStops(), QQuickAbstractPathRenderer::LinearGradient, QQuickAbstractPathRenderer::NoGradient, QQuickAbstractPathRenderer::RadialGradient, and QQuickShapeGradient::spread.
Here is the call graph for this function:
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 140 of file qquickshapegenericrenderer.cpp.
References d, and DirtyFillGeom.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 147 of file qquickshapegenericrenderer.cpp.
References d, and DirtyStrokeGeom.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 102 of file qquickshapegenericrenderer.cpp.
References d, DirtyFillGeom, and DirtyStrokeGeom.
| void QQuickShapeGenericRenderer::setRootNode | ( | QQuickShapeGenericNode * | node | ) |
Definition at line 454 of file qquickshapegenericrenderer.cpp.
References DirtyList.
Implements QQuickAbstractPathRenderer.
Definition at line 109 of file qquickshapegenericrenderer.cpp.
References colorToColor4ub(), d, DirtyColor, and DirtyStrokeGeom.
Here is the call graph for this function:
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 162 of file qquickshapegenericrenderer.cpp.
References d, QQuickShapePath::DashLine, and DirtyStrokeGeom.
Implements QQuickAbstractPathRenderer.
Definition at line 120 of file qquickshapegenericrenderer.cpp.
References d, and DirtyStrokeGeom.
Reimplemented from QQuickAbstractPathRenderer.
Definition at line 203 of file qquickshapegenericrenderer.cpp.
|
static |
Definition at line 383 of file qquickshapegenericrenderer.cpp.
References QList< T >::constData(), QList< T >::data(), QVertexIndexVector::data(), QTransform::fromScale(), i, QTriangleSet::indices, qTriangulate(), qtVectorPathForPath(), QList< T >::resize(), set, QVertexIndexVector::size(), QList< T >::size(), QVertexIndexVector::type(), QSGGeometry::UnsignedIntType, QVertexIndexVector::UnsignedShort, QSGGeometry::UnsignedShortType, and QTriangleSet::vertices.
Referenced by endSync(), and QQuickShapeFillRunnable::run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 416 of file qquickshapegenericrenderer.cpp.
References QList< T >::clear(), QList< T >::data(), QDashedStrokeProcessor::elementCount(), QDashedStrokeProcessor::elementTypes(), i, QDashedStrokeProcessor::points(), QTriangulatingStroker::process(), QDashedStrokeProcessor::process(), qtVectorPathForPath(), QList< T >::resize(), set, QTriangulatingStroker::setInvScale(), QDashedStrokeProcessor::setInvScale(), Qt::SolidLine, QPen::style(), QTriangulatingStroker::vertexCount(), and QTriangulatingStroker::vertices().
Referenced by endSync(), and QQuickShapeStrokeRunnable::run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 463 of file qquickshapegenericrenderer.cpp.
References QSGNode::appendChildNode(), d, DirtyColor, DirtyFillGeom, DirtyFillGradient, DirtyList, DirtyStrokeGeom, QQuickShapeGenericNode::m_fillNode, QQuickShapeGenericNode::m_next, QQuickShapeGenericNode::m_strokeNode, Q_ASSERT, QSGNode::removeChildNode(), and QQuickItem::window().
Here is the call graph for this function: