QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Convenience metadata class that uses static functions to create a 3D symbol and its widget. More...
#include <qgs3dsymbolregistry.h>
Public Member Functions | |
Qgs3DSymbolMetadata (const QString &type, const QString &visibleName, Qgs3DSymbolCreateFunc pfCreate, Qgs3DSymbolWidgetFunc pfWidget=nullptr, Qgs3DSymbolFeatureHandlerFunc pfHandler=nullptr) | |
Constructor for Qgs3DSymbolMetadata, with the specified type and visibleName. | |
QgsAbstract3DSymbol * | create () override |
Creates a new instance of this symbol type. | |
QgsFeature3DHandler * | createFeatureHandler (QgsVectorLayer *layer, const QgsAbstract3DSymbol *symbol) override |
Creates a feature handler for a symbol of matching type, for the specified vector layer. | |
Qgs3DSymbolCreateFunc | createFunction () const |
Returns the symbol type's creation function. | |
Qgs3DSymbolWidget * | createSymbolWidget (QgsVectorLayer *vl) override |
Create a widget for configuring a symbol of this type. | |
void | setFeatureHandlerFunction (Qgs3DSymbolFeatureHandlerFunc function) |
Sets the symbol type's feature handler creation function. | |
void | setWidgetFunction (Qgs3DSymbolWidgetFunc function) |
Sets the symbol type's widget creation function. | |
Qgs3DSymbolWidgetFunc | widgetFunction () const |
Returns the symbol type's widget creation function. | |
Public Member Functions inherited from Qgs3DSymbolAbstractMetadata | |
Qgs3DSymbolAbstractMetadata (const QString &type, const QString &visibleName) | |
Constructor for Qgs3DSymbolAbstractMetadata, with the specified type and visibleName. | |
virtual | ~Qgs3DSymbolAbstractMetadata ()=default |
QString | type () const |
Returns the unique symbol type string. | |
QString | visibleName () const |
Returns the symbol's visible (translated) name. | |
Convenience metadata class that uses static functions to create a 3D symbol and its widget.
Definition at line 117 of file qgs3dsymbolregistry.h.
|
inline |
Constructor for Qgs3DSymbolMetadata, with the specified type and visibleName.
The pfCreate, pfWidget and pfHandler arguments are used to specify static functions for creating the symbol type and configuration widget.
Definition at line 127 of file qgs3dsymbolregistry.h.
|
inlineoverridevirtual |
Creates a new instance of this symbol type.
Caller takes ownership of the returned symbol.
Implements Qgs3DSymbolAbstractMetadata.
Definition at line 161 of file qgs3dsymbolregistry.h.
|
inlineoverridevirtual |
Creates a feature handler for a symbol of matching type, for the specified vector layer.
Caller takes ownership of the returned handler.
Reimplemented from Qgs3DSymbolAbstractMetadata.
Definition at line 163 of file qgs3dsymbolregistry.h.
|
inline |
Returns the symbol type's creation function.
Definition at line 140 of file qgs3dsymbolregistry.h.
|
inlineoverridevirtual |
Create a widget for configuring a symbol of this type.
Can return nullptr
if there's no GUI.
Reimplemented from Qgs3DSymbolAbstractMetadata.
Definition at line 162 of file qgs3dsymbolregistry.h.
|
inline |
Sets the symbol type's feature handler creation function.
Definition at line 159 of file qgs3dsymbolregistry.h.
|
inline |
Sets the symbol type's widget creation function.
Definition at line 154 of file qgs3dsymbolregistry.h.
|
inline |
Returns the symbol type's widget creation function.
Definition at line 147 of file qgs3dsymbolregistry.h.