QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Public Member Functions | List of all members
QgsEffectPainter Class Reference

A class to manager painter saving and restoring required for effect drawing. More...

#include <qgspainteffect.h>

Public Member Functions

 QgsEffectPainter (QgsRenderContext &renderContext)
 QgsEffectPainter constructor. More...
 
 QgsEffectPainter (QgsRenderContext &renderContext, QgsPaintEffect *effect)
 QgsEffectPainter constructor alternative if no painter translation is needed. More...
 
 ~QgsEffectPainter ()
 
void setEffect (QgsPaintEffect *effect)
 Sets the effect to be painted. More...
 

Detailed Description

A class to manager painter saving and restoring required for effect drawing.

Since
QGIS 3.0

Definition at line 395 of file qgspainteffect.h.

Constructor & Destructor Documentation

◆ QgsEffectPainter() [1/2]

QgsEffectPainter::QgsEffectPainter ( QgsRenderContext renderContext)

QgsEffectPainter constructor.

Parameters
renderContextthe QgsRenderContext object
Since
QGIS 3.0

Definition at line 279 of file qgspainteffect.cpp.

◆ QgsEffectPainter() [2/2]

QgsEffectPainter::QgsEffectPainter ( QgsRenderContext renderContext,
QgsPaintEffect effect 
)

QgsEffectPainter constructor alternative if no painter translation is needed.

Parameters
renderContextthe QgsRenderContext object
effectthe QgsPaintEffect object
Since
QGIS 3.0

Definition at line 287 of file qgspainteffect.cpp.

◆ ~QgsEffectPainter()

QgsEffectPainter::~QgsEffectPainter ( )

Definition at line 304 of file qgspainteffect.cpp.

Member Function Documentation

◆ setEffect()

void QgsEffectPainter::setEffect ( QgsPaintEffect effect)

Sets the effect to be painted.

Parameters
effectthe QgsPaintEffect object

Definition at line 296 of file qgspainteffect.cpp.


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