QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | Protected Attributes | List of all members
QgsPaintEffectMetadata Class Reference

Convenience metadata class that uses static functions to create an effect and its widget. More...

#include <qgspainteffectregistry.h>

Inheritance diagram for QgsPaintEffectMetadata:
Inheritance graph
[legend]

Public Member Functions

 QgsPaintEffectMetadata (const QString &name, const QString &visibleName, QgsPaintEffectCreateFunc pfCreate, QgsPaintEffectWidgetFunc pfWidget=nullptr)
 Create effect metadata from static functions. More...
 
QgsPaintEffectCreateFunc createFunction () const
 Returns the paint effect creation function for the paint effect class. More...
 
QgsPaintEffectcreatePaintEffect (const QgsStringMap &map) override
 Creates a new paint effect of the metadata's effect class. More...
 
QgsPaintEffectWidgetcreateWidget () override
 Creates a new paint effect properties widget for the metadata's effect class. More...
 
void setWidgetFunction (QgsPaintEffectWidgetFunc f)
 Sets the paint effect properties widget creation function for the paint effect class. More...
 
QgsPaintEffectWidgetFunc widgetFunction () const
 Returns the paint effect properties widget creation function for the paint effect class. More...
 

Protected Attributes

QgsPaintEffectCreateFunc mCreateFunc
 
QgsPaintEffectWidgetFunc mWidgetFunc
 

Detailed Description

Convenience metadata class that uses static functions to create an effect and its widget.

Note
not available in Python bindings
Since
QGIS 2.9

Definition at line 96 of file qgspainteffectregistry.h.

Constructor & Destructor Documentation

QgsPaintEffectMetadata::QgsPaintEffectMetadata ( const QString &  name,
const QString &  visibleName,
QgsPaintEffectCreateFunc  pfCreate,
QgsPaintEffectWidgetFunc  pfWidget = nullptr 
)
inline

Create effect metadata from static functions.

Parameters
nameunique string representing paint effect class
visibleNameuser visible name representing paint effect class
pfCreatepaint effect creation function
pfWidgetwidget creation function
Note
not available in Python bindings

Definition at line 109 of file qgspainteffectregistry.h.

Member Function Documentation

QgsPaintEffectCreateFunc QgsPaintEffectMetadata::createFunction ( ) const
inline

Returns the paint effect creation function for the paint effect class.

Returns
creation function
Note
not available in Python bindings

Definition at line 122 of file qgspainteffectregistry.h.

QgsPaintEffect* QgsPaintEffectMetadata::createPaintEffect ( const QgsStringMap map)
inlineoverridevirtual

Creates a new paint effect of the metadata's effect class.

Parameters
mapstring map of effect properties
Returns
new paint effect
Note
not available in Python bindings
See also
createWidget

Implements QgsPaintEffectAbstractMetadata.

Definition at line 147 of file qgspainteffectregistry.h.

QgsPaintEffectWidget* QgsPaintEffectMetadata::createWidget ( )
inlineoverridevirtual

Creates a new paint effect properties widget for the metadata's effect class.

Returns
effect properties widget
Note
not available in Python bindings
See also
createWidget

Reimplemented from QgsPaintEffectAbstractMetadata.

Definition at line 155 of file qgspainteffectregistry.h.

void QgsPaintEffectMetadata::setWidgetFunction ( QgsPaintEffectWidgetFunc  f)
inline

Sets the paint effect properties widget creation function for the paint effect class.

Parameters
fwidget creation function
Note
not available in Python bindings
See also
widgetFunction

Definition at line 138 of file qgspainteffectregistry.h.

QgsPaintEffectWidgetFunc QgsPaintEffectMetadata::widgetFunction ( ) const
inline

Returns the paint effect properties widget creation function for the paint effect class.

Returns
widget creation function
Note
not available in Python bindings
See also
setWidgetFunction

Definition at line 130 of file qgspainteffectregistry.h.

Member Data Documentation

QgsPaintEffectCreateFunc QgsPaintEffectMetadata::mCreateFunc
protected

Definition at line 158 of file qgspainteffectregistry.h.

QgsPaintEffectWidgetFunc QgsPaintEffectMetadata::mWidgetFunc
protected

Definition at line 159 of file qgspainteffectregistry.h.


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