Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQuickShapeGenericRenderer Class Reference

#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 ,
  DirtyFillTransform = 0x10 , DirtyFillTexture = 0x20 , DirtyList = 0x40
}
typedef QVector< QSGGeometry::ColoredPoint2DVertexContainerType
typedef QVector< QSGGeometry::TexturedPoint2DTexturedVertexContainerType
typedef QVector< quint32IndexContainerType
Public Types inherited from QQuickAbstractPathRenderer
enum  Flag { SupportsAsync = 0x01 }
enum  FillGradientType { NoGradient = 0 , LinearGradient , RadialGradient , ConicalGradient }

Public Member Functions

 QQuickShapeGenericRenderer (QQuickItem *item)
 ~QQuickShapeGenericRenderer ()
void beginSync (int totalCount, bool *countChanged) override
void setPath (int index, const QPainterPath &path, QQuickShapePath::PathHints pathHints={}) override
void setStrokeColor (int index, const QColor &color) override
void setStrokeWidth (int index, qreal w) override
void setCosmeticStroke (int index, bool c) override
void setFillColor (int index, const QColor &color) override
void setFillRule (int index, QQuickShapePath::FillRule fillRule) override
void setJoinStyle (int index, QQuickShapePath::JoinStyle joinStyle, int miterLimit) override
void setCapStyle (int index, QQuickShapePath::CapStyle capStyle) override
void setStrokeStyle (int index, QQuickShapePath::StrokeStyle strokeStyle, qreal dashOffset, const QVector< qreal > &dashPattern) override
void setFillGradient (int index, QQuickShapeGradient *gradient) override
void setFillTextureProvider (int index, QQuickItem *textureProviderItem) override
void setFillTransform (int index, const QSGTransform &transform) override
void setTriangulationScale (qreal scale) override
void endSync (bool async) override
void setAsyncCallback (void(*)(void *), void *) override
Flags flags () const override
void handleSceneChange (QQuickWindow *window) override
void updateNode () override
void setRootNode (QQuickShapeGenericNode *node)
Public Member Functions inherited from QQuickAbstractPathRenderer
virtual ~QQuickAbstractPathRenderer ()
virtual void setPath (int index, const QQuickPath *path)

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)

Detailed Description

Definition at line 35 of file qquickshapegenericrenderer_p.h.

Member Typedef Documentation

◆ IndexContainerType

◆ TexturedVertexContainerType

◆ VertexContainerType

Member Enumeration Documentation

◆ Dirty

Enumerator
DirtyFillGeom 
DirtyStrokeGeom 
DirtyColor 
DirtyFillGradient 
DirtyFillTransform 
DirtyFillTexture 
DirtyList 

Definition at line 38 of file qquickshapegenericrenderer_p.h.

Constructor & Destructor Documentation

◆ QQuickShapeGenericRenderer()

QQuickShapeGenericRenderer::QQuickShapeGenericRenderer ( QQuickItem * item)
inline

Definition at line 48 of file qquickshapegenericrenderer_p.h.

References QQuickShapeGenericRenderer().

Referenced by QQuickShapeGenericRenderer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~QQuickShapeGenericRenderer()

QQuickShapeGenericRenderer::~QQuickShapeGenericRenderer ( )

Definition at line 103 of file qquickshapegenericrenderer.cpp.

Member Function Documentation

◆ beginSync()

void QQuickShapeGenericRenderer::beginSync ( int totalCount,
bool * countChanged )
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 116 of file qquickshapegenericrenderer.cpp.

References DirtyList.

◆ endSync()

◆ flags()

Flags QQuickShapeGenericRenderer::flags ( ) const
inlineoverridevirtual

◆ handleSceneChange()

void QQuickShapeGenericRenderer::handleSceneChange ( QQuickWindow * window)
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 255 of file qquickshapegenericrenderer.cpp.

◆ setAsyncCallback()

void QQuickShapeGenericRenderer::setAsyncCallback ( void(* callback )(void *),
void * data )
overridevirtual

Reimplemented from QQuickAbstractPathRenderer.

Definition at line 294 of file qquickshapegenericrenderer.cpp.

◆ setCapStyle()

void QQuickShapeGenericRenderer::setCapStyle ( int index,
QQuickShapePath::CapStyle capStyle )
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 194 of file qquickshapegenericrenderer.cpp.

References DirtyStrokeGeom.

◆ setCosmeticStroke()

void QQuickShapeGenericRenderer::setCosmeticStroke ( int index,
bool c )
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 159 of file qquickshapegenericrenderer.cpp.

References DirtyStrokeGeom.

◆ setFillColor()

void QQuickShapeGenericRenderer::setFillColor ( int index,
const QColor & color )
overridevirtual

◆ setFillGradient()

void QQuickShapeGenericRenderer::setFillGradient ( int index,
QQuickShapeGradient * gradient )
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 213 of file qquickshapegenericrenderer.cpp.

References DirtyFillGradient.

◆ setFillRule()

void QQuickShapeGenericRenderer::setFillRule ( int index,
QQuickShapePath::FillRule fillRule )
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 179 of file qquickshapegenericrenderer.cpp.

References DirtyFillGeom.

◆ setFillTextureProvider()

void QQuickShapeGenericRenderer::setFillTextureProvider ( int index,
QQuickItem * textureProviderItem )
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 242 of file qquickshapegenericrenderer.cpp.

References DirtyFillGeom, and DirtyFillTexture.

◆ setFillTransform()

void QQuickShapeGenericRenderer::setFillTransform ( int index,
const QSGTransform & transform )
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 268 of file qquickshapegenericrenderer.cpp.

References DirtyFillTransform.

◆ setJoinStyle()

void QQuickShapeGenericRenderer::setJoinStyle ( int index,
QQuickShapePath::JoinStyle joinStyle,
int miterLimit )
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 186 of file qquickshapegenericrenderer.cpp.

References DirtyStrokeGeom.

◆ setPath()

void QQuickShapeGenericRenderer::setPath ( int index,
const QPainterPath & path,
QQuickShapePath::PathHints pathHints = {} )
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 132 of file qquickshapegenericrenderer.cpp.

References DirtyFillGeom, and DirtyStrokeGeom.

◆ setRootNode()

void QQuickShapeGenericRenderer::setRootNode ( QQuickShapeGenericNode * node)

Definition at line 526 of file qquickshapegenericrenderer.cpp.

References DirtyList.

◆ setStrokeColor()

void QQuickShapeGenericRenderer::setStrokeColor ( int index,
const QColor & color )
overridevirtual

◆ setStrokeStyle()

void QQuickShapeGenericRenderer::setStrokeStyle ( int index,
QQuickShapePath::StrokeStyle strokeStyle,
qreal dashOffset,
const QVector< qreal > & dashPattern )
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 201 of file qquickshapegenericrenderer.cpp.

References DirtyStrokeGeom.

◆ setStrokeWidth()

void QQuickShapeGenericRenderer::setStrokeWidth ( int index,
qreal w )
overridevirtual

Implements QQuickAbstractPathRenderer.

Definition at line 150 of file qquickshapegenericrenderer.cpp.

References DirtyStrokeGeom.

◆ setTriangulationScale()

void QQuickShapeGenericRenderer::setTriangulationScale ( qreal scale)
overridevirtual

Reimplemented from QQuickAbstractPathRenderer.

Definition at line 275 of file qquickshapegenericrenderer.cpp.

◆ triangulateFill()

void QQuickShapeGenericRenderer::triangulateFill ( const QPainterPath & path,
const Color4ub & fillColor,
VertexContainerType * fillVertices,
IndexContainerType * fillIndices,
QSGGeometry::Type * indexType,
bool supportsElementIndexUint,
qreal triangulationScale )
static

Definition at line 455 of file qquickshapegenericrenderer.cpp.

References ColoredVertex::set().

Here is the call graph for this function:

◆ triangulateStroke()

void QQuickShapeGenericRenderer::triangulateStroke ( const QPainterPath & path,
const QPen & pen,
const Color4ub & strokeColor,
VertexContainerType * strokeVertices,
const QSize & clipSize,
qreal triangulationScale )
static

Definition at line 488 of file qquickshapegenericrenderer.cpp.

References ColoredVertex::set().

Here is the call graph for this function:

◆ updateNode()

void QQuickShapeGenericRenderer::updateNode ( )
overridevirtual

The documentation for this class was generated from the following files: