Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qquickshapegenericrenderer_p.h>
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 35 of file qquickshapegenericrenderer_p.h.
Definition at line 78 of file qquickshapegenericrenderer_p.h.
Definition at line 77 of file qquickshapegenericrenderer_p.h.
Enumerator | |
---|---|
DirtyFillGeom | |
DirtyStrokeGeom | |
DirtyColor | |
DirtyFillGradient | |
DirtyList |
Definition at line 38 of file qquickshapegenericrenderer_p.h.
|
inline |
Definition at line 46 of file qquickshapegenericrenderer_p.h.
QQuickShapeGenericRenderer::~QQuickShapeGenericRenderer | ( | ) |
Definition at line 78 of file qquickshapegenericrenderer.cpp.
References d.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 91 of file qquickshapegenericrenderer.cpp.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 240 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(), QRunnable::setAutoDelete(), triangulateFill(), triangulateStroke(), QSGRendererInterface::Unknown, QQuickItem::width, QGraphicsItem::window(), and QQuickItem::window().
|
inlineoverridevirtual |
Reimplemented from QQuickAbstractPathRenderer.
Definition at line 70 of file qquickshapegenericrenderer_p.h.
References QQuickAbstractPathRenderer::SupportsAsync.
|
overridevirtual |
Reimplemented from QQuickAbstractPathRenderer.
Definition at line 224 of file qquickshapegenericrenderer.cpp.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 157 of file qquickshapegenericrenderer.cpp.
References d, and DirtyStrokeGeom.
Implements QQuickAbstractPathRenderer.
Definition at line 131 of file qquickshapegenericrenderer.cpp.
References colorToColor4ub(), d, DirtyColor, and DirtyFillGeom.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 176 of file qquickshapegenericrenderer.cpp.
References QQuickAbstractPathRenderer::ConicalGradient, d, DirtyFillGradient, QQuickGradient::gradientStops(), QQuickAbstractPathRenderer::LinearGradient, QQuickAbstractPathRenderer::NoGradient, QQuickAbstractPathRenderer::RadialGradient, and QQuickShapeGradient::spread.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 142 of file qquickshapegenericrenderer.cpp.
References d, and DirtyFillGeom.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 149 of file qquickshapegenericrenderer.cpp.
References d, and DirtyStrokeGeom.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 104 of file qquickshapegenericrenderer.cpp.
References d, DirtyFillGeom, and DirtyStrokeGeom.
void QQuickShapeGenericRenderer::setRootNode | ( | QQuickShapeGenericNode * | node | ) |
Definition at line 456 of file qquickshapegenericrenderer.cpp.
References DirtyList.
Implements QQuickAbstractPathRenderer.
Definition at line 111 of file qquickshapegenericrenderer.cpp.
References colorToColor4ub(), d, DirtyColor, and DirtyStrokeGeom.
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 164 of file qquickshapegenericrenderer.cpp.
References d, QQuickShapePath::DashLine, and DirtyStrokeGeom.
Implements QQuickAbstractPathRenderer.
Definition at line 122 of file qquickshapegenericrenderer.cpp.
References d, and DirtyStrokeGeom.
Reimplemented from QQuickAbstractPathRenderer.
Definition at line 205 of file qquickshapegenericrenderer.cpp.
|
static |
Definition at line 385 of file qquickshapegenericrenderer.cpp.
References QList< T >::data(), QTransform::fromScale(), i, qTriangulate(), qtVectorPathForPath(), QList< T >::resize(), set, QSGGeometry::UnsignedIntType, QVertexIndexVector::UnsignedShort, and QSGGeometry::UnsignedShortType.
Referenced by endSync(), and QQuickShapeFillRunnable::run().
|
static |
Definition at line 418 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().
|
overridevirtual |
Implements QQuickAbstractPathRenderer.
Definition at line 465 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().